VoltAgent with Chroma Vector Database Integration
This example demonstrates how to integrate VoltAgent with Chroma vector database for advanced knowledge management and retrieval.
This example demonstrates how to integrate VoltAgent with Chroma vector database for advanced knowledge management and retrieval.
This example demonstrates VoltAgent integration with Chroma vector database for RAG (Retrieval-Augmented Generation) capabilities. It includes two different agent configurations showcasing automatic and tool-based retrieval patterns.
Option 1: Local Development
Start Chroma server:
npm run chroma runRun the example:
npm create voltagent-app@latest -- --example with-chroma
cd with-chroma
cp .env.example .env # Add your OPENAI_API_KEY
npm run devOption 2: Chroma Cloud
No server setup needed! Just configure your environment:
npm create voltagent-app@latest -- --example with-chroma
cd with-chroma
cp .env.example .env # Add OPENAI_API_KEY, CHROMA_API_KEY, CHROMA_TENANT, CHROMA_DATABASE
npm run dev- Two Agent Types: Automatic retrieval vs. tool-based retrieval
- Pre-loaded Knowledge Base: Sample documents ready to query
- Vector Search: Semantic search capabilities with Chroma
- Source Tracking: References to used documents in responses
For complete setup instructions, usage examples, customization options, and troubleshooting, see the VoltAgent Chroma Integration Guide.