# US 2025/0156404 A1 · Enhanced methodology for optimizing data query prompts

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

- Number: US 2025/0156404 A1
- Document ID: US20250156404A1
- Status: Published application
- Kind: A1
- Application number: 18/388,249
- Filed: 2023-11-09
- Published: 2025-05-15
- Earliest claimed: 2023-11-09
- Assignees: Hitachi, Ltd.
- Applicants: HITACHI, Ltd.
- Inventors: Takuya HABARA; Shoji YUNOKI; Sudhanshu GAUR
- Web page: https://patentgrep.com/patent/US20250156404A1

## CPC

- G06F 16/242: Query formulation
- G06F 16/212: {with details for data modelling support}
- G06F 16/254: {Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A search query generation method for information retrieval, the method comprising receiving, by a processor, a first query issued by a user; extracting, by the processor, a plurality of field status items associated with the first query; extracting, by the processor, first schema information associated with the plurality of field status items; adding, by the processor, the plurality of field status items and the first schema information as contextual information to the first query to generate a second query, generating, by the processor, an information search code based on the second query; and executing, by the processor, the information search code to retrieve information associated with the first query from a plurality of data source systems.

## Claims

### Claim 1

A search query generation method for information retrieval, the method comprising:
receiving, by a processor, a first query issued by a user;
extracting, by the processor, a plurality of field status items associated with the first query using a trained artificial intelligence (TAI) model, wherein the plurality of field status items is extracted from real-time field status information comprising at least one of employee information, order information, work order information, or manufacturing execution information;
extracting, by the processor, first schema information associated with the plurality of field status items using the TAI model, wherein the first schema information comprises at least one of data structure information of data tables, files, or application program interfaces that access data stored across the plurality of data source systems;
adding, by the processor, the plurality of field status items and the first schema information as contextual information to the first query to generate a second query, wherein the contextual information enhances a specificity of the query to improve the information retrieval;
generating, by the processor, an information search code based on the second query using the TAI model; and
executing, by the processor, the information search code to retrieve information associated with the first query from a plurality of data source systems.

### Claim 2

(canceled)

### Claim 3 (depends on 1)

The method of claim 1,
wherein the employee information, the order information, the work order information, and the manufacturing execution information are associated with a company; and
wherein the user is an employee of the company and employee information of the user is extracted from the real-time field status information as part of the plurality of field status items.

### Claim 4 (depends on 1)

The method of claim 1,
wherein the first schema information is extracted from second schema information, and the second schema information is related to the data stored across the plurality of data source systems.

### Claim 5 (depends on 4)

The method of claim 4, wherein the second schema information comprises schema information of data table associated with the data, schema information of data files associated with the data, and schema information of application program interfaces that access the data.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
determining, by the processor, to refer to past queries;
performing, by the processor, query extraction to extract at least one past query that is similar to the second query;
identifying, by the processor, past query information associated with the at least one past query; and
adding, by the processor, the past query information to the second query.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
storing, by the processor, the first query, the second query, and the information search code as past query.

### Claim 8 (depends on 1)

The method of claim 1, wherein the plurality of data source systems comprises enterprise resource planning (ERP) systems, product lifecycle management (PLM) systems, and manufacturing execution systems (MES).

### Claim 9 (depends on 1)

The method of claim 1, wherein extraction of the plurality of field status items and extraction of the first schema information are performed in real-time.

### Claim 10 (depends on 1)

The method of claim 1, wherein extraction of the plurality of field status items, extraction of the first schema information, and generation of the information search code are performed using trained artificial intelligence models.

### Claim 11

A search query generation system for information retrieval, the system comprising:
a plurality of data source systems; and
a processor in communication with the plurality of data source systems, wherein the processor is configured to:
receive a first query issued by a user;
extract a plurality of field status items associated with the first query using a trained artificial intelligence (TAI) model, wherein the plurality of field status items is extracted from real-time field status information, including at least one of employee information, order information, work order information, and manufacturing execution information;
extract first schema information associated with the plurality of field status items using the TAI model, wherein the first schema information comprises at least data structure information of data tables, files, and application program interfaces that access data stored across the plurality of data source systems;
add the plurality of field status items and the first schema information as contextual information to the first query to generate a second query, wherein the contextual information enhances the specificity of the query to improve the information retrieval;
generate an information search code based on the second query using the TAI model; and
execute the information search code to retrieve information associated with the first query from the plurality of data source systems.

### Claim 12

(canceled)

### Claim 13 (depends on 1)

The system of claim 1,
wherein the employee information, the order information, the work order information, and the manufacturing execution information are associated with a company; and
wherein the user is an employee of the company and employee information of the user is extracted from the real-time field status information as part of the plurality of field status items.

### Claim 14 (depends on 11)

The system of claim 11,
wherein the first schema information is extracted from second schema information, and the second schema information is related to the data stored across the plurality of data source systems.

### Claim 15 (depends on 14)

The system of claim 14, wherein the second schema information comprises schema information of data table associated with the data, schema information of data files associated with the data, and schema information of application program interfaces that access the data.

### Claim 16 (depends on 11)

The system of claim 11, wherein the processor is further configured to:
determine to refer to past queries;
perform query extraction to extract at least one past query that is similar to the second query;
identify past query information associated with the at least one past query; and
add the past query information to the second query.

### Claim 17 (depends on 16)

The system of claim 16, wherein the processor is further configured to:
store the first query, the second query, and the information search code as past query.

### Claim 18 (depends on 11)

The system of claim 11, wherein the plurality of data source systems comprises enterprise resource planning (ERP) systems, product lifecycle management (PLM) systems, and manufacturing execution systems (MES).

### Claim 19 (depends on 11)

The system of claim 11, wherein extraction of the plurality of field status items and extraction of the first schema information are performed in real-time.

### Claim 20 (depends on 11)

The system of claim 11, wherein extraction of the plurality of field status items, extraction of the first schema information, and generation of the information search code are performed using trained artificial intelligence models.
