Generative AI · Intermediate level

Intermediate level · Module 9: Evaluating LLM and RAG Applications · Lesson 2 of 3

Faithfulness, Citations and Model-Graded Evaluation

Learners measure whether answers are supported by passages and correctly cited, using automatic checks and a calibrated grader model.

In this lesson you will

  • Measure faithfulness and citation correctness
  • Calibrate a grader model against human judgements

Key concepts

faithfulnesscitation correctnessanswer relevancegrader modelcalibration

The lesson

Faithfulness asks whether every statement in the answer is supported by the cited passages. Citation correctness asks whether the citations point to the passages that support the answer. Frameworks such as Ragas automate such measures using a grader model.

Grader models can be wrong or biased towards long answers. Grade 20 answers by hand and by the grader, measure agreement, and trust the grader only where agreement is good.

Report results per question type: averages hide weak areas, such as multi-document questions.

Step by step

  1. Run the assistant on the evaluation set.
  2. Compute citation correctness automatically.
  3. Grade faithfulness with a grader model and by hand for 20 answers.
  4. Report results by type.
Dashboard

Evaluating a school document assistant on 40 questions

Retrieval and faithfulness by question type show that multi-document and updated-policy questions need work.

Retrieval hit rate (top 5)

87.5%

35 of 40 questions

Illustrative evaluation run

Faithful answers

75.0%

30 of 40 fully supported by cited passages

Unanswerable questions declined

5 of 6

Separate 6-question set

Updated-policy questions

50.0%

2 of 4 faithful; old version retrieved

Retrieval hit and faithful answers by question type (%) Retrieval hit (%): Single document 95, Several documents 70, Numbers and tables 100, Recently updated policy 75. Faithful answers (%): Single document 90, Several documents 60, Numbers and tables 66.7, Recently updated policy 50 0255075100Single docu…Several doc…Numbers and…Recently up…Retrieval hit (%)Faithful answers (%)
Show the data behind the chart
Question typeQuestionsRetrieval hit (%)Faithful answers (%)
Single document209590
Several documents107060
Numbers and tables610066.7
Recently updated policy47550

Interpretation

Single-document questions work well (19 of 20 retrieved, 18 of 20 faithful).

Questions that need several documents are the weakest: the right passages were retrieved for only 7 of 10, and only 6 answers were fully supported.

Number and table questions always retrieved the right passage, but 2 of 6 answers misread a table, so retrieval is not the problem there. For updated policies, the old version was retrieved twice.

Recommendations

  • Keep tables whole with their headers, and add a check that numbers in the answer appear in the cited passage.
  • Remove superseded document versions from the index and show the source date in every answer.
  • Retrieve more candidates with reranking for multi-document questions, and re-run the set before release.

Practice activity

Produce the project's evaluation results with calibrated faithfulness scores.

Expected result: Results by type with a measured grader agreement rate.

Check your understanding

  1. What does faithfulness measure?

    Show answer

    Whether every statement in the answer is supported by the cited passages.

  2. Why calibrate a grader model?

    Show answer

    It can be wrong or biased; agreement with human grades shows whether to trust it.

Further learning

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.