- RAG prototype in hours, not days
- One less service to operate
- Cost inline on every operation (same tokenization as
/v1/embeddings) - Isolated per org via Supabase RLS
- More than ~1M chunks — HNSW index starts eating Postgres RAM
- Complex metadata filtering (hybrid search, reranking) — use a dedicated DB
- You already have an embeddings pipeline — no gain
Create collection
id, used in subsequent calls.
Upload text
- Splits text into ~512-token chunks with 64 overlap
- Embeds all chunks (batched to provider)
- Inserts into pgvector with your
metadata - Bills the embedding
input_tokens
Query top-k
similarity ranges from 1 (identical) to -1 (opposite). In practice > 0.7 is usable.
Other endpoints
GET /v1/vector-stores— lists all stores for your orgGET /v1/vector-stores/:id— details + filesDELETE /v1/vector-stores/:id— drops store + cascades to files and chunks
Costs
- Upload and query embeddings: tokens × store model price
- Storage: free in v1 (subject to change if it starts costing us)
- Query: only the query embedding (not the stored corpus)
Roadmap
- PDF/DOCX upload with server-side parsing
- Hybrid search (BM25 + vectors)
- Metadata filtering with
filter: { key: value } - LLM-based semantic chunking