Context-based prompt generation for automated translations between natural language and query language
AssigneeMicrosoft Technology Licensing, LLC
InventorsOren BARKAN, Yonathan WEILL, Noam KOENIGSTEIN
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Technology Licensing, LLC
InventorsOren BARKAN, Yonathan WEILL, Noam KOENIGSTEIN
Estimating the term…
A disclosed method facilitates translation of natural language queries into query language statements usable to retrieve data from or write data to a particular database. The method includes obtaining a pool of shots. Each shot in the pool includes a natural language query component and a corresponding database translation component. The method further provides for vectorizing the natural language query component for each of the shots into a common vector space; receiving a natural language query from a user interface; vectorizing the natural language query within the common vector space; identifying a subset of vectorized natural language query components that satisfy a similarity metric when compared to the vectorized natural language query; and generating an LLM prompt that includes shots from the pool corresponding to the subset of the vectorized natural language query.
A method comprising:
A system comprising:
One or more tangible computer-readable storage media encoding processor-executable instructions for executing a computer process comprising:
Dependencies are inferred from the claim text.