Search

Search IconIcon to open search

Faithfulness

Last updatedUpdated: by Jakub Žovák · 1 min read

Properties
created 24.10.2024, 11:36
modified 25.06.2026, 09:53
published Empty
topics Faithfulness, RAGAS, LLM-as-Judge, RAG Evaluation
authors Empty
ai-assisted No
  • Beyond the RAGAS LLM-as-a-judge formulation below, faithfulness can also be scored with cheap specialized classifiers

The faithfullness metric measures (from 0 to 1) the factual consistency of an answer when compared to the retrieved context. A score of 1 means all claims in the answer can be found in the context. A score of 0 would indicate no claims in the answer are found in the context.

We calculate the faithfullness like so:
$$
Faithfulness = \frac{\text{Number of claims in answer also found in context}}{\text{Number of claims in answer}}
$$

When calculating faithfullness RAGAS is using OpenAI LLMs to decide which claims are in the answer and whether they also exist in the context. Because of the “generative” nature of this approach we won’t always get accurate scores.

We can see that we get perfect scores for all but our fourth result, which scores 0.0. However, when looking at this we can see some claims that seem related. Nonetheless the fourth answer does seem to be less grounded in the truth of our context than other responses, indicated that there is justification behind this low score.