Installation
Embeddings require thejina library. See the Installation Guide for more information.
JinaEmbeddings is a utility for embedding chunks.
jina library. See the Installation Guide for more information.
pip install "chonkie[jina]"
from chonkie import JinaEmbeddings
# Initialize the Jina embeddings
embeddings = JinaEmbeddings()
# Initialize the semantic chunker
chunker = SemanticChunker(embeddings)
# Chunk the text
text = ... # Your text string
# CHONK!
chunks = chunker(text)
Was this page helpful?