Skip to content

docs(ragas): update metrics documentation and clarify answer correctness#89

Merged
ruivieira merged 2 commits into
eval-hub:mainfrom
ruivieira:fix/ragas-docs
Jul 6, 2026
Merged

docs(ragas): update metrics documentation and clarify answer correctness#89
ruivieira merged 2 commits into
eval-hub:mainfrom
ruivieira:fix/ragas-docs

Conversation

@ruivieira

@ruivieira ruivieira commented Jul 6, 2026

Copy link
Copy Markdown
Member

What and why

Clarifies the RAGAS metrics documentation in the EvalHub docs site. The previous docs were ambiguous about:

  • Which five metrics are "core" RAGAS metrics
  • Why factual_correctness (answer correctness) is absent from ragas_rag_default
  • The difference between factual_correctness and nv_accuracy (Answer Accuracy)

This adds a dedicated "Five Core RAGAS Metrics" section with a mapping table, a callout distinguishing answer correctness from answer accuracy, and an example showing how to include factual_correctness explicitly. The section heading and category for factual_correctness in the metrics table are also corrected.

Type

  • feat
  • fix
  • docs
  • refactor / chore
  • test / ci

Testing

  • Tests added or updated
  • Tested manually

Breaking changes

None.

Summary by CodeRabbit

  • Documentation

    • Clarified RAGAS benchmark and metric docs, including the difference between default and full benchmark suites.
    • Added clearer guidance on the five core metrics, especially factual_correctness, and how to include it in results.
    • Improved explanations of answer correctness vs. answer accuracy and faithfulness.
  • Chores

    • Updated ignore rules to exclude an additional generated directory.

- Enhanced the description of the `ragas_rag_default` benchmark to specify the inclusion of the answer correctness metric.
- Updated the overview of RAGAS metrics to include detailed information about the five core metrics, emphasizing the role of `factual_correctness`.
- Clarified the distinction between answer correctness and answer accuracy in the metrics documentation.
- Added a note on how to include `factual_correctness` in benchmark configurations.
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@ruivieira, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ff7b50db-9666-422b-bb56-0976891ee25e

📥 Commits

Reviewing files that changed from the base of the PR and between c675414 and cc3ca1f.

📒 Files selected for processing (1)
  • src/content/docs/adapters/ragas/index.mdx
📝 Walkthrough

Walkthrough

This PR updates RAGAS adapter documentation to clarify that factual_correctness is the fifth core metric, distinct from nv_accuracy, and reclassifies it accordingly across the metrics reference, configuration guide, and overview page. A .gitignore entry for lib/.precomp/ is also added.

Changes

RAGAS Documentation Clarification

Layer / File(s) Summary
Core metrics reclassification
src/content/docs/adapters/ragas/metrics.md
Adds a "Five Core RAGAS Metrics" section mapping metric names to IDs, reclassifies factual_correctness from "Extended" to "Core" in the overview table, rewrites the Answer Correctness subsection framing it as the fifth core metric, and clarifies the Answer Accuracy section distinguishes nv_accuracy from factual_correctness.
Overview and configuration wording
src/content/docs/adapters/ragas/index.mdx, src/content/docs/adapters/ragas/configuration.md
Updates key-features bullets and benchmark suite descriptions to explicitly name factual_correctness and clarify how to enable it via ragas_rag_full or parameters.metrics.
Ignore build artifact directory
.gitignore
Adds lib/.precomp/ to ignored paths.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested labels: kind/docs

Suggested reviewers: gnaulak-redhat, ppadashe-psp, scheruku-rh

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main docs-focused RAGAS metrics update.
Description check ✅ Passed The description covers what/why, type, testing, and breaking changes; only the issue link is missing.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/content/docs/adapters/ragas/metrics.md (1)

122-141: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Move factual_correctness out of the Extended Metrics section.

This subsection now says factual_correctness is a core metric, but it still lives under ## Extended Metrics, which makes the page internally inconsistent. Please relocate it into the core-metrics section or rename the section to match the new classification.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/content/docs/adapters/ragas/metrics.md` around lines 122 - 141, The
metrics documentation is inconsistent because factual_correctness is described
as a core RAGAS metric while still being listed under Extended Metrics. Move the
factual_correctness subsection into the core metrics area, or rename the
surrounding section so the heading matches the classification used in that
subsection; update the nearby text in the metrics docs to keep the section
organization aligned.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/content/docs/adapters/ragas/index.mdx`:
- Around line 13-15: The metric list in the RAGAS overview mixes
retrieved-context grounding metrics with the reference-based
`factual_correctness` metric, which is misleading. Update the descriptive
sentence in the RAGAS docs content to keep the grounding metrics together by
naming faithfulness, answer relevancy, context precision, and context recall as
the direct grounding measures, and mention answer correctness
(`factual_correctness`) separately. Use the RAGAS adapter intro text as the
location reference.

---

Outside diff comments:
In `@src/content/docs/adapters/ragas/metrics.md`:
- Around line 122-141: The metrics documentation is inconsistent because
factual_correctness is described as a core RAGAS metric while still being listed
under Extended Metrics. Move the factual_correctness subsection into the core
metrics area, or rename the surrounding section so the heading matches the
classification used in that subsection; update the nearby text in the metrics
docs to keep the section organization aligned.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1b1f0df9-8936-4098-87e4-827432c9638f

📥 Commits

Reviewing files that changed from the base of the PR and between 0973e1c and c675414.

📒 Files selected for processing (4)
  • .gitignore
  • src/content/docs/adapters/ragas/configuration.md
  • src/content/docs/adapters/ragas/index.mdx
  • src/content/docs/adapters/ragas/metrics.md

Comment thread src/content/docs/adapters/ragas/index.mdx Outdated
- Updated the RAGAS overview to specify that grounding metrics assess whether a RAG system correctly grounds its answers in retrieved documents.
- Enhanced the description of the metrics, including faithfulness, answer relevancy, context precision, context recall, and answer correctness (`factual_correctness`), to improve clarity and understanding.

@julpayne julpayne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ruivieira
ruivieira merged commit fc4713a into eval-hub:main Jul 6, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in EvalHub Planning Jul 6, 2026
@ruivieira
ruivieira deleted the fix/ragas-docs branch July 6, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants