# US 2026/0064870 A1 · Method and system for selectively responding to user requests for documents based on user profiles

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0064870 A1
- Document ID: US20260064870A1
- Status: Published application
- Kind: A1
- Application number: 18/822,787
- Filed: 2024-09-03
- Published: 2026-03-05
- Earliest claimed: 2024-09-03
- Assignees: Schlumberger Technology Corporation
- Applicants: Schlumberger Technology Corporation
- Inventors: Arvind Sharma; Jing Wu; Babu Sai Sampath Reddy Vinta
- Web page: https://patentgrep.com/patent/US20260064870A1

## CPC

- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 16/3344: {using natural language analysis}
- G06F 2221/2113: Multi-level security, e.g. mandatory access control
- G06F 2221/2141: Access rights, e.g. capability lists, access control lists, access tables, access matrices
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Certain aspects of the disclosure provide a method that selectively extracts information from a knowledge base of an organization based on roles of users in the organization. A first large language model (LLM) is used to identify one or more blocks of text that a user is permitted to access based on a prompt input by the user via a user interface (UI) and the role of the user in the organization. A second LLM is used to generate a response to the prompt based on text of the prompt and the one or more blocks of text that the user is permitted to access. The response is displayed is UI. The response contains the one or more blocks of text that the user is permitted to access in the knowledge base.

## Claims

### Claim 1

A method, comprising:
receiving a prompt input by a user via a user interface (UI) and a role of the user in the organization, the prompt containing a request for information from a knowledge base of an organization;
inputting the prompt to a first large language model (LLM) to identify a block of text that is contained in a document stored in the knowledge base, semantically similar to the request for information, and accessible to the user based on the role of the user;
inputting the block to a second LLM to generate a response to the request for information; and
displaying the response in the UI, wherein the response contains the block of text that satisfies the request for information in the prompt and contains only the information the user is permitted to access based on the role of the user in the organization.

### Claim 2 (depends on 1)

The method of claim 1, wherein inputting the prompt to the first LLM to identify the block of text comprises:
embedding each block of text contained in one or more documents stored in the knowledge base into a corresponding vector of a multi-dimensional space;
embedding the prompt into a prompt vector in the multi-dimensional space; and
calculating a measure of semantic similarity for each block of text and the text of the prompt to identify the block of text that is semantically similar to the request for information based on the corresponding vector of each block of text and the prompt vector.

### Claim 3 (depends on 1)

The method of claim 1, wherein inputting the prompt to the first LLM to identify the block of text comprises:
accessing definitions of roles in the organization;
generating a set of safety prompts using a safety prompt template, each safety prompt having a different combination of a block of text that is semantically similar to text of the prompt and a definition a role in the organization; and
separately inputting each safety prompt into the first LLM to generate a corresponding relevance score, wherein each relevance score is a measure of how closely related the text of the definition of the role is to the block of text of the safety prompt.

### Claim 4 (depends on 3)

The method of claim 3 further comprising:
comparing each relevance score to a relevance score threshold;
identifying a block of text as belonging to a modified embedding based on the block of text and a definition of a role of the user having a relevance score greater than the relevance score threshold; and
identifying a block of text as belonging to a safety embedding based on the block of text and a definition of a role that is not the role of the user having a relevance score greater than the relevance score threshold.

### Claim 5 (depends on 1)

The method of claim 1, wherein inputting the block to the second LLM to generate the response to the request for information comprises:
forming a modified prompt from the prompt input by the user and blocks of text that are semantically similar to the text of the prompt and are contextually related to a definition of the role of the user; and
inputting the modified prompt to the second LLM to generate the response.

### Claim 6 (depends on 1)

The method of claim 1, wherein the prompt is a mode of interaction that causes the second LLM to generate the response.

### Claim 7 (depends on 1)

The method of claim 1, further comprising dividing content of documents stored in the knowledge base into blocks of text with overlapping lines of text.

### Claim 8

A processing system, comprising:
one or more memories comprising computer-executable instructions; and
one or more processors configured to execute the computer-executable instructions and cause the processing system to:
receive a prompt input by a user via a user interface (UI) and a role of the user in the organization, the prompt containing a request for information from a knowledge base of an organization;
input the prompt to a first large language model (LLM) to identify a block of text that is contained in a document stored in the knowledge base, semantically similar to the request for information, and accessible to the user based on the role of the user;
input the block to a second LLM to generate a response to the request for information; and
display the response in the UI, wherein the response contains the one or more blocks of text that satisfies the request for information in the prompt and contains only the information the user is permitted to access based on the role of the user in the organization.

