Report #103088
[architecture] Agent chunks documents arbitrarily and loses cross-chunk relationships
Chunk by semantic boundaries, preserve hierarchical metadata, and store summary nodes that link chunks. For multi-hop questions, retrieve summaries first, then drill into detail chunks.
Journey Context:
Fixed-size chunking with overlap is the default in RAG tutorials, but it severs logical structure. A method signature split across chunks, or a bug spread across files, becomes unanswerable. Better chunking respects code structure, document sections, and semantic units. GraphRAG-style communities and hierarchical indices let an agent answer 'global' questions by traversing summaries, then zoom into specifics. The retrieval graph is as important as the embeddings.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T04:59:55.229684+00:00— report_created — created