from_recipe, you can pass in the recipe name and language to use the recipe.
Installation
To make use of Hubbie, you’ll need to install thehub optional install.
Hubbie is a utility for accessing Chonkie’s saved recipes.
from_recipe, you can pass in the recipe name and language to use the recipe.
hub optional install.
pip install "chonkie[hub]"
from chonkie import RecursiveChunker
# Initialize the recursive chunker with the recipe name and language
chunker = RecursiveChunker.from_recipe("markdown", lang="en")
# Chunk the text
text = ... # Your text string
# CHONK!
chunks = chunker(text)
Was this page helpful?