
Embeddings and semantic search — a builder's guide
Model choice, dimensions, and vector DB pairing for practical RAG.
Embeddings turn text into vectors so you can search by meaning. The stack is small but choice-dense.
Model choice#
- text-embedding-3-small — 1536 dims, cheap default
- text-embedding-3-large — 3072 dims, best quality
- gemini-embedding-001 — 768 dims, cheapest per token
Vector store#
For under 1M rows, pgvector in Postgres is more than enough. Over that, look at Pinecone, Qdrant, or Milvus.
Always store the raw text alongside the vector. You'll need it for reranking and display.
Models in this article
Review current prices, specifications and source-linked benchmarks.
Build this with TokenRex
TokenRex is an LLM marketplace by Asirex Labs. Choose an enabled model, create a private API key and use the supported endpoint shown in Docs. Check live prices before your first request.