Skip to main content
Vector stores give agents the ability to store and retrieve knowledge from large document collections — enabling RAG (Retrieval Augmented Generation) where agents answer questions grounded in your data.

Quick Start

1

Simple Usage

2

With Configuration

3

In-Memory Store (Testing)


How It Works


Supported Vector Stores


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

createMemoryVectorStore() requires no external dependencies. Switch to Pinecone or Qdrant before going to production.
Split large documents into 500–1000 token chunks before indexing. Smaller chunks retrieve more precisely.
A top_k of 3–5 gives the agent focused context. Higher values can dilute relevance.
Use the same embedding model for indexing and querying. Mixing models produces incorrect similarity scores.

Knowledge Base

Higher-level RAG for agents

Embeddings

Create and manage embeddings