Export Chonkie’s Chunks into a PostgreSQL database with pgvector.
PgvectorHandshake
class provides seamless integration between Chonkie’s chunking system and PostgreSQL with pgvector. It uses the vecs client library from Supabase underneath to provide a higher-level API with automatic indexing, metadata filtering, and simplified connection management.
Store your Chonkie chunks in PostgreSQL with vector embeddings and perform semantic search without ever leaving the Chonkie SDK.
Writing Chunks
Store your chunked text in PostgreSQL with vector embeddings
Searching Chunks
Find similar chunks using vector similarity search
Creating Indexes
Optimize search performance with vector indexes