Field manual
How to evaluate RAG retrieval, answers, and citations
Score a bilingual RAG example by hand and see why a correct answer with an unsupported citation can hold a release.
A RAG system can retrieve the right passage, give the right answer, and cite a different policy. If the answer gives a deadline, the citation needs to establish when the clock starts.
Score the cases below with the passages on this page. The pass and wrong-citation cases have the same Arabic question, ranked passages and answer. The citation alone changes.
The synthetic corpus
These four passages are the entire corpus for a fictional travel-expense policy. Each ID refers to one passage. The policies, outputs and scores in this guide are synthetic worked examples.
EN-01 · Foreign-currency travel expenses
For reimbursement of foreign-currency travel expenses, attach an itemized receipt. Submit the claim within 14 calendar days of the purchase date.
EN-02 · Travel advances
Request a travel advance at least 5 business days before departure. Close the advance within 14 calendar days of returning from the trip.
AR-01 · Domestic travel receipts
في مطالبات تعويض مصاريف السفر المحلية، يجب إرفاق إيصال مفصّل إذا تجاوزت قيمة المصروف 25 دينارًا أردنيًا.
AR-02 · Domestic claims without a receipt
إذا تعذّر الحصول على إيصال مفصّل لمصروف سفر محلي يتجاوز 25 دينارًا أردنيًا، أرسل المطالبة إلى فريق المالية للمراجعة اليدوية.
How to score each row
Set the expected facts and passage IDs before reviewing the system's answer. Use the first two ranked passages as the context given to the model.
- Retrieval recall@2 = distinct expected passage IDs in the top two ÷ all expected passage IDs. One match out of two scores 1/2. Count a repeated ID once. With zero expected passages, use N/A.
- Answer correctness = fully correct required facts ÷ (required facts + extra incorrect material claims). Accept translations and paraphrases that preserve the meaning. Count omissions, partial facts and contradictions as zero for that fact. Count each extra incorrect material claim once in the denominator. An unexpected abstention on an answerable question scores 0 ÷ required facts.
- Citation support = fully supported material claims ÷ all material claims the answer makes. Read the passages attached to each claim and check the scope, units and qualifiers. Cited passages can support a claim together. Unknown IDs contribute no evidence. Missing, partial or contradictory support scores zero for the claim. Count incorrect claims in the denominator. With zero material claims, use N/A.
For an out-of-corpus question, there are zero required facts. Grade answer correctness as an abstention check. A clear statement that the corpus lacks the answer, with zero factual claims about the policy and zero emitted citations, scores 1/1. An attempted policy answer or an emitted citation fails the check at 0/1. Keep N/A out of averages.
For this expense policy, every required fact is critical. Deadlines, receipt requirements and routing instructions can all affect how a claim gets processed. Treat extra claims about those rules as critical too.
Release rules for this example
Release only if every answerable case has full recall@2 and full answer correctness, every critical claim has full citation support, and the out-of-corpus case passes its abstention check. One unsupported critical claim holds release even if the answer is correct. Apply these rules to each case individually. A high score elsewhere cannot offset a failure.
Worked examples
A. Arabic answer with English evidence
Question
ما المستند المطلوب لتعويض مصاريف السفر المدفوعة بعملة أجنبية، وما مهلة تقديم المطالبة؟
Expected facts for foreign-currency travel expenses
- Attach an itemized receipt.
- Submit within 14 calendar days of the purchase date.
Expected passage EN-01. Top 2 by rank 1. EN-01, 2. EN-02.
Sample response
لتعويض مصاريف السفر المدفوعة بعملة أجنبية، أرفق إيصالًا مفصّلًا وقدّم المطالبة خلال 14 يومًا تقويميًا من تاريخ الشراء.
Emitted citations Both claims cite EN-01.
- Retrieval 1/1 = 100%.
EN-01is first. - Answer 2/2 = 100%. The Arabic answer preserves the itemized receipt and the deadline of 14 calendar days from purchase.
- Citations 2/2 = 100%.
EN-01supports the receipt and the deadline, one point each. - Decision Pass.
B. Same Arabic answer with an unsupported citation
Question
ما المستند المطلوب لتعويض مصاريف السفر المدفوعة بعملة أجنبية، وما مهلة تقديم المطالبة؟
Expected facts for foreign-currency travel expenses
- Attach an itemized receipt.
- Submit within 14 calendar days of the purchase date.
Expected passage EN-01. Top 2 by rank 1. EN-01, 2. EN-02.
Sample response
لتعويض مصاريف السفر المدفوعة بعملة أجنبية، أرفق إيصالًا مفصّلًا وقدّم المطالبة خلال 14 يومًا تقويميًا من تاريخ الشراء.
Emitted citations Both claims cite EN-02.
- Retrieval 1/1 = 100%.
EN-01is still first. - Answer 2/2 = 100%. Both required facts are still correct.
- Citations 0/2 = 0%.
EN-02says nothing about a receipt. Its 14-day rule closes an advance after return. The claim gives a reimbursement deadline after purchase. Each claim scores zero. - Decision Hold. Both critical claims lack support even though the correct evidence reached the answer step.
C. English answer with Arabic evidence
Question For a domestic travel expense above JOD 25, what receipt do I need and where should I send the claim if I cannot get one?
Expected facts for domestic travel expenses above JOD 25
- Attach an itemized receipt.
- If you cannot get one, send the claim to Finance for manual review.
Expected passages AR-01 and AR-02.
Top 2 by rank 1. AR-01, 2. AR-02.
Sample response For a domestic travel expense above JOD 25, attach an itemized receipt. If you cannot get one, send the claim to Finance for manual review.
Emitted citations The receipt claim cites AR-01. The routing claim cites AR-02.
- Retrieval 2/2 = 100%. Both expected passages are in the top two.
- Answer 2/2 = 100%. The answer preserves the strict threshold, receipt requirement and manual-review route.
- Citations 2/2 = 100%.
AR-01supports the receipt requirement.AR-02supports the routing instruction. - Decision Pass.
D. Retrieval miss on the same English question
Question For a domestic travel expense above JOD 25, what receipt do I need and where should I send the claim if I cannot get one?
Expected facts for domestic travel expenses above JOD 25
- Attach an itemized receipt.
- If you cannot get one, send the claim to Finance for manual review.
Expected passages AR-01 and AR-02.
Top 2 by rank 1. AR-01, 2. EN-01. AR-02 ranks third, outside the context given to the model.
Sample response For a domestic travel expense above JOD 25, attach an itemized receipt.
Emitted citations The receipt claim cites AR-01.
- Retrieval 1/2 = 50%. The ranking misses
AR-02at the cutoff. - Answer 1/2 = 50%. The receipt fact earns one point. The missing routing instruction earns zero.
- Citations 1/1 = 100%.
AR-01supports the sole claim. The omitted fact lowers the answer score. - Decision Hold. The answer is incomplete and the model never received the missing evidence.
E. Out-of-corpus question
Question What exchange rate should I use to convert a foreign-currency travel expense?
Expected outcome Abstain because the corpus contains no exchange-rate guidance.
Expected passages None. Top 2 by rank 1. EN-01, 2. EN-02.
Sample response The policy excerpts do not specify which exchange rate to use.
Emitted citations None.
- Retrieval N/A. There are zero expected passages.
- Answer 1/1 = 100% on the abstention check. The answer states the gap and gives no exchange-rate rule or citation.
- Citations N/A. There are zero material claims about what the policy requires.
- Decision Pass.
What to fix before you rerun
Hold the example release. Case B holds it on citation support. Case D also fails on partial retrieval and an incomplete answer.
In B, check whether the model selected EN-02 or a later step attached the wrong ID. Trace both claims from the input passages through the final rendered citations. In D, check why AR-02 landed third on the English query. Inspect how the retriever scored the Arabic passage and whether reranking pushed it below the cutoff.
After the fixes, rerun the candidate on the Arabic and English questions and the out-of-corpus question. Require both expected Arabic passages for the English question, support for every critical claim, and the same clean abstention. Replay the wrong-citation output from B and the truncated ranking from D as negative controls to confirm the evaluator still holds them.
This gate covers the fixture on this page. Set production thresholds against the claims users act on and the cases your evaluation covers.
Want this implemented end-to-end?
If you want a production-grade RAG assistant or agentic workflow— with proper evaluation, access control, and observability—let's scope it.