AI Hints
Home›RAG Tutorial›Choices, Interviews and Next Steps
RAG · Lesson 118 of 120

Choosing a Vector Database

The options.

⏱ 2 min read▶ Video at 1:54:29🎓 Free
Watch this lesson in the RAG courseWatch on YouTube ↗Full RAG course

We used FAISS and plain arrays. In production, you'll choose a vector database. There are many, and they all store vectors and search them. The differences are in hosting, filters, and scale.

Choosing a Vector Database
From the video: Choosing a Vector Database
  • Many options
  • Same core job
  • Different strengths

The main options

FAISS is a fast library, not a server. Chroma is simple to start with locally. pgvector adds vectors to Postgres, which you may already run. Qdrant and Weaviate are full vector databases. Pinecone is fully managed in the cloud.

OptionTypeGood for
FAISSlibraryfast, local
Chromalocal DBgetting started
pgvectorPostgres extensionalready on Postgres
Qdrant, Weaviatevector DBfilters, scale
Pineconemanaged cloudno servers

How to choose

If you already use Postgres, start with pgvector. For a quick prototype, use Chroma or FAISS. For heavy filtering and large scale, look at Qdrant or Weaviate. And if you don't want to run servers, use a managed service.

keyvalue
On Postgrespgvector
PrototypeChroma, FAISS
Scale, filtersQdrant, Weaviate
No serversmanaged

Summary

All vector databases store and search vectors. Choose by what you already run, your scale, and your filters. Next, interview questions.

Key takeaways
  • Library or server
  • Filters
  • Scale
Next up: RAG Interview Questions — ten to know