Query response system implementing a retrieval-augment generation architecture
AssigneePalo Alto Networks, Inc.
InventorsVenkatesh K Pappakrishnan, Praveen Herur, Alok Tongaonkar
Life of this patent
Estimating the term…
Abstract
A query is received from a client device. Upon determining that the query includes insufficient details for generating a query response, the query is augmented to generate an augmented query that includes sufficient details for generating the query response. The augmented query is summarized into a summarized query. A subset of documents is determined to be relevant to the query in part by determining an optimal configuration for the query. A query response based on the subset of documents is outputted to the client device.
Claims20
A method, comprising:
- receiving a query from a client device;
- upon determining that the query includes insufficient details for generating a query response;
- augmenting the query to generate an augmented query that includes sufficient details for generating the query response;
- summarizing the augmented query into a summarized query;
- determining a subset of documents relevant to the query in part by determining an optimal configuration for the query, wherein determining the optimal configuration for the query includes classifying the summarized query into a first query category of a plurality of known query categories, wherein classifying the summarized query includes:
- converting the summarized query into an embedding vector;
- determining, using an embedding model, a stored query that is most similar to the summarized query;
- and
- determining a category associated with the stored query that is most similar to the summarized query to be the first query category;
- and
- outputting to the client device a query response based on the subset of documents.
A system, comprising:
- query receiving means for receiving a query from a client device;
- query augmenting means for, upon determining that the query includes insufficient details for generating a query response, augmenting the query to generate an augmented query that includes sufficient details for generating the query response;
- query summarizing means for summarizing the augmented query into a summarized query;
- document subset determining means for determining a subset of documents relevant to the query, at least in part by determining an optimal configuration for the query, wherein determining the optimal configuration includes classifying the summarized query into a first query category of a plurality of known query categories, and wherein the document subset determining means includes:
- embedding generation means for converting the summarized query into an embedding vector;
- similarity determination means for determining, using an embedding model, a stored query that is most similar to the summarized query;
- and
- category determination means for determining a category associated with the stored query that is most similar to the summarized query to be the first query category;
- and
- response output means for outputting to the client device a query response based on the subset of documents;
- and
- memory means coupled to the foregoing means and storing instructions executable to perform the functions of the foregoing means.
A computer program product embodied in a non-transitory computer readable medium and comprising computer instructions for:
- receiving a query from a client device;
- upon determining that the query includes insufficient details for generating a query response, augmenting the query to generate an augmented query that includes sufficient details for generating the query response;
- summarizing the augmented query into a summarized query;
- determining a subset of documents relevant to the query in part by determining an optimal configuration for the query, wherein determining the optimal configuration for the query includes classifying a summarized query into a first query category of a plurality of known query categories, wherein classifying the summarized query includes:
- converting the summarized query into an embedding vector;
- determining, using an embedding model, a stored query that is most similar to the summarized query;
- and
- determining a category associated with the stored query that is most similar to the summarized query to be the first query category;
- and
- outputting to the client device a query response based on the subset of documents.
Dependencies are inferred from the claim text.