Skip to content

fix(reranking): trim sequential scorer input and use the user role - #897

Open
yushuosun wants to merge 1 commit into
Cinnamon:mainfrom
yushuosun:fix/keep-sequential-reranker-judge-input-consistent
Open

yushuosun wants to merge 1 commit into
Cinnamon:mainfrom
yushuosun:fix/keep-sequential-reranker-judge-input-consistent

Conversation

@yushuosun

Copy link
Copy Markdown

Description

The sequential TruLens scorer sent the full document as a second system message. Apply the same trimming and user-message role as the concurrent branch so that the two modes send the same judge input.

Fixes #891.

Verified the original discrepancy using a recording model and a bounded context trimmer. Both modes sent identical messages and applied the same relevance score after the change.

Type of change

  • Bug fix.

Checklist

  • Self-reviewed the change.
  • Referenced the original report.
  • Verified both scheduling modes with a local regression fixture.

Copilot AI balanced review requested due to automatic review settings November 28, 2026 15:52

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] concurrent=False changes LLMTrulensScoring message roles and bypasses context trimming

2 participants