Skip to content

Navigation Menu

Sign in
Sign up

feat: surface rank-sensitive retrieval metrics in slice-1 bench (OFFICE-671) - #1130

Open
najmuzzaman-mohammad wants to merge 1 commit into
codex/fix-human-interview-direct-answer from
rag/office-671-retrieval-observability
Open

feat: surface rank-sensitive retrieval metrics in slice-1 bench (OFFICE-671) #1130
najmuzzaman-mohammad wants to merge 1 commit into
codex/fix-human-interview-direct-answer from
rag/office-671-retrieval-observability

Conversation

@najmuzzaman-mohammad

@najmuzzaman-mohammad najmuzzaman-mohammad commented Jun 26, 2026

Copy link
Copy Markdown
Owner

What

Finishes the retrieval observability layer for the slice-1 bench. The rank-sensitive metric fields (NDCG10, MRR, RecallAt5/10) were wired into the structs and call sites in a prior turn but the scorers were never implemented and the report never printed them — so the runner package did not even build.

This PR:

  • Implements scoreNDCG, scoreRecallAtK, scoreMRR in a new scoring.go.
  • Extends the report with recall@1 / recall@3 / nDCG@10 / MRR alongside the existing recall@20.
  • Surfaces all rank-sensitive means in FormatReport.
  • Adds unit tests (scoring_test.go).

Why

bench/slice-1 previously computed only recall@20 — a coarse in-set gate that a reranker swap (OFFICE-464) cannot move. The reranker delta lives in rank-sensitive metrics. This layer is the measurement substrate the ranking work depends on.

Test plan

  • go build ./bench/slice-1/... — passes
  • go test ./bench/slice-1/runner/ — all 18 subtests pass
  • gofmt — clean

Part of OFFICE-459 (RAG gaps plan). Closes OFFICE-671.

🤖 Generated with Claude Code

Implement scoreNDCG/scoreRecallAtK/scoreMRR and surface recall@1/@3,
nDCG@10, MRR in FormatReport. Adds the retrieval observability layer
(OFFICE-671) so reranker deltas are visible in rank-sensitive metrics
that recall@20 cannot move. Includes unit tests for the scorers.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 00116688-b869-477a-9eb4-486cc1f089c7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch rag/office-671-retrieval-observability

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.

@FranDias FranDias left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Auto-approved so CI is the gate — review the checks before merging.

@FranDias FranDias left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Auto-approved so CI is the gate — review the checks before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@FranDias FranDias FranDias approved these changes
Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /