Hubbie is a utility for accessing Chonkie’s saved recipes.
Hubbie is a utility for accessing Chonkie’s saved recipes. Recipes are pre-defined chunking rules for different languages and document types. When initializing a chunker with from_recipe, you can pass in the recipe name and language to use the recipe.
from chonkie import RecursiveChunker# Initialize the recursive chunker with the recipe name and languagechunker = RecursiveChunker.from_recipe("markdown", lang="en")# Chunk the texttext = ... # Your text string# CHONK!chunks = chunker(text)