# US 2026/0093732 A1 · Supervised text retrieval

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

- Number: US 2026/0093732 A1
- Document ID: US20260093732A1
- Status: Published application
- Kind: A1
- Application number: 18/902,652
- Filed: 2024-09-30
- Published: 2026-04-02
- Earliest claimed: 2024-09-30
- Assignees: Intuit Inc.
- Applicants: Intuit Inc.
- Inventors: Jeyendran Balakrishnan; Sricharan Kallur Palli Kumar; Hilaf Hasson
- Web page: https://patentgrep.com/patent/US20260093732A1

## CPC

- G06F 16/334: Query execution (filtering based on additional data G06F16/335)
- G06F 16/3344: {using natural language analysis}
- G06F 16/332: Query formulation
- G06F 16/3347: {using vector based model}
- G06F 16/383: using metadata automatically derived from the content
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A text retrieval system is configured to use an embedding model that is pretrained on generic selection of text, but that can be specifically trained for specific text retrieval tasks. The text retrieval system includes a query embedding transformation model that is trained to transform a baseline query embedding generated by the embedding model into a modified query embedding based on a distance between the baseline query embedding and training query embeddings. The query embedding transformation model is configured so that as the distance between baseline query embeddings and the training query embedding decreases, the resulting modified query embeddings are less distant to the training text embedding. A searcher performs a nearest neighbor searches of a text embedding index using the modified query embeddings to determine the nearest matching text(s), which include the training texts, and retrieves the nearest matching texts from a corpus.

## Claims

### Claim 1

A server computer configured for embedding based text retrieval, comprising:
one or more processors;
one or more databases communicatively coupled with the one or more processors; and
a memory communicatively coupled with the one or more processors and storing instructions that, when executed by the one or more processors, causes the one or more processors to be configured as:
an encoder comprising an embedding model that converts text from a corpus into corpus text embeddings that are stored as text embeddings in a text embedding index in the one or more databases, and converts text from queries into baseline query embeddings;
a query embedding transformation model that transforms the baseline query embeddings from the embedding model into modified query embeddings, the query embedding transformation model is trained based on a labeled retrieval dataset comprising training queries and corresponding training texts, wherein the training queries are converted by the embedding model to training query embeddings that are stored in a training query embedding index in the one or more databases, and wherein the training texts are added to the corpus and are converted into training text embeddings by the embedding model and are stored as the text embeddings in the text embedding index in the one or more databases, the query embedding transformation model is trained to transform the baseline query embeddings into the modified query embeddings based on a distance between the baseline query embeddings and the training query embeddings; and
a searcher that is configured to perform a nearest neighbor search that searches the text embedding index based on the modified query embeddings to produce one or more texts from the corpus.

### Claim 2 (depends on 1)

The server computer of claim 1, wherein the text embeddings, the baseline query embeddings, and the modified query embeddings are numeric vectors of a same fixed dimension.

### Claim 3 (depends on 1)

The server computer of claim 1, wherein the searcher searches the text embedding index based on a distance between the modified query embeddings and the text embeddings in the text embedding index.

### Claim 4 (depends on 1)

The server computer of claim 1, wherein the distance is determined based on at least one of a cosine distance, a Euclidean distance, a squared Euclidean distance, a vector dot product, a Manhattan distance, and a Hamming distance.

### Claim 5 (depends on 1)

The server computer of claim 1, wherein the query embedding transformation model is trained to transform the baseline query embeddings into the modified query embeddings based on the distance between the baseline query embeddings and the training query embeddings according to a set of parameters such that as the distance between the baseline query embeddings and the training query embeddings decreases, the modified query embeddings are less distant to the training text embeddings.

### Claim 6 (depends on 1)

The server computer of claim 1, wherein the query embedding transformation model is trained to transform the baseline query embeddings with a set of parameters such that:
an exact match between a baseline query embedding and a training query embedding results in a modified query embedding that is the training text embedding; and
as the distance between a baseline query embedding and a training query embedding approaches infinity, the modified query embedding is less distant to the baseline query embedding.

### Claim 7 (depends on 1)

The server computer of claim 1, wherein the query embedding transformation model is trained to transform the baseline query embeddings according to parameters such that:
an exact match between a baseline query embedding and a training query embedding results in a modified query embedding that is the training text embedding;
a distance between a baseline query embedding and a training query embedding that is greater than a threshold results in a modified query embedding that is the baseline query embedding; and
a distance between a baseline query embedding and a training query embedding that is less than a threshold results in a modified query embedding that is the training text embedding.

### Claim 8 (depends on 1)

The server computer of claim 1, wherein the query embedding transformation model is a parameterized interpolation model with parameters trained on the labeled retrieval dataset.

### Claim 9 (depends on 1)

The server computer of claim 1, wherein the query embedding transformation model is a parameterized multivariate Gaussian process model with parameters trained on the labeled retrieval dataset.

### Claim 10 (depends on 1)

The server computer of claim 1, wherein the one or more processors are further configured to:
receive a user query via an electronic interface;
encode the user query into a baseline query embedding with the embedding model;
transform the baseline query embedding to a modified query embedding based on the distance between the baseline query embedding and the training query embeddings;
retrieve one or more texts from the corpus based on a nearest neighbor search of the text embedding index using the modified query embedding; and
provide the one or more texts and the user query to a prompt constructor for a Large Language Model (LLM) in a Retrieval Augmented Generation application that produces a prompt to the LLM that integrates the one or more texts and the user query.

### Claim 11

