Patent attributes
An artificial intelligence (AI) method includes a processor receiving, from a human user, a query on an external database; performing transformations on the query to produce a refined query; generating an embedding of the refined query; and generating a system prompt and a user prompt based on the refined query. The processor then applies the embedding to a vector database by executing a similarity routine to identify discrete vectors in the vector database most similar to the embedding, and collects the most similar vectors for application to a large language model. Next, the processor applies the most similar vectors, the refined query, and the system and user prompts to a large language model to generate a comprehensive response to the query. The response includes a text document that is generated by execution of the large language model.