1 minute read · ai
Semantic search needs vector databases. Here is how to choose.
| Scale | Choice |
|---|---|
| < 10M vectors | pgvector |
| 10M-100M | Weaviate |
| > 100M or serverless | Pinecone |
pgvector Query
SELECT content, 1-(embedding <=> $1) AS score FROM docs ORDER BY score DESC LIMIT 5;Conclusion
Start with pgvector. Migrate only when you genuinely hit limits.