ragas icon indicating copy to clipboard operation
ragas copied to clipboard

docs: Response Relevancy title doesn't match Answer Relevancy name of the metric

Open r3v5 opened this issue 1 month ago • 1 comments

[x ] I have checked the documentation and related resources and couldn't resolve my bug.

There is a mismatch between the names: Response Relevancy and Answer Relevancy which confuses developers.

Image Image

Proposed fix: rename Response Relevancy to Answer Relevancy for clarity. Ragas version: latest

r3v5 avatar Oct 28 '26 11:10 r3v5

Thanks for the report — I can reproduce this from the docs source. I'll work on this.

Repro / where it shows up

The metric page itself is already titled "Answer Relevancy" (docs/concepts/metrics/available_metrics/answer_relevance.md, line 1: ## Answer Relevancy), but four places still call it "Response Relevancy":

  • docs/concepts/metrics/available_metrics/index.md:12 — [Response Relevancy](answer_relevance.md)
  • mkdocs.yml:35 — nav entry Response Relevancy: concepts/metrics/available_metrics/answer_relevance.md
  • docs/howtos/integrations/gemini.md:464 — plain list item Response Relevancy
  • docs/howtos/integrations/r2r.md:159 — [Response Relevancy](.../answer_relevance/#response-relevancy)

The last one is also a broken anchor: the heading it points at is "Answer Relevancy", so the slug is #answer-relevancy, not #response-relevancy. That link currently jumps to the top of the page at best.

Root cause

The metric was renamed to Answer Relevancy and the metric page heading was updated, but the navigation label, the index list, and the two integration how-tos kept the old name (and the old slug).

Planned fix

Rename the label to "Answer Relevancy" in those four places and correct the r2r anchor to #answer-relevancy, so the sidebar, the index and the how-tos match the metric name and the link resolves.

I'll leave the ResponseRelevancy class name in the "Legacy Metrics API" example of answer_relevance.md alone — that's the deprecated API (slated for removal in 1.0) and renaming it is a separate, breaking change.

Fixes #3073

inchang-ing avatar Oct 28 '26 17:10 inchang-ing