Chapter 6. AutoRAG evaluation metrics


Each AutoRAG optimization run produces scores for three evaluation metrics. All metrics are scored from 0 to 1, with higher scores indicating better performance. Each score includes a mean value, a high confidence interval (CI high), and a low confidence interval (CI low).

Answer faithfulness

Measures whether the generated answer uses information from the retrieved context rather than hallucinated content. A high faithfulness score means the answer uses information from the retrieved documents, not from the model’s training data.

Optimize for faithfulness when accuracy and traceability to source documents are critical, such as in compliance or legal use cases.

Answer correctness

Measures whether the generated answer matches the expected ground-truth answers in your test data. A high answer correctness score means the RAG system produces answers that align with your provided correct answers.

Optimize for answer correctness when you have well-defined expected answers and want the system to match them closely.

Context correctness

Measures whether the retrieved documents are relevant to the question. A high context correctness score means the retrieval step finds the relevant documents from your document set.

Optimize for context correctness when retrieval quality is more important than answer phrasing, such as when you plan to use a different generation model in production.

6.1. Metric combinations

When you review AutoRAG results, consider metric scores together:

  • High faithfulness with low answer correctness indicates that the answer is grounded in the retrieved context, but the context does not contain the most accurate answer.
  • High answer correctness with low faithfulness indicates that the model draws on training data rather than retrieved documents.
  • Low context correctness with high answer correctness indicates that the generation model is compensating for poor retrieval. This pattern might not be reliable for questions outside your test data.
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