Skip to main content
Convex includes native vector search — no Pinecone or Qdrant required for most apps.

Setup

1. Add a vector index to the schema

convex/schema.ts

2. Embed and store

convex/documents.ts
convex/documents.ts

Embedding providers

Common choices: Pick one and stick with it — mixing dimensions across the same index doesn’t work.

Tips

Re-embed when content changes. If you edit a document’s body, queue a re-embed (typically via a scheduled action or directly in the mutation that updated the body).
Use filter fields aggressively. Vector search returns the most-similar items; filter to the right scope (per-user, per-team) before vector matching.

Schema

Vector index syntax.

OpenAI

Embedding provider.

AI chatbot recipe

RAG pattern using vector search.
Last modified on April 18, 2026