AgentOven

Vector Stores

Fast similarity search with pluggable vector store backends.


Vector stores provide fast similarity search over document embeddings. AgentOven ships with two OSS vector store drivers and a pluggable registry for enterprise backends.


OSS Vector Store Drivers
Embedded (In-Memory)

Zero-dependency, brute-force cosine similarity search. Perfect for local development and small datasets. Supports up to 50,000 documents. Data is not persisted across restarts.

pgvector (PostgreSQL)

Full-featured vector search using the pgvector extension for PostgreSQL. Provides HNSW and IVFFlat indexing for production-scale similarity search. Tables are auto-created on startup.

Configuration

The embedded vector store is always available. To enable pgvector, set the connection URL:

terminal

# Embedded store is always available (default)

# Enable pgvector (requires PostgreSQL + pgvector extension)
$ export AGENTOVEN_PGVECTOR_URL="postgres://user:pass@localhost:5432/agentoven"

# AgentOven auto-creates the vector tables on startup
VectorStoreDriver Interface

All vector stores implement a common interface, making it easy to swap backends:

go

type VectorStoreDriver interface {
    Kind() string
    Upsert(ctx context.Context, kitchen string, docs []models.VectorDoc) error
    Search(ctx context.Context, kitchen string, vector []float64, topK int, filter map[string]string) ([]models.SearchResult, error)
    Delete(ctx context.Context, kitchen string, ids []string) error
    Count(ctx context.Context, kitchen string) (int, error)
    HealthCheck(ctx context.Context) error
}
API Endpoints
MethodPathDescription
GET/api/v1/vectorstore/driversList registered vector store drivers
POST/api/v1/vectorstore/upsertInsert or update vector documents
POST/api/v1/vectorstore/searchSimilarity search
DELETE/api/v1/vectorstore/deleteDelete documents by ID
GET/api/v1/vectorstore/healthHealth check all vector stores
Enterprise Extensions

AgentOven Pro adds enterprise-grade vector store backends: