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

Claim 0:
1. An artificial intelligence (AI) method, comprising:
a processor receiving, from a human user, an original query on an external database;
the processor generating an embedding of the original query;
the processor performing transformations on the original query to produce a refined query, comprising:
applying 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,
wherein the user query refiner comprises a set of user instructions directing the large language model to generate a refined, detailed user prompt;

the processor applying the embedding to a vector database, comprising:
executing a similarity routine to identify one or more discrete vectors in the vector database most similar to the embedding, and
collecting the one or more most similar vectors for application to a large language model; and

the processor instructing 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.