Systems and methods for access control for federated retrieval-augmented generation
Abstract
Systems and methods for providing access control for federated retrieval-augmented generation (FRAG) using a set of vector databases are disclosed. Exemplary implementations may: receive user input representing a user query; verify whether the user has access to particular electronic files; generate agent queries based on tasks included in the user query; select subsets of the vector embeddings based on the agent queries; provide the subsets to one or more machine learning models as context; provide prompts to the one or more machine learning models; obtain replies in response to the prompts; generate a reply to the user query; effectuate a presentation of the reply, and/or perform other steps.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 80 · Forward citations: 0.
Claims (20 — 2 Independent, 18 Dependent)
- Claim 1Independent Claim
A system configured to provide access control for federated retrieval-augmented generation (FRAG) using a set of vector databases including a first vector database and a second vector database, wherein the first vector database stores a first set of vector embeddings representing content within a first set of electronic files, and a second set of vector embeddings representing content within a second set of electronic files, the system comprising: one or more hardware processors configured by machine readable instructions to: receive, from a user identified by a user identifier, user input representing a user query, wherein the user query entails a set of tasks, wherein the set of tasks includes at least a first task associated with the first set of electronic files and a second task associated with the second set of electronic files; verify whether the user has access to the first set of electronic files and the second set of electronic files, wherein verification is based on the user identifier; responsive to the verification of the user having access to the first set of electronic files and the second set of electronic files, generate a first agent query based on the first task and a second agent query based on the second task; responsive to verification of the user having access to the first set of electronic files, select a first subset of the first set of vector embeddings based on the first agent query; responsive to the verification of the user having access to the first set of electronic files, provide the first subset of the first set of vector embeddings to one or more machine learning models as context for a first prompt based on the first agent query; responsive to the verification of the user having access to the first set of electronic files, provide the first prompt to the one or more machine learning models; obtain a first reply from the one or more machine learning models in response to the first prompt; responsive to verification of the user having access to the second set of electronic files, select a second subset of the second set of vector embeddings based on the second agent query; responsive to the verification of the user having access to the second set of electronic files, provide the second subset of the second set of vector embeddings to the one or more machine learning models as context for a second prompt based on the second agent query; responsive to the verification of the user having access to the second set of electronic files, provide the second prompt to the one or more machine learning models; obtain a second reply from the one or more machine learning models in response to the second prompt; generate a reply to the user query, wherein the reply is based on the first reply and the second reply; and effectuate a presentation of the reply to the user, through a user interface.
- Claim 2Depends on #1
The system of claim 1, wherein, responsive to verification of the user not having access to the first set of electronic files, the one or more hardware processors are configured to: notify the user that the user query cannot be accepted and/or that the user does not have access to the first set of electronic files.
- Claim 3Depends on #1
The system of claim 1, wherein the first set of electronic files is controlled at a first location, wherein the second set of electronic files is controlled at a second location that is different from the first location, and wherein the verification verifies whether the user identified by the user identifier has access to the first location and/or to the second location.
- Claim 4Depends on #1
The system of claim 1, wherein the second set of electronic files includes a database configured to be accessed through (SQL) database instructions, wherein a database-specific subset of the second set of vector embeddings represents metadata of the database, and wherein the one or more machine learning models are configured to access the database through one or more of the (SQL) database instructions, wherein the one or more of the (SQL) database instructions are based on the database-specific subset of the second set of vector embeddings.
- Claim 5Depends on #4
The system of claim 4, wherein the verification verifies whether the user identified by the user identifier has access to portions of the database that correspond to the database-specific subset of the second set of vector embeddings by passing through the user identifier along with the one or more of the (SQL) database instructions to the database, and wherein the database performs the verification.
- Claim 6Depends on #1
The system of claim 1, wherein the one or more machine learning models include a large language model (LLM).
- Claim 7Depends on #1
The system of claim 1, wherein the first set of vector embeddings has been generated by and received from an embedding model, wherein the embedding model is external to the system.
- Claim 8Depends on #1
The system of claim 1, wherein generating the first agent query is performed by the one or more machine learning models, and wherein the first agent query represents the first task numerically through a hyperdimensional vector.
- Claim 9Depends on #1
The system of claim 1, wherein generating the reply includes: (i) generating a prompt based on the first reply and the second reply; (ii) providing the prompt to the one or more machine learning models; and (iii) obtaining the reply from the one or more machine learning models.
- Claim 10Depends on #1
The system of claim 1, wherein the set of tasks includes a third task to be completed using a particular tool, wherein the first reply and the second reply are used as inputs for the third task, wherein the one or more hardware processors are further configured to: perform the third task using the particular tool, wherein the reply is based on output from the particular tool.
- Claim 11Independent Claim
A method of providing access control for federated retrieval-augmented generation (FRAG) using a set of vector databases including a first vector database and a second vector database, wherein the first vector database stores a first set of vector embeddings representing content within a first set of electronic files, and a second set of vector embeddings representing content within a second set of electronic files, the method comprising: receiving, from a user identified by a user identifier, user input representing a user query, wherein the user query entails a set of tasks, wherein the set of tasks includes at least a first task associated with the first set of electronic files and a second task associated with the second set of electronic files; verifying whether the user has access to the first set of electronic files and the second set of electronic files, wherein verification is based on the user identifier; generating a first agent query based on the first task and a second agent query based on the second task, responsive to the verification of the user having access to the first set of electronic files and the second set of electronic files; selecting a first subset of the first set of vector embeddings based on the first agent query, responsive to verification of the user having access to the first set of electronic files; providing the first subset of the first set of vector embeddings to one or more machine learning models as context for a first prompt based on the first agent query, responsive to the verification of the user having access to the first set of electronic files; providing the first prompt to the one or more machine learning models, responsive to the verification of the user having access to the first set of electronic files; obtaining a first reply from the one or more machine learning models in response to the first prompt; selecting a second subset of the second set of vector embeddings based on the second agent query, responsive to verification of the user having access to the second set of electronic files; providing the second subset of the second set of vector embeddings to the one or more machine learning models as context for a second prompt based on the second agent query, responsive to the verification of the user having access to the second set of electronic files; providing the second prompt to the one or more machine learning models, responsive to the verification of the user having access to the second set of electronic files; obtaining a second reply from the one or more machine learning models in response to the second prompt; generating a reply to the user query, wherein the reply is based on the first reply and the second reply; and effectuating a presentation of the reply to the user, through a user interface.
- Claim 12Depends on #11
The method of claim 11, further comprising: notifying the user that the user query cannot be accepted and/or that the user does not have access to the first set of electronic files, responsive to verification of the user not having access to the first set of electronic files.
- Claim 13Depends on #11
The method of claim 11, wherein the first set of electronic files is controlled at a first location, wherein the second set of electronic files is controlled at a second location that is different from the first location, and wherein the verification verifies whether the user identified by the user identifier has access to the first location and/or to the second location.
- Claim 14Depends on #11
The method of claim 11, wherein the second set of electronic files includes a database configured to be accessed through (SQL) database instructions, wherein a database-specific subset of the second set of vector embeddings represents metadata of the database, and wherein the one or more machine learning models access the database through one or more of the (SQL) database instructions, wherein the one or more of the (SQL) database instructions are based on the database-specific subset of the second set of vector embeddings.
- Claim 15Depends on #14
The method of claim 14, wherein the verification verifies whether the user identified by the user identifier has access to portions of the database that correspond to the database-specific subset of the second set of vector embeddings by passing through the user identifier along with the one or more of the (SQL) database instructions to the database, and wherein the database performs the verification.
- Claim 16Depends on #11
The method of claim 11, wherein the one or more machine learning models include a large language model (LLM).
- Claim 17Depends on #11
The method of claim 11, wherein the first set of vector embeddings has been generated by and received from an embedding model.
- Claim 18Depends on #11
The method of claim 11, wherein generating the first agent query is performed by the one or more machine learning models, and wherein the first agent query represents the first task numerically through a hyperdimensional vector.
- Claim 19Depends on #11
The method of claim 11, wherein generating the reply includes: (i) generating a prompt based on the first reply and the second reply; (ii) providing the prompt to the one or more machine learning models; and (iii) obtaining the reply from the one or more machine learning models.
- Claim 20Depends on #11
The method of claim 11, wherein the set of tasks includes a third task to be completed using a particular tool, wherein the first reply and the second reply are used as inputs for the third task, the method further comprising: performing the third task using the particular tool, wherein the reply is based on output from the particular tool.
Technical Overview & Description
FIELD OF THE DISCLOSURE The present disclosure relates to systems and methods for providing access control for federated retrieval-augmented generation, and, in particular, for agent-controlled federated retrieval-augmented generation. BACKGROUND Some applications and uses of retrieval-augmented generation (RAG) are known. Various types of access control are known, e.g., to control access by users of a networked computer system to particular electronic files. Extraction information from electronic files and/or other electronic files is known. Presenting information in user interfaces is known. Large language models are known. SUMMARY One aspect of the present disclosure relates to a system configured to provide access control for federated retrieval-augmented generation (FRAG) using a set of vector databases. Retrieval-augmented generation (RAG) may be used for electronic files (including electronic documents and/or other digital content, e.g., stored in file storages, databases, and/or other electronic storage) that are too numerous and/or large to be used in their entirety for a machine learning model such as, e.g., a large language model. Additionally, different sets of electronic files may be hosted, controlled, and/or located at different locations. In some implementations, the system may operate as a group of sub-systems that individually perform retrieval-augmented generation (RAG) on individual corresponding vector databases. This group may be referred to as a federation, and the resulting operation as federated retrieval-augmented generation. The system may include one or more hardware processors configured by machine-readable instructions. The system may be configured to convert content within (local) sets of electronic files into (local) sets of vector embeddings stored in different vector databases. The system may be configured to receive user input representing a user query. The system may be configured to verify whether a user has access to particular
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (80)
Non-Patent Literature (10)
- Chaudhuri et al.,
- “
- Extraction of type style-based meta-information from imaged documents
- ”
- , IJDAR (2001) 3: 138-149. (Year: 2001).
- Doermann et al.,
- “
- Image Based Typographic Analysis of Documents
- ”
- , Proceedings of 2nd International Conference on Document Analysis and Recognition, pp. 769-773, 1993 IEEE. (Year: 1993).