Match business questions to code with native concept search - #344
Merged
Merged
Conversation
forhappy
marked this pull request as ready for review
October 1, 2026 08:22
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.
Business-language questions now use bounded native synonym recall and witnessed document links to find implementation code.
ask, non-exactsearch, and MCP discovery disclose how each approximate match was reached; exact lookup and structural evidence keep their existing contracts.An explicit
--semantic-search/semantic_searchoption enables local TF-IDF/truncated-SVD fallback. It uses only graph names and bounded prose, requires no model, credentials or network service, and returns typed corpus/deadline limits. Valid disposable FTS indexes are reused on reopen instead of being rebuilt after a read-only integrity check.The fixed 30-question Dify corpus reaches its expected module in the first three source paths for 26/30 questions (86.7%); 16/30 rank it first. A fresh AST-v15 graph reproduced the result. Four misses and all truncation flags are preserved in the checked-in qualification report. This is module retrieval evidence, not implementation equivalence or an independent human/competitor comparison.
Compatibility: additive
conceptMatchesand bounded resourcecontentfields require strict decoders to update. AST cache v15 and JSON index v2 refresh prose facts; existing store indexes need republishing. Historical realizations remain immutable. See COMPATIBILITY.md, MIGRATION.md and SECURITY.md.Validation:
-D warnings, 1,117 tests passed (2 existing ignored).