Patent ID: 11971914
Assignee: CURE A1, LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 9:
10. A non-transitory, computer-readable storage medium having encoded thereon machine instructions that when executed by a processor, cause the processor to:
receive, from a human user, an original query on an external database;
generate an embedding of the original query;
perform transformations on the original query to produce a refined query, wherein the processor applies the original query, a system query refiner and a user query refiner to a large language model to generate the refined query, wherein the system query refiner comprises a set of system instructions directing a large language model to generate an improved, detailed system prompt, and the user query refiner comprises a set of user instructions directing the large language model to generate a refined, detailed user prompt;
apply the embedding to a vector database, wherein the processor:
executes a similarity routine to identify one or more discrete vectors in the vector database most similar to the embedding, and
collects the one or more most similar vectors for application to a large language model; and
instruct the large language model to apply the one or more most similar vectors, the refined query comprising the original query, the improved detailed system prompt, and the refined, detailed user prompt, to the external database to generate a response to the original query, the response comprising a text document, generated by execution of the large language model, as a comprehensive answer to the original query, wherein the refined query comprises a role stated as a persona to be adopted by the large language model, a set of instructions to be followed by the large language model including returning unique identification numbers corresponding to specific data objects in the external database, and a set of conditions and limitations imposed on the large language model.