Prompt
What should I use for embeddings if I already run PostgreSQL?
Latest observation
Nov 18, 2026
OpenAI APIWeb search: off
If you already run PostgreSQL, the simplest and usually best default is:
Use PostgreSQL + pgvector for embeddings.
Why this is a good choice
- Keeps everything in one system: data, metadata, and vectors in the same database
- Easier ops: no separate vector database to maintain
- Good enough for many use cases: search, recommendations, semantic lookup, RAG
- Works well with SQL: you can filter by metadata and then do vector similarity in one query
When pgvector is a strong fit
- You have moderate scale rather than massive vector workloads
- You want simplicity over specialized infrastructure
- You need tight integration with relational data
- You already use PostgreSQL heavily
When you might want a separate vector DB instead
Consider something like Pinecone, Weaviate, Milvus, Qdrant, or OpenSearch vector search if:
- You need very high throughput/latency-sensitive vector search at large scale
- You have tens of millions+ of vectors and demanding retrieval performance
- You want advanced vector-native features or managed scaling
- You expect embeddings to be the core workload, not just one part of the app
Practical recommendation
If you’re unsure, start with:
- PostgreSQL
pgvector- A good embedding model from OpenAI, Cohere, Voyage, or an open-source model
That gives you a clean baseline and avoids premature infrastructure complexity.
Rule of thumb
- < a few million vectors, relational data matters →
pgvector - Huge scale or vector search is the main product → dedicated vector DB
If you want, I can also recommend:
- a specific embedding model
- an optimal Postgres schema
- or how to set up pgvector indexes (HNSW vs IVFFlat)