Repository navigation
docs(search): align ranking reference with contracts - #1566
Conversation
Problem: the search reference overstated several #873 details after the ranked-hit implementation evolved. It described action-lane hits as exposing BM25 evidence, used stale match_surface names, and under-described cursor contents.\n\nWhat changed: aligned docs/search.md with the current public SearchEnvelope contract: action-only hits currently expose rank/evidence without numeric BM25 scores, match_surface values use the public code tokens, BM25 is lower-is-better, hybrid includes action lane fusion, sort=null preserves natural rank order, and cursors encode rank/score/conversation/lane.\n\nVerification: devtools verify-doc-commands; devtools render-pages; devtools render-all --check; devtools verify --json (0 selected tests, all static/generated checks passed).\n\nRef #873
|
Warning Review limit reached
Your plan includes 1 review of capacity. Refill in 41 minutes and 53 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
Summary
This makes the search reference match the current #873 contracts instead of preserving aspirational/stale wording.
Problem
After the ranked-hit and cursor work landed,
docs/search.mdstill overstated a few details: action-lane public hits were described as carrying BM25 evidence,match_surfaceexamples used stale names, cursor contents were under-described, and the ranking section omitted the action lane in hybrid fusion.Solution
Updated
docs/search.mdto state the current publicSearchEnvelopebehavior conservatively: action-only hits preserve rank/evidence without a numeric action score,match_surfacevalues use the public code tokens, BM25 is lower-is-better, hybrid fuses dialogue/action/semantic lanes,sort=nullpreserves natural rank order, and cursors encode rank/score/conversation/lane.Verification
devtools verify-doc-commands— 77 doc files scanned, no stale commands.devtools render-pages— rebuilt.cache/site.devtools render-all --check— passed after rendering pages.devtools verify --json— exit 0; static/generated checks passed; pytest-testmon selected 0 tests.devtools verify --quick— exit 0; total 36.21s.Ref #873