You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement agentic chunking that uses an LLM to decide optimal chunk boundaries based on content understanding, producing higher-quality chunks than fixed-size or even semantic splitting.
Current State
The IngestionPipeline uses fixed-size chunking. Issue #215 adds semantic chunking. This goes a step further with LLM-driven boundaries.
Technical Design
Send document to LLM with instruction: "Split this into coherent, self-contained chunks"
LLM returns structured output with chunk boundaries and topic labels
Each chunk includes: content, topic label, key entities, summary
Expensive — use as "premium" chunking mode for high-value documents
Acceptance Criteria
Given a complex document, when agentic chunking runs, then chunks are coherent and self-contained
Given each chunk, when labeled, then it includes a topic and key entities
Given the mode is configurable, when selected, then agentic chunking runs instead of fixed/semantic
Summary
Implement agentic chunking that uses an LLM to decide optimal chunk boundaries based on content understanding, producing higher-quality chunks than fixed-size or even semantic splitting.
Current State
The
IngestionPipelineuses fixed-size chunking. Issue #215 adds semantic chunking. This goes a step further with LLM-driven boundaries.Technical Design
Acceptance Criteria
Implementation Guide
AgenticChunkerwith LLM-based boundary detection using structured output (📋 Structured JSON output mode for LLM responses #214)ChunkingStrategy.AGENTICenum option inIngestionPipelinemvn clean compile -pl spector-ingestionReferences
IngestionPipeline.java