A method for training a text retrieval system for embedding based retrieval of text, comprising:
encoding text from a corpus into corpus text embeddings with an embedding model that is pretrained, wherein the embedding model converts text from user queries into baseline query embeddings;
receiving a labeled retrieval dataset comprising training queries and corresponding training texts, wherein the training texts are added in the corpus;
encoding the training queries into training query embeddings and the training texts into training text embeddings;
storing the training query embeddings in a training query embedding index;
storing the corpus text embeddings and the training text embeddings as text embeddings in a text embedding index; and
training a query embedding transformation model using the labeled retrieval dataset to transform the baseline query embeddings produced by the embedding model into modified query embeddings based on a distance between the baseline query embeddings and the training query embeddings.

### Claim 12 (depends on 11)

The method of claim 11, wherein the text embeddings, the baseline query embeddings, and the modified query embeddings are numeric vectors of a same fixed dimension.

### Claim 13 (depends on 11)

The method of claim 11, wherein a searcher in the text retrieval system searches the text embedding index based on the distance between the modified query embeddings and the text embeddings in the text embedding index.

### Claim 14 (depends on 11)

The method of claim 11, wherein the query embedding transformation model is trained to transform the baseline query embeddings into modified query embeddings based on a distance between the baseline query embeddings and the training query embeddings according to a set of parameters that as the distance between the baseline query embeddings and the training query embeddings decreases, the modified query embeddings are less distant to the training text embeddings.

### Claim 15 (depends on 11)

The method of claim 11, wherein the query embedding transformation model is trained to transform the baseline query embeddings according to a set of parameters such that:
an exact match between a baseline query embedding and a training query embedding results in a modified query embedding that is the training text embedding; and
as the distance between a baseline query embedding and a training query embedding approaches infinity, the modified query embedding is less distant to the baseline query embedding.

### Claim 16 (depends on 11)

The method of claim 11, wherein the query embedding transformation model is trained to transform the baseline query embeddings according to parameters such that:
an exact match between a baseline query embedding and a training query embedding results in a modified query embedding that is the transformed query embedding;
a distance between a baseline query embedding and a training query embedding that is greater than a threshold results in a modified query embedding that is the baseline query embedding; and
a distance between a baseline query embedding and a training query embedding that is less than a threshold results in a modified query embedding that is the training text embedding.

### Claim 17 (depends on 11)

The method of claim 11, wherein the query embedding transformation model is trained using F-fold cross validation.

### Claim 18 (depends on 11)

The method of claim 11, wherein training the query embedding transformation model comprises minimizing a negative log marginal likelihood function.

### Claim 19 (depends on 11)

The method of claim 11, wherein training the query embedding transformation model comprises training a parameterized interpolation model with the labeled retrieval dataset.

### Claim 20 (depends on 11)

The method of claim 11, wherein training the query embedding transformation model comprises training a parameterized multivariate Gaussian process model with the labeled retrieval dataset.

### Claim 21

A method for embedding based retrieval of text with a text retrieval system, comprising:
receiving a user query via an electronic interface;
encoding the user query into a baseline query embedding with an embedding model, wherein the embedding model encodes text from a corpus into corpus text embeddings and the corpus text embeddings are stored as text embeddings in a text embedding index;
transforming the baseline query embedding to a modified query embedding with a query embedding transformation model, the query embedding transformation model is trained based on a labeled retrieval dataset comprising training queries and corresponding training texts, wherein the training queries are converted by the embedding model to training query embeddings that are stored in a training query embedding index, and wherein the training texts are added to the corpus and are converted into training text embeddings by the embedding model and are stored as the text embeddings in the text embedding index, the query embedding transformation model transforms the baseline query embeddings into the modified query embeddings based on a distance between the baseline query embeddings and the training query embeddings;
retrieving one or more texts from the corpus based on a nearest neighbor search of the text embeddings in the text embedding index using the modified query embedding; and
providing the one or more texts and the user query to a prompt constructor for a Large Language Model (LLM) in a Retrieval Augmented Generation application that produces a prompt to the LLM that integrates the one or more texts and the user query.

### Claim 22 (depends on 21)

The method of claim 21, wherein the query embedding transformation model is trained to transform the baseline query embedding into the modified query embedding based on the distance between the baseline query embedding and the training query embedding according to a set of parameters that as the distance between baseline query embeddings and a training query embedding decreases, the modified query embeddings are less distant to the training text embedding.

### Claim 23 (depends on 21)

The method of claim 21, wherein the query embedding transformation model is trained to transform the baseline query embedding with a set of parameters such that:
an exact match between the baseline query embedding and a training query embedding results in the modified query embedding that is the training text embedding; and
as the distance between the baseline query embedding and a training query embedding approaches infinity, the modified query embedding is less distant to the baseline query embedding.

### Claim 24 (depends on 21)

The method of claim 21, wherein the query embedding transformation model is trained to transform the baseline query embedding according to parameters such that:
an exact match between the baseline query embedding and a training query embedding results in the modified query embedding that is the training text embedding;
a distance between the baseline query embedding and a training query embedding that is greater than a threshold results in the modified query embedding that is the baseline query embedding; and
a distance between the baseline query embedding and a training query embedding that is less than a threshold results in the modified query embedding that is the training text embedding.

### Claim 25 (depends on 21)

The method of claim 21, wherein the query embedding transformation model is a parameterized interpolation model with parameters trained on the labeled retrieval dataset.

### Claim 26 (depends on 21)

The method of claim 21, wherein the query embedding transformation model is a parameterized multivariate Gaussian process model with parameters trained on the labeled retrieval dataset.
