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/examples/teams/distributed_rag/01_distributed_rag_pgvector.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Set up PostgreSQL with pgvector

3

Install required libraries

4

Set environment variables

5

Run the agent