### Claim 9 (depends on 8)

The processing system of claim 8, wherein to input the prompt to the first LLM to identify the block of text the one or more processors are configured to cause the processing system to:
embed each block of text contained in one or more documents stored in the knowledge base into a corresponding vector of a multi-dimensional space;
embed the prompt into a prompt vector in the multi-dimensional space; and
calculate a measure of semantic similarity for each block of text and the text of the prompt to identify the block of text that is semantically similar to the request for information based on the corresponding vector of each block of text and the prompt vector.

### Claim 10 (depends on 8)

The processing system of claim 8, wherein to use the first LLM to identify the one or more blocks of text the one or more processors are configured to cause the processing system to:
access definitions of roles in the organization;
generate a set of safety prompts using a safety prompt template, each safety prompt having a different combination of a block of text that is semantically similar to text of the prompt and a definition a role in the organization; and
separately input each safety prompt into the first LLM to generate a corresponding relevance score, wherein each relevance score is a measure of how closely related the text of the definition of the role is to the block of text of the safety prompt.

### Claim 11 (depends on 10)

The processing system of claim 10, the one or more processors are configured to cause the processing system to:
compare each relevance score to a relevance score threshold;
identify a block of text as belonging to a modified embedding based on the block of text and a definition of a role of the user having a relevance score greater than the relevance score threshold; and
identify a block of text as belonging to a safety embedding based on the block of text and a definition of a role that is not the role of the user having a relevance score greater than the relevance score threshold.

### Claim 12 (depends on 8)

The processing system of claim 8, wherein to input the block to the second LLM to generate the response to the request for information the one or more processors are configured to cause the processing system to:
form a modified prompt from the prompt input by the user and blocks of text that are semantically similar to the text of the prompt and are contextually related to a definition of the role of the user; and
input the modified prompt to the second LLM to generate the response.

### Claim 13 (depends on 8)

The processing system of claim 8, wherein the prompt is a mode of interaction that causes the first LLM to generate the response.

### Claim 14 (depends on 8)

The processing system of claim 8, the one or more processors are further configured to divide content of documents stored in the knowledge base into blocks of text with overlapping lines of text.

### Claim 15

A method, the method comprising:
displaying a user interface (UI) on a display device of a computer system that enables a user to input a prompt that contains a request for information in a knowledge base of an organization and input a role of the user in the organization;
in response to receiving the prompt as input,
accessing a data store of definitions of roles in an organization,
forming safety prompts from a safety prompt template, each safety prompt having a different combination of a block of text extracted from documents of the knowledge base and a definition of a role in the organization,
inputting each safety prompt into a first LLM to generate a corresponding relevance score, and
inputting the prompt and blocks of text with relevance scores that are greater than a relevance score threshold into a second LLM to generate a response to the prompt; and
displaying the response in the UI on the display device, the response containing the one or more blocks of text that satisfy the request for information in the prompt and the user is permitted to access based on the role of the user in the organization.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
embedding each block of text into a vector of a multi-dimensional space;
embedding the prompt into a prompt vector in the multi-dimensional space;
calculating a cosine similarity between the prompt vector and each vector of the set of vectors; and
identifying one or more blocks of text that are semantically similar to text of the prompt, wherein the one or more blocks of text that are semantically similar to the text of the prompt have corresponding cosine similarities that are greater than a similarity threshold.

### Claim 17 (depends on 15)

The method of claim 15, further comprising:
embedding each block of text into a vector of a multi-dimensional space;
embedding the prompt into a prompt vector in the multi-dimensional space; and
identifying one or more blocks of text that are semantically similar to text of the prompt using K-means clustering, wherein the one or more blocks of text that are semantically similar to the text of the prompt are closest to the prompt vector in the multidimensional space.

### Claim 18 (depends on 15)

The method of claim 15, further comprising:
identifying a block of text as belonging to a modified embedding based on the block of text and a definition of a role of the user having a relevance score greater than the relevance score threshold; and
identifying a block of text as belonging to a safety embedding based on the block of text and a definition of a role that is not the role of the user having a relevance score greater than the relevance score threshold.

### Claim 19 (depends on 15)

The method of claim 15, wherein the second LLM to generate the response comprises:
forming a modified prompt from the prompt and blocks of text that are semantically similar to the text of the prompt and are contextually related to a definition of the role of the user; and
inputting the modified prompt to the second LLM to generate the response.

### Claim 20 (depends on 15)

The method of claim 15, wherein each relevance score is a measure of how closely related a definition of a role is to the block of text of the safety prompt.
