Skip to main content
JinaEmbeddings is a utility class to use JinaAI’s API for Chonkie’s semantic chunking.

Installation

Embeddings require the jina library. See the Installation Guide for more information.
pip install "chonkie[jina]"

Usage

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)
I