Rank the Cmd+K omnibar name-first. An exact filename match now leads…#229
Merged
Conversation
…t decoupling (PRD-7065 Phase 2) (#2013) Replace the additive search score with a tier-dominant function so an exact filename match leads even when same-named siblings have stronger body scores. Add a `ranking` option (navigation vs relevance) decoupled from `intent`, so the omnibar searches content (intent full_text, with fuzzy tolerance) but ranks name-first and bounds folders/files, while the MCP search tool stays relevance-ranked and uncapped. Raise the omnibar fetch from 30 to 50 for exact-name headroom. Lock the file-row path subtitle with a DOM test. The omnibar routes through intent full_text, so this decoupling is what makes both Phase 2 (D2 tier-dominant) and Phase 1 (D6 per-kind cap) actually reach what the user sees. GitOrigin-RevId: 2f76c574f27268a744efb7a2541f9c5c022e0391
Contributor
There was a problem hiding this comment.
Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/27991162190). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rank the Cmd+K omnibar name-first. An exact filename match now leads the results even when many files share that basename and have stronger body-text scores — the file you typed is no longer buried below same-named siblings or pushed past the fetch limit. The omnibar still searches content, but a strong content match only reorders within a name-match tier rather than outranking the name itself; the deliberate "by meaning" search keeps content-relevance ranking. A query that matches many folders or name-only files (
evidence,index) no longer fills the whole list with one kind — folders and files are bounded so content pages fill the rest.