Patent ID: 11954102
Assignee: INTUIT INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method of executing a structured query language query, comprising:
receiving a structured query language schema executable against an application programming interface and a natural language (NL) query;
creating a plurality of embeddings for a plurality of subschemas defined for chunks of the structured query language schema;
storing the plurality of embeddings in a vector store;
selecting an embedding related to the NL query from the vector store;
defining a subschema from the embedding by:
selecting a leaf node of the vector store based on the embedding;
determining, using the structured query language schema, a traversal path including a plurality of nodes from the leaf node to a root node of the vector store; and
storing the plurality of nodes as the subschema;

generating, using a large language model trained to generate structured query language queries based on natural language input and an input schema, the structured query language query based on the NL query and the subschema; and
executing the structured query language query against the application programming interface.