# US 2025/0384283 A1 · Rag pipeline optimization system

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

- Number: US 2025/0384283 A1
- Document ID: US20250384283A1
- Status: Published application
- Kind: A1
- Application number: 19/229,879
- Filed: 2025-06-05
- Published: 2025-12-18
- Earliest claimed: 2024-06-18
- Assignees: Trustwise Inc.
- Applicants: Trustwise Inc.
- Inventors: Manoj SAXENA; Matthew BARKER; Avinash SAXENA; Evan THOMAS; James CARR; Thomas ANDREWS; Nihal BHATNAGAR
- Web page: https://patentgrep.com/patent/US20250384283A1

## CPC

- G06N 3/0475: Generative networks
- G06F 21/6245: {Protecting personal data, e.g. for financial or medical purposes}
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to an aspect of an embodiment, a method may include obtaining a blueprint associated with a retrieval-augmented generation (RAG) pipeline. The blueprint may define one or more objectives associated with the RAG pipeline. The method may further include performing an analysis of the RAG pipeline with respect to the one or more objectives. In some embodiments, one or more hyperparameters of the RAG pipeline may be adjusted based at least on the analysis.

## Claims

### Claim 1

A method comprising:
obtaining a blueprint associated with a retrieval-augmented generation (RAG) pipeline, the blueprint defining one or more objectives associated with the RAG pipeline;
performing an analysis of the RAG pipeline with respect to the one or more objectives; and
adjusting one or more hyperparameters of the RAG pipeline based at least on the analysis.

### Claim 2 (depends on 1)

The method of claim 1, wherein performing the analysis of the RAG pipeline with respect to the one or more objectives comprises:
generating one or more scores, each score of the one or more scores corresponding to the one or more objectives.

### Claim 3 (depends on 2)

The method of claim 2, wherein performing the analysis of the RAG pipeline with respect to the one or more objectives further comprises:
generating a report including the one or more scores.

### Claim 4 (depends on 1)

The method of claim 1, wherein the one or more objectives include one or more standards for the RAG pipeline.

### Claim 5 (depends on 1)

The method of claim 1, wherein the one or more objectives include one or more of safety, alignment, cost, carbon or latency.

### Claim 6 (depends on 1)

The method of claim 1, wherein the blueprint further defines one or more generative artificial intelligence (Gen AI) models to be analyzed.

### Claim 7 (depends on 6)

The method of claim 6, wherein performing analysis of the RAG pipeline with respect to the one or more objectives comprises:
scanning the one or more Gen AI models with respect to the one or more objectives.

### Claim 8 (depends on 1)

The method of claim 1, wherein adjusting one or more hyperparameters of the RAG pipeline based at least on the analysis comprises:
performing a optimization process with respect to the one or more objectives with the one or more hyperparameters as independent variables; and
adjusting the independent variables based on the optimization process.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
performing a second analysis of the RAG pipeline based on the adjusted hyperparameters; and
further adjusting the adjusted hyperparameters based at least on the second analysis.

### Claim 10 (depends on 1)

The method of claim 1, wherein a plurality of iterations of the analysis of the RAG pipeline is performed, each iteration of the plurality of iterations analyzing different configuration of the RAG pipeline.

### Claim 11

A system comprising:
one or more processors; and
one or more non-transitory computer-readable storage media configured to store instructions that, in response to being executed, cause a system to perform operations, the operations comprising:
obtaining a blueprint associated with a retrieval-augmented generation (RAG) pipeline, the blueprint defining one or more objectives associated with the RAG pipeline;
performing an analysis of the RAG pipeline with respect to the one or more objectives; and
adjusting one or more hyperparameters of the RAG pipeline based at least on the analysis.

### Claim 12 (depends on 11)

The system of claim 11, wherein performing the analysis of the RAG pipeline with respect to the one or more objectives comprises:
generating one or more scores, each score of the one or more scores corresponding to the one or more objectives.

### Claim 13 (depends on 12)

The system of claim 12, wherein performing the analysis of the RAG pipeline with respect to the one or more objectives further comprises:
generating a report including the one or more scores.

### Claim 14 (depends on 11)

The system of claim 11, wherein the one or more objectives include one or more standards for the RAG pipeline.

### Claim 15 (depends on 11)

The system of claim 11, wherein the one or more objectives include one or more of safety, alignment, cost, or latency.

### Claim 16 (depends on 11)

The system of claim 11, wherein the blueprint further defines one or more generative artificial intelligence (Gen AI) models to be analyzed.

### Claim 17 (depends on 16)

The system of claim 16, wherein performing analysis of the RAG pipeline with respect to the one or more objectives comprises:
scanning the one or more Gen AI models with respect to the one or more objectives.

### Claim 18 (depends on 11)

The system of claim 11, wherein adjusting one or more hyperparameters of the RAG pipeline based at least on the analysis comprises:
performing a optimization process with respect to the one or more objectives with the one or more hyperparameters as independent variables; and
adjusting the independent variables based on the optimization process.

### Claim 19 (depends on 11)

The system of claim 11, the operations further comprising:
performing a second analysis of the RAG pipeline based on the adjusted hyperparameters; and
further adjusting the adjusted hyperparameters based at least on the second analysis.

### Claim 20

One or more non-transitory computer-readable media storing instructions that, when executed by one or more processors, cause a system to perform operations, the operations comprising:
obtaining a blueprint associated with a retrieval-augmented generation (RAG) pipeline, the blueprint defining one or more objectives associated with the RAG pipeline;
performing an analysis of the RAG pipeline with respect to the one or more objectives; and
adjusting one or more hyperparameters of the RAG pipeline based at least on the analysis.
