Documentation Index
Fetch the complete documentation index at: https://docs.upsonic.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Agentic splitter uses AI agents to extract atomic propositions, group them into coherent topics, and create semantically meaningful chunks. Features comprehensive caching, quality validation, error handling with fallbacks, and rich metadata enrichment. Splitter Class:AgenticChunker
Config Class: AgenticChunkingConfig
Dependencies
Requires a pre-configured Agent instance for cognitive processing.Examples
Parameters
| Parameter | Type | Description | Default | Source |
|---|---|---|---|---|
chunk_size | int | Target size of each chunk | 1024 | Base |
chunk_overlap | int | Overlapping units between chunks | 200 | Base |
min_chunk_size | int | None | Minimum size for a chunk | None | Base |
length_function | Callable[[str], int] | Function to measure text length | len | Base |
strip_whitespace | bool | Strip leading/trailing whitespace | False | Base |
max_agent_retries | int | Maximum retries for agent calls | 3 | Specific |
min_proposition_length | int | Minimum length for valid propositions | 20 | Specific |
max_propositions_per_chunk | int | Maximum propositions in a chunk | 15 | Specific |
min_propositions_per_chunk | int | Minimum propositions to form a chunk | 3 | Specific |
enable_proposition_caching | bool | Cache proposition extraction results | True | Specific |
enable_topic_caching | bool | Cache topic assignment results | True | Specific |
enable_refinement_caching | bool | Cache topic refinement results | True | Specific |
enable_proposition_validation | bool | Validate proposition quality | True | Specific |
enable_topic_optimization | bool | Optimize topic assignments | True | Specific |
enable_coherence_scoring | bool | Score chunk coherence | True | Specific |
fallback_to_recursive | bool | Fallback to recursive chunking on failure | True | Specific |
include_proposition_metadata | bool | Include proposition-level metadata | True | Specific |
include_topic_scores | bool | Include topic coherence scores | True | Specific |
include_agent_metadata | bool | Include agent processing metadata | True | Specific |

