# US 2025/0156465 A1 · Evidence retrieval for long document question answering using large language models

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

- Number: US 2025/0156465 A1
- Document ID: US20250156465A1
- Status: Published application
- Kind: A1
- Application number: 18/508,437
- Filed: 2023-11-14
- Published: 2025-05-15
- Earliest claimed: 2023-11-14
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Inderjeet NAIR; Shwetha S; Apoorv SAXENA; Koustava GOSWAMI
- Web page: https://patentgrep.com/patent/US20250156465A1

## CPC

- G06F 16/345: {Summarisation for human users}
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/30: Semantic analysis
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments are disclosed for long document question answering using large language models. The method may include receiving a question for a document. A representation of the document may then be obtained. A large language model (LLM) is used to identify one or more sections of the document that are relevant to the question using the representation of the document. A document question answering model determines an answer to the question using the one or more sections of the document.

## Claims

### Claim 1

A method comprising:
receiving a question for a document;
obtaining a representation of the document;
identifying, using a large language model (LLM), one or more sections of the document that are relevant to the question using the representation of the document; and
determining, by a document question answering model, an answer to the question using the one or more sections of the document.

### Claim 2 (depends on 1)

The method of claim 1, wherein identifying, using a large language model (LLM), one or more sections of the document that are relevant to the question using the representation of the document, further comprises:
providing, to the LLM, the question, the representation of the document, and a prompt, wherein the prompt instructs the LLM to return a set of sections relevant to the question; and
receiving, from the LLM, the set of sections relevant to the question, wherein the set of sections includes the one or more sections of the document.

### Claim 3 (depends on 2)

The method of claim 2, wherein the prompt instructs the LLM to return the set of sections by section name.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining, by a document question answering model, an answer to the question using the one or more sections of the document, further comprises:
determining a number of tokens associated with the one or more sections of the document is less than a token limit associated with the document question answering model; and
providing the one or more sections and the question to the document question answering model to determine the answer to the question.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining, by a document question answering model, an answer to the question using the one or more sections of the document, further comprises:
determining a number of tokens associated with the one or more sections of the document exceeds a token limit associated with the document question answering model;
providing the one or more sections and the question to a fine-grain model to identify one or more paragraphs relevant to the question from the one or more sections; and
receiving, from the fine-grain model, the one or more paragraphs.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
marking each paragraph of the document with a paragraph identifier; and
generating a prompt instructing the fine-grain model to identify relevant the one or more paragraphs relevant to the question using their paragraph identifiers.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
providing the one or more paragraphs and the question to the document question answering model to determine the answer to the question.

### Claim 8 (depends on 7)

The method of claim 7, wherein the fine-grain model is the LLM.

### Claim 9 (depends on 1)

The method of claim 1, wherein the representation of the document is a summary including a plurality of section headings and section summaries generated by a summary generator model.

### Claim 10

A non-transitory computer-readable medium storing executable instructions, which when executed by a processing device, cause the processing device to perform operations comprising:
receiving a question for a document;
obtaining a representation of the document;
identifying, using a large language model (LLM), one or more sections of the document that are relevant to the question using the representation of the document; and
determining, by a document question answering model, an answer to the question using the one or more sections of the document.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein identifying, using a large language model (LLM), one or more sections of the document that are relevant to the question using the representation of the document, further comprises:
providing, to the LLM, the question, the representation of the document, and a prompt, wherein the prompt instructs the LLM to return a set of sections relevant to the question; and
receiving, from the LLM, the set of sections relevant to the question, wherein the set of sections includes the one or more sections of the document.

### Claim 12 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein the prompt instructs the LLM to return the set of sections by section name.

### Claim 13 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein determining, by a document question answering model, an answer to the question using the one or more sections of the document, further comprises:
determining a number of tokens associated with the one or more sections of the document is less than a token limit associated with the document question answering model; and
providing the one or more sections and the question to the document question answering model to determine the answer to the question.

### Claim 14 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein determining, by a document question answering model, an answer to the question using the one or more sections of the document, further comprises:
determining a number of tokens associated with the one or more sections of the document exceeds a token limit associated with the document question answering model;
providing the one or more sections and the question to a fine-grain model to identify one or more paragraphs relevant to the question from the one or more sections; and
receiving, from the fine-grain model, the one or more paragraphs.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, further comprising:
marking each paragraph of the document with a paragraph identifier; and
generating a prompt instructing the fine-grain model to identify relevant the one or more paragraphs relevant to the question using their paragraph identifiers.

### Claim 16 (depends on 14)

The non-transitory computer-readable medium of claim 14, further comprising:
providing the one or more paragraphs and the question to the document question answering model to determine the answer to the question.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein the fine-grain model is the LLM.

### Claim 18 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the representation of the document is a summary including a plurality of section headings and section summaries generated by a summary generator model.

### Claim 19

A system comprising:
a memory component; and
a processing device coupled to the memory component, the processing device to perform operations comprising:
receiving a question for a document;
generating, by a summary generator, a representation of the document;
identifying, using a coarse-grain large language model (LLM), one or more relevant sections of the document to the question using the representation of the document;
identifying, using a fine-grain LLM, one or more relevant paragraphs of the document that are relevant to the question based on the relevant sections; and
determining, by a document question answering model, an answer to the question using document text corresponding to the one or more relevant paragraphs.

### Claim 20 (depends on 19)

The system of claim 19, wherein the coarse-grain LLM and the fine-grain LLM are a same LLM.
