Improve Global Wiki acronym resolution and digest-only search - #6
Merged
Conversation
Digest rebuild now harvests acronym pairs into wiki:glossary, preserves manual overrides, and resolves bidirectional alias lookup in wiki_search without embeddings.
… matching. Add digest_search_vector, OR tsquery fallback, Questions digest line, and remove full-corpus scan fallbacks so lazy retrieval stays fast and body-only terms do not leak in digest mode.
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.
Summary
RebuildDigestsAsync, acronym pairs harvested from digests are aggregated into the reservedwiki:glossarydocument (## Auto), while## Manual overridesis preserved on conflict.GlobalWikiAliasLexiconexpands queries (e.g. RJ ↔ Rio de Janeiro, VVE ↔ Virtual Vehicle Enablement) in both File and Postgres stores, with synonym-group scoring inGlobalWikiScoring.digest_search_vector/digest-index.json(no body content), Postgres FTS strict → OR fallback, optionalQuestions:line in digests with intent overlap scoring, and removal of full-corpus scan fallbacks so body-only terms do not leak in digest mode.Test plan
dotnet test --filter FullyQualifiedName~GlobalWiki(25 tests)20260817120000_AddGlobalWikiDigestSearchVectoron Postgres deploymentswiki digests/rebuildand verifywiki:glossary## Autosection updateswiki_searchwithdigestOnly: truematches digest/questions but not body-only tokensVVE,RJ) resolve via glossary + digest aliases