← All extensions
RAG Score
ivyx✓
Scores a retrieval against the documents a case declared relevant so eval suites can gate on recall
RAG Score
Measures how good your search actually is. You write down which documents should come back for a question, and this counts how many of them did. No model is asked anything, so the number is repeatable and costs no tokens.
What you can do
- Gate a pipeline on retrieval quality, the same way a test suite gates a build.
- Compare two chunking or embedding choices on the same questions.
- Catch a search that quietly stopped working when an index went stale.
- See which expected document was missed, and where the first good one ranked.
- Read recall, precision and the rank of the first relevant result for every run.
Getting started
Write a few questions in a .jsonl file, one per line, each naming the documents that should come back. Point an eval suite at your search, list rag as its engine, and run it from the Evals panel. The first run tells you what your search is worth today, and every run after that tells you whether a change helped.
Start with ten questions you already know the answers to. A small honest set beats a large guessed one.
Requirements
- Evals, which finds this engine and runs the suite.
- Vectors, and a built index for the corpora your questions search.
Good to know
- Search falls back to keyword matching when a corpus has no index, so check in every suite that the search ran semantically. Otherwise a pipeline that never embedded anything can still report a healthy recall.
- When the results carry nothing the engine can match against, or a case names no relevant document, the engine says so instead of reporting a recall of zero.
- It does not measure groundedness. Whether an answer is supported by what was retrieved needs a judge, and that belongs in a different engine.