
open-rag-eval
Open-source Python toolkit for measuring the quality of RAG pipelines
open-rag-eval is an open-source AI tool for knowledge and memory. It is available on CLI, API and Self-hosted.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- GitHub stars
- 428
- Last commit
- Language
- Python
- License
- Apache-2.0
Similar tools
About open-rag-eval
Teams building retrieval-augmented generation systems often struggle to tell whether a change to retrieval or prompting actually helps. This toolkit runs a set of queries through a RAG pipeline and scores the retrieved passages and generated answers, so results can be compared across configurations over time.
The core retrieval and generation metrics follow the UMBRELA and AutoNuggetizer approaches and do not need golden chunks or golden answers. When reference answers exist, an optional golden answer evaluator adds semantic similarity and factual correctness scores. Evaluators can be chained, and a chunking comparison mode re-indexes documents under several chunk sizes and ranks them by retrieval score.
It ships with connectors for the Vectara platform, LlamaIndex and LangChain, and can also score outputs from any pipeline written to a CSV file. A command-line tool handles evaluation, plotting and synthetic query generation, and a Flask server exposes the same evaluation over HTTP. It suits ML engineers and search teams who want reproducible RAG benchmarks they can run and extend themselves.
What it does
- Reference-free retrieval metrics
- Scores retrieval and answer quality without requiring golden chunks or golden answers.
- Golden answer comparison
- Compares generated answers against expected answers using embedding similarity and claim-level precision and recall.
- Pluggable connectors
- Ships connectors for Vectara, LlamaIndex and LangChain, and accepts results from any pipeline in CSV form.
- Chunking strategy comparison
- Re-indexes documents under several chunk size settings and ranks them by mean retrieval score.
- Synthetic query generation
- Creates evaluation questions from a corpus of local files, CSV data or a Vectara corpus.
- Plotting and web viewer
- Produces local plots from the command line and supports uploading results to a hosted viewer.
Good for
- Measure whether a change to chunking or retrieval settings improves RAG answer quality
- Build a regression test suite of queries with expected answers for a RAG application
- Generate evaluation questions from an internal document set without writing them by hand
- Compare results from several RAG providers on the same query set
- Score RAG outputs over HTTP as part of a continuous integration pipeline
Pricing
Open source
Free and open source under Apache 2.0; judge model API usage is billed separately by the provider.
open-rag-eval FAQ
How do I install open-rag-eval?
Install the open-rag-eval package from pip, which provides an open-rag-eval command-line tool.
Do I need golden answers to use open-rag-eval?
No. The core retrieval and generation metrics run without golden chunks or answers. Golden answer evaluation is optional and requires an expected_answer column.
Which language models are used for judging?
The default judge is an OpenAI model such as gpt-4o-mini. Hallucination scoring uses the open-source HHEM model by default or the Vectara commercial API as an alternative.
What license is open-rag-eval under?
It is licensed under Apache 2.0.
Is open-rag-eval free?
Yes. open-rag-eval is open source, so you can use and self-host it for free.
What are the best alternatives to open-rag-eval?
The closest alternatives to open-rag-eval are ragflow, localGPT, PageIndex, llama_index and ragapp.
Where this comes from
- Description: written from the project's README.



