fix: preserve retrieval scores on flat rerank#798
Conversation
|
@mturac is attempting to deploy a commit to the rohitg00's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughReranker now preserves the retrieval ChangesReranker Result Preservation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@test/reranker.test.ts`:
- Around line 85-87: The test currently calls isRerankerAvailable() without
setting up the singleton pipeline, so make it self-contained by initializing or
mocking the reranker pipeline before the assertion: update the test to invoke
the same pipeline setup function used by other tests (the singleton pipeline
loader) or explicitly mock the module state, then call isRerankerAvailable() and
assert true; ensure teardown/reset (jest.resetModules or equivalent) so the test
does not rely on ordering.
🪄 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: 7296a76f-97f6-4e59-af27-ead6c0cfe8a9
📒 Files selected for processing (3)
src/state/reranker.tssrc/types.tstest/reranker.test.ts
Summary
Tests
Closes #724
Summary by CodeRabbit
New Features
Bug Fixes
Tests