report hybrid leg failure when survivor is empty - #231
Conversation
|
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)
📝 WalkthroughWalkthroughHybrid query handling now reports which leg failed regardless of survivor hits, marks empty-survivor failures as degraded with leg-specific reasons, and documents and tests the updated signaling and rerank precedence. ChangesHybrid degradation signaling
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #231 +/- ##
=======================================
Coverage ? 85.99%
=======================================
Files ? 47
Lines ? 2514
Branches ? 849
=======================================
Hits ? 2162
Misses ? 351
Partials ? 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai full review |
✅ Action performedFull review finished. Your plan includes PR reviews subject to rate limits. More reviews will be available in 55 minutes. |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
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 `@CHANGELOG.md`:
- Line 73: Move the “Hybrid query degradation” changelog entry from the
published 0.4.0 section into the Unreleased section, preserving its wording and
issue reference.
🪄 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: 03137b1f-b74f-4101-9082-6fe00adc0c65
📒 Files selected for processing (8)
CHANGELOG.mddocs/TOOLS.mdsrc/constants.tssrc/core/pinecone-client.test.tssrc/core/pinecone-client.tssrc/core/rerank-trace.test.tssrc/core/server/tools/guided-query-tool.context.test.tssrc/types.ts
|
@coderabbitai continue to review |
|
✅ Action performedFull review finished. Your plan includes PR reviews subject to rate limits. More reviews will be available in 32 minutes. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
hybrid_leg_failedwhenever exactly one hybrid search leg rejects, even if the survivor returns[]degraded: trueanddegradation_reason(dense_leg_failed/sparse_leg_failed)docs/TOOLS.mdpinecone-client.test.ts(dense/sparse empty-survivor cases, legitimately-empty control, rerank-skipped priority)Why
RC blocker for
0.4.xGA. Previously, one leg failing with an empty survivor returned{ degraded: false, hybrid_leg_failed: null }, which was indistinguishable from a legitimately empty namespace.Test plan
npm test -- src/core/pinecone-client.test.tsnpm run ciRelated issues
Summary by CodeRabbit
Summary by CodeRabbit
Bug Fixes
experimental.hybrid_leg_failedandexperimental.degradation_reasonnow consistently reflectdense_leg_failedvssparse_leg_failed.Documentation
experimental.degraded,experimental.degradation_reason, andexperimental.hybrid_leg_failedare set for partial-hybrid and empty-result edge cases.Tests