Skip to content

Improve Global Wiki acronym resolution and digest-only search - #6

Merged
Kortexio merged 2 commits into
mainfrom
feat/wiki-acronym-glossary-automation
Aug 17, 2026
Merged

Improve Global Wiki acronym resolution and digest-only search#6
Kortexio merged 2 commits into
mainfrom
feat/wiki-acronym-glossary-automation

Conversation

@Kortexio

Copy link
Copy Markdown
Owner

Summary

  • Auto glossary from digests: After RebuildDigestsAsync, acronym pairs harvested from digests are aggregated into the reserved wiki:glossary document (## Auto), while ## Manual overrides is preserved on conflict.
  • Bidirectional alias lexicon: GlobalWikiAliasLexicon expands queries (e.g. RJ ↔ Rio de Janeiro, VVE ↔ Virtual Vehicle Enablement) in both File and Postgres stores, with synonym-group scoring in GlobalWikiScoring.
  • Digest-only search improvements: Dedicated digest_search_vector / digest-index.json (no body content), Postgres FTS strict → OR fallback, optional Questions: 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)
  • Apply migration 20260817120000_AddGlobalWikiDigestSearchVector on Postgres deployments
  • Run wiki digests/rebuild and verify wiki:glossary ## Auto section updates
  • Confirm wiki_search with digestOnly: true matches digest/questions but not body-only tokens
  • Smoke-test acronym queries (e.g. VVE, RJ) resolve via glossary + digest aliases

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.
@Kortexio
Kortexio merged commit 2550539 into main Aug 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants