Expand description
Document chunking for multi-turn LLM conversations.
Splits large documents into token-budgeted chunks that respect section boundaries and never split tables or lists.
Structs§
- Chunk
Config - Configuration for document chunking.
- Document
Chunk - A chunk of a document with metadata for multi-turn use.
Functions§
- chunk_
document - Split a document into token-budgeted chunks.
- format_
chunk_ text - Format a single chunk as readable text with header.
- format_
chunks_ json - Format chunks as a JSON array.