Give the model full retrieved chunks instead of 400-character snippets #83
Reference in New Issue
Block a user
Delete Branch "perf/full-search-chunks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context compaction replaces a tool's text with its artifact, and the
search.documentsartifact only carries 400-character UI snippets. So the full ~1,000-character chunk the retriever found never reached the model, and answers were built on fragments.simba_searchandobsidian_search_notesattach the full chunk text asmodel_context, the mechanism focused note reads already use. Compaction prefers it, shortenscontentunder budget pressure, and keeps source ids. When no row fits, the ids survive inresults_compaction.omitted_source_refs.data.Source: {raw metadata dict}line (about a fifth of search output tokens) becomesTitle | Date | Source. TheCitation: /sources/<id>line is unchanged.Review: Sonnet worker plus two review rounds. Round 1 fixed a failing tight-budget test and an import that made
ragdepend onconversationat module load. Round 2 checked the zero-row case; I added a test for it.547 unit tests, Ruff.
🤖 Generated with Claude Code