Skip to main content

Setup

Run PgVector with Docker:

Example

agent_with_knowledge.py

Async Support ⚡

PgVector also supports asynchronous operations, enabling concurrency and leading to better performance.

async_pgvector.py
Use ainsert() and aprint_response() methods with asyncio.run() for non-blocking operations in high-throughput applications.

PgVector Params