Repository navigation
fix(search): rank English term boundaries and guide direct API searches - #154
Open
humandebri wants to merge 1 commit into
Open
humandebri wants to merge 1 commit into
humandebri wants to merge 1 commit into
Conversation
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.
Purpose
SSEreceives strong title/path scores inside unrelated words such asprecompressedandWebAssembly, displacing relevant body evidence. Direct ICP callers also need guidance for turning English questions into useful existing API searches.Changes
get_api_doc: up to three focused searches, scoped candidates, deduplication and body verification. MCP search code and tool descriptors are unchanged.Verification
ssefinds the timeout gold at rank 4, previously outside the top 20. The six documented keyword examples find gold at ranks 1 / 1 / 3 / 6 / 2 / 1; original labels are unchanged.Impact
Ranking affects existing MCP, CLI, browser and direct ICP callers. Relevant bodies with incidental filenames can also receive weaker scores; frozen-corpus hit@20 is preserved, while the original general-SSE question changes from rank 1 to 3. Natural-language parsing and Japanese short-word handling are unchanged.
No public API/Candid/authentication/authorization/billing/schema changes, Worker changes or new operational document. No deployment performed. Live ICP/CLI comparison requires a separate canister upgrade; no Worker deployment is needed.