When to Use Submodular Context Packaging Over Top-K RAG
Question
Why does naive top- retrieval degrade multi-aspect agent reasoning, and when does VeriWiki’s submodular context packager provide the largest gains?
Answer
- EXTRACTED: In interlinked technical wikis, multiple related notes (
concept,source,analysis) frequently share near-identical introductory definitions. Standard top- lexical or cosine ranking selects all overlapping summaries, exhaustingmax_charswhile starving complementary sub-topics and multi-hop counterpoints. - EXTRACTED:
submodular_select_excerpts(src/veriwiki/packager.py) evaluates heading-scoped spans via marginal query-term IDF coverage minus pairwise token-set Jaccard similarity, normalized by character cost, while reserving seed-balanced slots for Hub-Penalized Typed-PPR graph neighbors. - INFERRED: Gains are largest under tight agent context budgets (2,000–8,000 characters) and multi-facet synthesis queries spanning 3+ concepts, where submodular selection substantially increases aspect coverage and lowers inter-citation redundancy.
See submodular-context-packaging and agentic-knowledge-systems-2026.