System and method of efficient knowledge-enhanced chain-of-thought prompting

US12596731B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12596731-B2
Application numberUS-202418407027-A
CountryUS
Kind codeB2
Filing dateJan 8, 2024
Priority dateJan 8, 2024
Publication dateApr 7, 2026
Grant dateApr 7, 2026

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Methods and systems for processing a natural language input query that includes a question and a respective set of candidate answers for the question, including generating, based on the input query and a knowledge graph, natural language logic paths between at least some of the candidate answers and the question; forming a natural language prompt based on both the input query and the logic paths; and obtaining a response from a pretrained natural language processing model based on the natural language promp.

First claim

Opening claim text (preview).

The invention claimed is: 1 . A computer-implemented method for processing a natural language input query that includes a question and a respective set of candidate answers for the question, the method comprising: generating, based on the input query and a knowledge graph, natural language logic paths between at least some of the candidate answers and the question, the generating includes: identifying a question entity for the question included in the input query; identifying a respective candidate answer entity for each of the candidate answers included in the input query; identifying, for the question entity, a matching question node entity of the knowledge graph; identifying, for at least some of the candidate answer entities, respective matching node answer entities of the knowledge graph; and identifying, based on inter-node entity relationships specified in the knowledge graph, a respective logic path for each matching node answer entity to the matching question node entity as the natural language logic paths; forming a natural language prompt based on both the input query and the logic paths; and obtaining a response, based on the natural language prompt, from a pretrained natural language processing model based on a large neural network operating under a pretrain-finetune paradigm. 2 . The method of claim 1 wherein: identifying the matching question node entity for the question entity is based on a comparison of an embedding generated for the question entity with embeddings generated for node entities of the knowledge graph; and identifying the respective matching node answer entities for the at least some of the candidate answer entities is based on a comparison of embeddings generated for the candidate answer entities with embeddings generated for the node entities of the knowledge graph, the embeddings each being generated by a neural network model that has been pretrained to generate similar embeddings for terms having semantically similar meanings. 3 . The method of claim 2 wherein identifying the respective logic path for each matching node answer entity to the matching question node entity comprises: identifying, for each matching node answer entity, a respective set of candidate logic paths for the matching node answer entity to the matching question node entity; ranking each of the candidate logic paths within each of the respective sets of candidate logic paths; and selecting as the respective logic path for each matching node answer entity the candidate logic path having the highest ranking from the respective set of candidate logic paths for the matching node answer entity. 4 . The method of claim 3 wherein identifying the respective set of candidate logic paths for each matching node answer entity is limited to paths that fall within a predefined number of entity node hops. 5 . The method of claim 1 wherein identifying the question entity for the question comprises applying a keyphrase extraction tool to the question to extract the question entity. 6 . The method of claim 1 wherein forming the natural language prompt comprises combining content from the input query, the logic paths and one or more exemplars to form the natural language prompt, wherein each exemplar includes a representation of an example natural language prompt combined with an example response thereto, each example natural language prompt comprising a respective example question and set of example candidate answers together with example logic paths between the example question and the example candidate answers. 7 . The method of claim 1 wherein the response indicates a selected answer from the set of candidate answers and a natural language chain-of-thought statement for the selected answer. 8 . The method of claim 1 comprising receiving the input query over a network from a requesting device and providing the response over the network to the requesting device. 9 . The method of claim 1 comprising receiving the knowledge graph over a network from a requesting device. 10 . A computing system comprising: a processing unit configured to execute computer-readable instructions to cause the system to perform a method for processing a natural language input query that includes a question and a respective set of candidate answers for the question, the method including: generating, based on the input query and a knowledge graph, natural language logic paths between at least some of the candidate answers and the question, the generating includes: identifying a question entity for the question included in the input query; identifying a respective candidate answer entity for each of the candidate answers included in the input query; identifying, for the question entity, a matching question node entity of the knowledge graph; identifying, for at least some of the candidate answer entities, respective matching node answer entities of the knowledge graph; and identifying, based on inter-node entity relationships specified in the knowledge graph, a respective logic path for each matching node answer entity to the matching question node entity as the natural language logic paths; forming a natural language prompt based on both the input query and the logic paths; and obtaining a response, based on the natural language prompt, from a pretrained natural language processing model based on a large neural network operating under a pretrain-finetune paradigm. 11 . The computing system of claim 10 wherein: identifying the matching question node entity for the question entity is based on a comparison of an embedding generated for the question entity with embeddings generated for node entities of the knowledge graph; and identifying the respective matching node answer entities for the at least some of the candidate answer entities is based on a comparison of embeddings generated for the candidate answer entities with embeddings generated for the node entities of the knowledge graph, the embeddings each being generated by a neural network model that has been pretrained to generate similar embeddings for terms having semantically similar meanings. 12 . The computing system of claim 11 wherein identifying the respective logic path for each matching node answer entity to the matching question node entity comprises: identifying, for each matching node answer entity, a respective set of candidate logic paths for the matching node answer entity to the matching question node entity; ranking each of the candidate logic paths within each of the respective sets of candidate logic paths; and selecting as the respective logic path for each matching node answer entity the candidate logic path having the highest ranking from the respective set of candidate logic paths for the matching node answer entity. 13 . The computing system of claim 12 wherein identifying the respective set of candidate logic paths for each matching node answer entity is limited to paths that fall within a predefined number of entity node hops. 14 . The computing system of claim 10 wherein identifying the question entity for the question comprises applying a keyphrase extraction tool to the question to extract the question entity. 15 . The computing system of claim 10 wherein forming the natural language prompt comprises combining content from the input query, the logic paths and one or more exemplars to form the natural language prompt, wherein each exemplar includes a representation of an example natural language prompt combined with an example response thereto, each example natural language prompt comprising a respec

Assignees

Inventors

Classifications

  • using boolean model · CPC title

  • Distributed recognition, e.g. in client-server systems, for mobile phones or network applications · CPC title

  • G06F40/40Primary

    Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30) · CPC title

  • Semantic analysis · CPC title

  • Natural language query formulation · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12596731B2 cover?
Methods and systems for processing a natural language input query that includes a question and a respective set of candidate answers for the question, including generating, based on the input query and a knowledge graph, natural language logic paths between at least some of the candidate answers and the question; forming a natural language prompt based on both the input query and the logic path…
Who is the assignee on this patent?
Heisler Morgan Lindsay, Wang Chendi, Singh Gursimran, and 2 more
What technology area does this patent fall under?
Primary CPC classification G06F40/40. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Apr 07 2026 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).