Agentic chunking powered by generative models via the Genie interface
SlumberChunker
– Chonkie’s first agentic chunker! This isn’t your average chunker; it uses the reasoning power of large generative models (LLMs) to understand your text deeply and create truly S-tier chunks.
SlumberChunker
via the API, check out the API reference documentation.
SlumberChunker
is Genie, Chonkie’s new interface for integrating generative models and APIs (like Gemini, OpenAI, Anthropic, etc.). Genie allows SlumberChunker
to intelligently analyze text structure, identify optimal split points, and even summarize or rephrase content for the best possible chunk quality.
[genie]
optional install. This includes the necessary libraries to connect to various generative model APIs.[genie]
optional install:
GeminiGenie
). If None
, tries to load a default Genie configuration, which is GeminiGenie("gemini-2.5-pro-preview-03-25")
True
, prints detailed information about Genie’s decision-making process during chunking. Useful for debugging!Chunk
objects, potentially with extra metadata attached depending on the configuration and Genie’s output.