Quick Start
How It Works
Supported Vector Stores
| Store | Use Case |
|---|---|
| Pinecone | Production, large-scale |
| Weaviate | Hybrid search, self-hosted |
| Qdrant | High performance, self-hosted |
| Chroma | Development, local |
| Memory | Testing, ephemeral |
Configuration Options
Vector Store API Reference
TypeScript vector store configuration options
Common Patterns
Agent with Search Tool
Multi-Agent with Shared Knowledge
Setup Pinecone Index
Best Practices
Use memory store for development
Use memory store for development
createMemoryVectorStore() requires no external dependencies. Switch to Pinecone or Qdrant before going to production.Chunk large documents
Chunk large documents
Split large documents into 500–1000 token chunks before indexing. Smaller chunks retrieve more precisely.
Set top_k carefully
Set top_k carefully
A
top_k of 3–5 gives the agent focused context. Higher values can dilute relevance.Keep embeddings consistent
Keep embeddings consistent
Use the same embedding model for indexing and querying. Mixing models produces incorrect similarity scores.
Related
Knowledge Base
Higher-level RAG for agents
Embeddings
Create and manage embeddings

