Installation
Install the required packages:Setup
Set up PostgreSQL with pgvector extension, then create a PgVector instance:Usage
PgVector supports both sync and async operations:Configuration Options
- collection - Name of the collection/table
- embedder - Embedder instance for generating embeddings
- db_url - PostgreSQL connection string
For more details, see the pgvector documentation.