GeekHub Learn
Module
Lesson 8.44 of 5 in this module2 min read Module 8: Vector Embeddings Simplified

Vector databases: when to use what

The first vector DB you pick will probably be wrong. The second will be okay. This lesson saves you from picking the wrong third.

Vector DBs are like databases for "find similar" instead of "find exact". Different ones suit different scales and stacks.

Top 2026 vector DB choices:

  • ChromaDB: simplest local dev. Great for prototypes and modest production loads.
  • FAISS: Facebook's in-memory library. Fast, library-only (you wrap it).
  • pgvector: PostgreSQL extension. Best if you already use Postgres (Supabase).
  • Qdrant: production-grade open source. Self-host or cloud.
  • Weaviate: production-grade open source. Native hybrid search.
  • Pinecone: hosted, easy, paid.
  • Milvus: massive-scale open source.

Pick by deployment style (local vs cloud), scale (1K vs 1B vectors), and stack (already on Postgres? use pgvector).

Local Chroma quickstart:

import chromadb
client = chromadb.Client()
col = client.create_collection("docs")
col.add(ids=["1"], documents=["GeekHub is for developers"], metadatas=[{"src": "site"}])
res = col.query(query_texts=["who is GeekHub for?"], n_results=1)
print(res)

That is RAG retrieval in 5 lines.

Visualize it

A "decision tree" diagram: start at the top with "prototype or production?" then branch to "local or cloud?" then to "existing stack?", landing at a recommended vector DB.

Try it now

Install ChromaDB. Run the snippet. Confirm retrieval works.

Hands-on lab

Build a 50-document Chroma index of your favorite blog posts. Query it. Note retrieval quality.

Try it now

Why is pgvector great for teams already on Postgres or Supabase?

Common mistakes

  • Choosing the hottest DB without considering your team's stack
  • Over-engineering with Pinecone for a prototype
  • Skipping metadata fields (you cannot filter retrieval later)

Debugging tip

If retrieval is slow at scale, you may be using exact search. Switch to an ANN index (HNSW).

Challenge

Build the same 50-document index in two DBs (Chroma and pgvector). Compare ergonomics, speed, and cost.

Where this shows up

  • All RAG apps
  • Semantic search
  • Recommendation systems
  • Deduplication services

From the field

In 2026 the "best vector DB" depends entirely on your stack. There is no global winner. Engineers who can switch DBs in a week stay valuable.

Recap

Five solid options. Match to your stack, scale, and deployment style. Most beginners should start with ChromaDB or pgvector.


Quick recall

3 prompts · think before you flip

Prompt 1 of 3

Name 5 vector DB options.

Quiz time

1 question · tap an answer to check it

  1. 1. For a Supabase-based app, the natural vector DB choice is

Finished lesson 8.4?

Mark complete to update your module progress and unlock the streak.

Loading