# US 2026/0073724 A1 · Enrichment of extraction prompts for document processing systems

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

- Number: US 2026/0073724 A1
- Document ID: US20260073724A1
- Status: Published application
- Kind: A1
- Application number: 18/829,711
- Filed: 2024-09-10
- Published: 2026-03-12
- Earliest claimed: 2024-09-10
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Christoph Meyer; Manuel Zeise
- Web page: https://patentgrep.com/patent/US20260073724A1

## CPC

- G06V 30/412: Layout analysis of documents structured with printed lines or input boxes, e.g. business forms or tables
- G06V 30/262: using context analysis, e.g. lexical, syntactic or semantic context
- G06V 30/416: Extracting the logical structure, e.g. chapters, sections or page numbers; Identifying elements of the document, e.g. authors
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

The disclosure generally describes methods, software, and systems for document data extraction. A digitalized document in a layout-preserving text representation is obtained. A document type of the digitalized document can be determined based on its structural characteristics. Contextual data related to the document type of the digitalized document can be obtained. A prompt comprising a data field extraction schema corresponding to the document type of the digitalized document can be generated. The prompt can be enriched based on the contextual data and the respective layout of the data fields in the digitalized document. The enriched prompt can define ranges for one or more data fields. A structured document can be obtained from the execution of a prediction engine based on the enriched prompt invoked for the digitalized document. The structured document can be provided for semantic querying to extract portions of data from the structured document.

## Claims

### Claim 1

A computer-implemented method comprising:
obtaining a digitalized document comprising data fields in a layout-preserving text representation comprising structural characteristics defining a respective layout;
determining a document type of the digitalized document based on the structural characteristics of the digitalized document;
obtaining, from a storage, contextual data related to the document type of the digitalized document;
generating a prompt comprising a data field extraction schema corresponding to the document type of the digitalized document;
enriching the prompt based on the contextual data and the respective layout of the data fields in the digitalized document to generate an enriched prompt, wherein the enriched prompt defines ranges for one or more data fields;
obtaining, from an execution of a prediction engine, a structured document based on the enriched prompt invoked for the digitalized document; and
providing the structured document for semantic querying to extract portions of data from the structured document to trigger a process execution at an application based on the extracted portions of data.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein obtaining the digitalized document comprises:
receiving, from an external system, an original document comprising a semantically unsearchable format, the external system being identified by sender information; and
applying text recognition and formatting alpha-numeric values according to set formatting rules to the original document.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the enriched prompt comprises the digitalized document formatted according to an original layout of the original document.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, wherein the ranges for the data fields are determined based on the sender information.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the contextual data comprises a document identifier range that is compared to a document identifier to determine a validity of the digitalized document.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein values of the data fields are processed using one or more rules defining a validity of the values according to the document type.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the storage is populated with data during provisioning.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein obtaining, from the storage, the contextual data related to the document type of the digitalized document comprises invoking multiple submodules related to different portions of the corresponding document type.

### Claim 9

A system comprising:
a computing device; and
a computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations for selectively generating graphical representations with digital assistants in enterprise systems, the operations comprising:
obtaining a digitalized document comprising data fields in a layout-preserving text representation comprising structural characteristics defining a respective layout;
determining a document type of the digitalized document based on the structural characteristics of the digitalized document;
obtaining, from a storage, contextual data related to the document type of the digitalized document;
generating a prompt comprising a data field extraction schema corresponding to the document type of the digitalized document;
enriching the prompt based on the contextual data and the respective layout of the data fields in the digitalized document to generate an enriched prompt, wherein the enriched prompt defines ranges for one or more data fields;
obtaining, from an execution of a prediction engine, a structured document based on the enriched prompt invoked for the digitalized document; and
providing the structured document for semantic querying to extract portions of data from the structured document to trigger a process execution at an application based on the extracted portions of data.

### Claim 10 (depends on 9)

The system of claim 9, wherein obtaining the digitalized document comprises:
receiving, from an external system, an original document comprising a semantically unsearchable format, the external system being identified by sender information; and
applying text recognition and formatting alpha-numeric values according to set formatting rules to the original document.

### Claim 11 (depends on 10)

The system of claim 10, wherein the enriched prompt comprises the digitalized document formatted according to an original layout of the original document.

### Claim 12 (depends on 10)

The system of claim 10, wherein the ranges for the data fields are determined based on the sender information.

### Claim 13 (depends on 9)

The system of claim 9, wherein the contextual data comprises a document identifier range that is compared to a document identifier to determine a validity of the digitalized document.

### Claim 14 (depends on 9)

The system of claim 9, wherein values of the data fields are processed using one or more rules defining a validity of the values according to the document type.

### Claim 15 (depends on 9)

The system of claim 9, wherein the storage is populated with data during provisioning.

### Claim 16

A non-transitory computer-readable media encoded with a computer program, the computer program comprising instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:
obtaining a digitalized document comprising data fields in a layout-preserving text representation comprising structural characteristics defining a respective layout;
determining a document type of the digitalized document based on the structural characteristics of the digitalized document;
obtaining, from a storage, contextual data related to the document type of the digitalized document;
generating a prompt comprising a data field extraction schema corresponding to the document type of the digitalized document;
enriching the prompt based on the contextual data and the respective layout of the data fields in the digitalized document to generate an enriched prompt, wherein the enriched prompt defines ranges for one or more data fields;
obtaining, from an execution of a prediction engine, a structured document based on the enriched prompt invoked for the digitalized document; and
providing the structured document for semantic querying to extract portions of data from the structured document to trigger a process execution at an application based on the extracted portions of data.

### Claim 17 (depends on 16)

The non-transitory computer-readable media of claim 16, wherein obtaining the digitalized document comprises:
receiving, from an external system, an original document comprising a semantically unsearchable format, the external system being identified by a sender information; and
applying text recognition and formatting alpha-numeric values according to set formatting rules to the original document.

### Claim 18 (depends on 17)

The non-transitory computer-readable media of claim 17, wherein the enriched prompt comprises the digitalized document formatted according to an original layout of the original document.

### Claim 19 (depends on 17)

The non-transitory computer-readable media of claim 17, wherein the ranges for the data fields are determined based on the sender information.

### Claim 20 (depends on 16)

The non-transitory computer-readable media of claim 16, wherein the contextual data comprises a document identifier range that is compared to a document identifier to determine a validity of the digitalized document.
