Remove semantic search and DSR adaptive retrieval pipeline#25
Draft
Remove semantic search and DSR adaptive retrieval pipeline#25
Conversation
…val from search.ts - Remove semantic CLI command from ai.ts aggregator - Remove semantic handler from CLI registry - Remove semantic_search MCP tool definition, handler, and schema - Remove semantic_search from MCP server schema map - Remove DSR adaptive retrieval pipeline from core/search.ts - Update MCP smoke test to verify semantic_search is not registered - Remove semantic_search tool call from MCP smoke test - Remove semantic CLI command tests from e2e test - Remove runAdaptiveRetrieval test from retrieval test Co-authored-by: mars167 <29228178+mars167@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor query capabilities for accurate results
Remove semantic search and DSR adaptive retrieval pipeline
Feb 13, 2026
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.
The
semanticCLI command andsemantic_searchMCP tool use hash-based SQ8 vector similarity, which cannot produce meaningful semantic results without a real embedding model. The DSR (Dual Search & Reranking) adaptive retrieval pipeline compounds this by fusing unreliable vector scores with graph/symbol results. This makes basic queries likegit-ai ai queryandgit-ai ai graph findunreliable.Removes these inaccurate search paths, keeping only deterministic index-based search (symbol matching via LanceDB, AST graph queries via CozoDB).
CLI
semanticcommand fromsrc/commands/ai.tssemantichandler registration fromsrc/cli/registry.tsMCP Server
semantic_searchtool definition, handler, schema, and server registration acrosssrc/mcp/{tools,handlers,schemas,server}.tsCore
classifyQuery,expandQuery,fuseResults,rerank,computeWeights) fromsrc/core/search.tsTests
mcp.smoke.test.jsto assertsemantic_searchis not registerede2e.test.jsrunAdaptiveRetrievaltest fromretrieval.test.tsWhat stays
Symbol search, graph queries (find/children/refs/callers/callees/chain), file search, repo-map, and all indexing/pack/hooks/serve commands remain unchanged. The underlying
src/core/retrieval/module source files are retained but no longer surfaced to users.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.