feat(indexer): hierarchical chunking for large sections

- Section-split first for structured notes
- Large sections (>max_section_chars) broken via sliding-window
- Small sections stay intact with heading preserved
- Adds max_section_chars config (default 4000)
- 2 new TDD tests for hierarchical chunking
This commit is contained in:
2026-04-11 23:58:05 -04:00
parent a744c0c566
commit 34f3ce97f7
5 changed files with 88 additions and 21 deletions

View File

@@ -65,6 +65,11 @@
"type": "integer",
"minimum": 0
},
"max_section_chars": {
"type": "integer",
"minimum": 1,
"description": "Max chars per section before splitting into sub-chunks. Default 4000."
},
"file_patterns": {
"type": "array",
"items": {