TECHNOLOGY

Ragas entity recall: matching names does not establish matching facts

In this article
THE QUICK TAKE

Entity recall measures extracted-name coverage; the same names can participate in different or contradictory relationships.

Identify what the retrieval score counts

A retrieved passage can mention the expected company and product while stating the wrong relationship between them. An entity-coverage metric need not detect that error. Ragas ContextEntityRecall compares entities found in reference text with entities found in retrieved contexts. Name the counted object before interpreting a high score as proof that the retrieved passage supports the required factual assertion or that the generated answer is correct.

Preserve the reference-entity denominator

The documented measure uses entities from the reference as the coverage denominator. Adding unrelated entities to retrieved material does not create a precision penalty in this recall calculation. Likewise, repeated mentions are not additional distinct entities in a set. Report the selected metric alongside the retrieval question it answers, rather than treating a single number as simultaneous evidence about coverage, distractor volume, ranking quality and support for every relationship stated in the source.

Inspect extraction before interpreting intersection

The collections implementation extracts entities separately from the reference and joined context text, converts the outputs to sets and computes their intersection. The comparison therefore depends on the strings produced by extraction. A model returning an abbreviation on one side and a longer name on the other can change the overlap even when a reviewer recognizes the same real entity. Preserve diagnostic extraction outputs when investigating such a discrepancy.

A prompt instruction is not a canonical registry

The extraction prompt asks the model to consider different forms of the same entity together. That instruction does not establish a deterministic shared entity identifier across independent calls. Test aliases, translated names and ambiguous organization names under the actual judge configuration. Any additional canonicalization changes the measurement procedure and should be separately recorded, rather than silently described as an unchanged score from the original implementation.

Test relations independently from name coverage

Use an illustrative pair where the same extracted names appear but ownership or location is reversed. Inspect whether name coverage stays similar while factual support changes; this is a diagnostic design, not a reported benchmark result. Retrieval metric boundaries and entity grouping provide adjacent distinctions. Keep extracted-name coverage, relationship correctness and answer evaluation separately identified so readers can see precisely what the selected metric establishes.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles