Framework for query generation in an artificial intelligence environment
AssigneeHartford Fire Insurance Company
InventorsSrinivas Kamini, Dean M. Mazzotta
Life of this patent
Estimating the term…
Abstract
According to some embodiments, systems and methods are provided including a memory storing program code: and one or more processing units to execute the program code to cause the system to: receive a natural language query; generate a Structured Query Language (SQL) query based on the received natural language query; invoke an Application Programming Interface (API) call with the SQL query; receive a response to the SQL query from a data source; generate a natural language response; and transmit the natural language response to an entity. Numerous other aspects are provided.
Claims20
A system comprising:
- a memory storing program code:
- and
- one or more processing units to execute the program code to cause the system to:
- receive a natural language query;
- generate a Structured Query Language (SQL) query based on the received natural language query;
- determine, via a no contract-based Application Programming Interface (API), an endpoint and an API call from data included in the generated SQL query;
- invoke the no contract-based API;
- receive a response to the SQL query from a data source via the no contract-based API;
- generate a natural language response from the response to the SQL query;
- and
- transmit the natural language response to an entity.
A method comprising:
- receiving a natural language query;
- extracting one or more intents from the natural language query;
- generating a Structured Query Language (SQL) query based on the extracted intents;
- determining, via a no contract-based Application Programming Interface (API), an endpoint and an API call from data included in the generated SQL query;
- invoking the no contract-based API;
- receiving a response to the SQL query from a data source via the no contract-based API;
- generating a natural language response from the response to the SQL query;
- and
- transmitting the natural language response to an entity.
One or more non-transitory computer-readable media storing program code that, when executed by a computing system, causes the computing system to perform operations comprising:
- receiving a natural language query;
- extracting one or more intents from the natural language query;
- generating a Structured Query Language (SQL) query based on the extracted intents;
- determining, via a no contract-based Application Programming Interface (API), an endpoint and an API call from the extracted one or more intents;
- invoking the no contract-based;
- receiving a response to the SQL query from a data source via the no contract-based API;
- generating a natural language response from the response to the SQL query;
- and
- transmitting the natural language response to an entity.
Dependencies are inferred from the claim text.