# US 2026/0064743 A1 · Systems and Methods for Prompt-Based Query Generation for Diverse Retrieval

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

- Number: US 2026/0064743 A1
- Document ID: US20260064743A1
- Status: Published application
- Kind: A1
- Application number: 19/107,238
- Filed: 2023-09-21
- Published: 2026-03-05
- Earliest claimed: 2022-09-21
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Zhuyun Dai; Yuzhe Zhao; Ji Ma; Yi Luan; Jianmo Ni; Jing Lu; Anton Danchev Bakalov; Kelvin Gu; Keith Brendan Hall; Ming-Wei Chang
- Web page: https://patentgrep.com/patent/US20260064743A1

## CPC

- G06F 16/3344: {using natural language analysis}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An example method for prompt-based query generation is provided. The method includes receiving, by a computing device, at least two prompts associated with a retrieval task to be performed on a corpus of documents associated with the task. The method includes applying, based on the at least two prompts and the corpus of documents, a large language model to generate a synthetic training dataset comprising a plurality of query-document pairs, wherein each query-document pair comprises a synthetically generated query and a document from the corpus of documents. The method includes training, on the plurality of query−document pairs from the synthetic training dataset, a document retrieval model to take an input query associated with the retrieval task and predict an output document retrieved from the corpus of documents. The method includes providing, by the computing device, the trained document retrieval model.

## Claims

### Claim 1

A computer-implemented method for prompt-based query generation, comprising:
receiving, by a computing device, at least two prompts associated with a retrieval task to be performed on a corpus of documents associated with the task;
applying, based on the at least two prompts and the corpus of documents, a large language model to generate a synthetic training dataset comprising a plurality of query-document pairs, wherein each query-document pair comprises a synthetically generated query and a document from the corpus of documents;
training, on the plurality of query-document pairs from the synthetic training dataset, a document retrieval model to take an input query associated with the retrieval task and predict an output document retrieved from the corpus of documents; and
providing, by the computing device, the trained document retrieval model.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining, by the document retrieval model and for each query-document pair, a retrieval score, wherein the retrieval score is indicative of a relevance of the document of the query-document pair to the query of the query-document pair.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the document retrieval model is a dual encoder model comprising a query encoder to encode a query and a document encoder to encode a document.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the dual encoder model is a joint embedding model, wherein a query embedding of a given query is within a threshold distance of a document embedding of a given document when the given document has a high relevance to the given query.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the plurality of query-document pairs comprise noisy data, and further comprising:
filtering the plurality of query-document pairs to remove the noisy data.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, further comprising:
fine-tuning the document retrieval model based on the plurality of filtered query-document pairs.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the fine-tuning of the document retrieval model is based on a standard softmax loss with in-batch random negatives.

### Claim 8 (depends on 5)

The computer-implemented method of claim 5, wherein the filtering comprises one or more of length filtering, prompt filtering, or round-trip filtering.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the large language model is a fine-tuned language net (FLAN).

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein for each document in the corpus, a query is sampled based on a distribution comprising a tunable temperature hyperparameter, and further comprising:
maintaining the temperature hyperparameter below a temperature threshold to generate a diverse array of queries.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein the retrieval task comprises one or more of: question-to-document retrieval, a question-to-question retrieval, a claim-to-document retrieval, an argument-support-document retrieval, or a counter-argument-support-document retrieval.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, further comprising:
pre-training the document retrieval model on unsupervised general-domain data.

### Claim 13 (depends on 1)

The computer-implemented method of claim 1, wherein the retrieval task and the corpus of documents are maintained behind a firewall of an organization, and further comprising:
providing the large language model and the document retrieval model to the organization, and
wherein the receiving, applying, and training are performed behind the firewall of the organization.

### Claim 14 (depends on 1)

The computer-implemented method of claim 1, wherein the at least two prompts is less than eight prompts.

### Claim 15

A computer-implemented method of applying a trained document retrieval model, comprising:
receiving, by a computing device, an input query associated with a retrieval task to be performed on a corpus of documents associated with the task;
predicting, by the trained document retrieval model, a document from the corpus of documents, wherein the document has a high relevance to the input query, the document retrieval model having been trained on a plurality of query-document pairs from a synthetic training dataset, the synthetic training dataset having been generated by a large language model based on at least two prompts associated with the retrieval task; and
providing, by the computing device and in response to the input query, the predicted document.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, wherein the document retrieval model is a dual encoder model comprising a query encoder to encode a query and a document encoder to encode a document.

### Claim 17 (depends on 15)

The computer-implemented method of claim 15, wherein the large language model is a fine-tuned language net (FLAN).

### Claim 18 (depends on 15)

The computer-implemented method of claim 15, wherein the retrieval task comprises one or more of: question-to-document retrieval, a question-to-question retrieval, a claim-to-document retrieval, an argument-support-document retrieval, or a counter-argument-support-document retrieval.

### Claim 19 (depends on 15)

The computer-implemented method of claim 15, wherein the input query is a voice input, and wherein the retrieval task is performed by a computer-implemented intelligent voice assistant.

### Claim 20 (depends on 15)

The computer-implemented method of claim 15, further comprising:
determining, by the computing device, a request to respond to the input query;
sending the request from the computing device to a second computing device, the second computing device comprising a trained version of the document retrieval model;
after sending the request, the computing device receiving, from the second computing device, the predicted document, and
wherein the providing of the predicted document comprises providing the predicted document as received from the second computing device.

### Claim 21

A computing device, comprising:
one or more processors; and
data storage, wherein the data storage has stored thereon computer-executable instructions that, when executed by the one or more processors, cause the computing device to carry out functions comprising:
receiving, by the computing device, at least two prompts associated with a retrieval task to be performed on a corpus of documents associated with the task;
applying, based on the at least two prompts and the corpus of documents, a large language model to generate a synthetic training dataset comprising a plurality of query-document pairs, wherein each query-document pair comprises a synthetically generated query and a document from the corpus of documents;
training, on the plurality of query-document pairs from the synthetic training dataset, a document retrieval model to take an input query associated with the retrieval task and predict an output document retrieved from the corpus of documents; and
providing, by the computing device, the trained document retrieval model.

### Claim 22

(canceled)

### Claim 23

(canceled)

### Claim 24

(canceled)

### Claim 25

(canceled)
