Skip to main content
This example demonstrates how multiple specialized agents coordinate to provide comprehensive RAG responses using distributed PostgreSQL vector databases with pgvector for scalable, production-ready retrieval. The team includes vector retrieval, hybrid search, data validation, and response composition specialists.

Code

cookbook/02_examples/teams/distributed_rag/01_distributed_rag_pgvector.py

Usage

1

Set up your virtual environment

2

Set up PostgreSQL with pgvector

3

Install required libraries

4

Set environment variables

5

Run the agent