Chapter 7. AutoRAG configuration parameters


The following user-configurable parameters are available when you create an AutoRAG optimization run in the OpenShift AI dashboard. AutoRAG also uses default values for search space parameters that you cannot change.

7.1. User-configurable parameters

You set the following parameters when you create an AutoRAG optimization run.

Expand
Table 7.1. User-configurable parameters
ParameterDescriptionValues

Optimization metric

The metric that AutoRAG uses to rank RAG patterns.

Answer faithfulness (default), Answer correctness, Context correctness

Maximum RAG patterns

The number of RAG configurations that AutoRAG evaluates.

A value between 4 and 20. Default: 8.

Foundation models

The large language models used for answer generation. Discovered from your OGX instance.

All available models are selected by default. Clear the checkbox for models to exclude them.

Embedding models

The models used to create vector embeddings and to encode queries during retrieval. Discovered from your OGX instance.

All available models are selected by default. Clear the checkbox for models to exclude them.

Vector database

The vector database where AutoRAG stores document embeddings.

A remote Milvus or pgvector (PostgreSQL) instance registered as a vector I/O provider with your OGX instance.

Input documents

Documents that AutoRAG processes and indexes for retrieval.

PDF, DOCX, PPTX, Markdown, HTML, TXT. Maximum 32 MiB per file when uploading. Documents in S3 can be selected via the file browser without upload size restrictions.

Evaluation dataset

A JSON file with test questions and expected answers for evaluating RAG quality.

JSON format. See Prepare test data for AutoRAG.

7.2. Search space defaults

AutoRAG explores the following search space during optimization. For parameters with multiple default values, AutoRAG evaluates combinations of those values across RAG configurations. These values are not configurable through the dashboard.

Expand
Table 7.2. Search space default parameters
ParameterDefault valuesDescription

Chunking method

Recursive (recursive character text splitting)

The method used to split documents into chunks.

Chunk size

1024, 2048

The target size of each document chunk in characters.

Chunk overlap

128, 256

The number of overlapping characters between consecutive chunks.

Retrieval method

Simple (direct chunk retrieval)

The method used to retrieve relevant chunks from the vector database.

Number of chunks

3, 5, 10

The number of document chunks retrieved per query.

Search mode

Vector, Hybrid

The search strategy. Hybrid search combines vector and keyword search and is available only with Milvus.

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top