ragcreator

ragcreator

Guide

How to evaluate a RAG system

Evaluate a RAG system in two parts. First, retrieval: for a set of real questions, did the search bring back the passage that holds the answer. Second, the answer: is each sentence supported by the passages it was given. A system can fail either part alone, so score them separately and keep the questions you test with.

See it run on a real handbook

The question: "Can I work remotely?" Retrieval found page 9:

Section 3.2 Remote work. You may work remotely up to two days a week. Tell your team which days in the shared calendar.

Each answer, checked sentence by sentence against that passage by the X-ray's own receipt:

Matches the handbook

You may work remotely up to two days a week. [1]

Backed

Changes one number

You may work remotely up to four days a week. [1]

No receipt: Not in any cited passage: 4.

Retrieval found the right page both times. Only the second answer fails, and only the answer check sees it. Score the two parts separately.

The sample is the free X-ray's handbook, 5 short pages. Nothing here is typed in by hand: the page runs the X-ray's own search and the free text splitter's own cuts.

Start with ten real questions

Write down the questions your readers actually ask and the page that answers each. Run them after every change to the chunks, the search or the prompt, so a fix in one place cannot quietly break another.

A fluent answer is not a checked one

An AI states an invented number as calmly as a real one. The check that matters is whether the sentence has a passage behind it, not whether it reads well.

Sources

Keep going

Build the whole pipeline on your documents

Works with the AI you already use: Claude, ChatGPT, any. We do not make the model smarter. We make your pipeline visible.