Skip to content
agentscamp

Best Vector Database in 2026: pgvector vs Pinecone vs Qdrant vs Weaviate vs Milvus vs Chroma vs LanceDB

A decision guide to vector databases — embedded, server, or managed; whether you already run Postgres; and which fits your scale, filtering, and RAG needs.

By Imtiaz RayhanUpdated 7 min read

On this page
  1. Start with three questions, not a feature matrix
  2. The contenders
  3. Already on Postgres → pgvector
  4. Zero ops, fully managed → Pinecone
  5. Open-source servers you control → Qdrant, Weaviate, Milvus
  6. Embedded, no server → Chroma, LanceDB
  7. The seven at a glance
  8. A decision shortcut
  9. Beyond the store: memory and tuning
  10. Continue exploring

There's no single best vector database — choose by where you run (embedded, self-hosted server, or fully managed), whether you already run Postgres, and your scale. pgvector wins when you already have Postgres; Pinecone for zero-ops managed; Qdrant/Weaviate/Milvus for open-source servers at scale; Chroma/LanceDB for embedded prototyping.

Key takeaways

  • Pick along three axes: deployment (embedded vs. server vs. managed), scale (millions vs. billions of vectors), and whether your data already lives in Postgres.
  • Already on Postgres? Start with pgvector — vectors sit next to your relational data with full SQL and transactions, no new system to operate.
  • Want zero ops? Pinecone is fully managed and serverless. Want open-source servers you control? Qdrant, Weaviate, and Milvus scale from one container to a cluster.
  • Prototyping or embedding in-process? Chroma (Python-first DX) and LanceDB (on-disk, multimodal, object-storage scale) need no server.
  • Almost all of them now do hybrid (dense + sparse) search and metadata filtering — the real differentiators are ops model, scale ceiling, and cost, not the feature checklist.

Once you've chosen an embedding model and chunked your corpus, the vectors have to live somewhere that can find the nearest matches to a query — fast, with filtering, at your scale. That somewhere is a vector database. The market is crowded, but the choice is not actually about who has the longest feature list. By 2026 they all do approximate nearest-neighbour search, hybrid search, and metadata filtering. The decision is about where you run it, at what scale, and what you already operate.

This guide gives you the axes that matter and an honest read on the main options.

Start with three questions, not a feature matrix

  1. Where does it run? Embedded (in your app process, local files or object storage), a self-hosted server (you operate it), or fully managed (someone else operates it). This single choice eliminates most of the field.
  2. What's your scale? Thousands to a few million vectors is a different problem from hundreds of millions to billions. Most apps live in the first bucket and over-buy for the second.
  3. What do you already run? If your data already lives in Postgres, putting vectors there too removes an entire system from your architecture — one database, one backup, one transaction.

Answer those and the shortlist writes itself.

The contenders

Already on Postgres → pgvector

pgvector is a Postgres extension that adds a vector type and HNSW/IVFFlat indexes. Its superpower isn't raw speed — it's that your embeddings sit next to your relational data, filterable with ordinary SQL WHERE clauses and consistent inside the same transaction. No second system, no sync pipeline, no separate backup. For most apps up to a few million vectors, that operational simplicity beats a dedicated store. One limit to check before you commit: HNSW and IVFFlat indexes cover the vector type up to 2,000 dimensions and the half-precision halfvec type up to 4,000, so a 3,072-dimension embedding has to be stored as halfvec or shortened before it can be indexed. When a single node runs out of room, extensions like pgvectorscale (a DiskANN-style StreamingDiskANN index plus its own binary quantization) push the ceiling higher before you have to leave Postgres at all. If you already run Postgres, start here and only move when you have a measured reason to. (To stand one up, see Scaffold a pgvector Schema & HNSW Index.)

Zero ops, fully managed → Pinecone

Pinecone is a fully managed, serverless vector database. You never run a node, tune an index, or page yourself at 3am — you call an API and pay for what you use. That's the whole pitch, and it's a good one when engineering time is your scarce resource and "it's someone else's job to keep it up" is worth the usage-based cost and the lack of a self-host escape hatch. The closest Pinecone gets is BYOC (Bring Your Own Cloud), which runs the data plane in your own AWS, GCP or Azure account while Pinecone keeps managing the control plane, upgrades and scaling; there is still no edition you operate yourself. Best when you want retrieval to be a managed dependency, not infrastructure you own.

Open-source servers you control → Qdrant, Weaviate, Milvus

All three are open-source, self-hostable, and offer a managed cloud — the sweet spot when you want control, data residency, or cost-at-scale and an off-ramp to hosted.

  • Qdrant — Rust, lean and fast, with excellent payload filtering, hybrid search, and aggressive quantization (scalar, product and binary, with on-disk storage). Starts as one Docker container (docker run -p 6333:6333 qdrant/qdrant) and shards into a cluster; Qdrant Cloud is the managed version. A great default open-source server.
  • Weaviate — Go, with built-in hybrid (vector plus BM25) search, integrations for model providers such as OpenAI, Cohere and Hugging Face, and optional vectorization at import so it can embed your data for you. Weaviate Cloud is the managed version. Strong when you want batteries included. (Weighing it against the managed option? Weaviate vs Pinecone.)
  • Milvus — built from the ground up for billion-scale, with a distributed, Kubernetes-native architecture that separates storage and compute and a wide menu of index types (HNSW, IVF, FLAT, SCANN, DiskANN). The pick when your scale genuinely justifies the operational weight. It also has a small end: Milvus Lite (pip install "pymilvus[milvus-lite]") runs from a local file for prototypes, and Zilliz Cloud is the managed service.

Embedded, no server → Chroma, LanceDB

  • Chroma — Python-first, runs in-process, and gets you from pip install to a working retrieval demo in minutes. The default for prototypes, notebooks, and small apps. When you outgrow embedded it runs client-server (chroma run --path <dir>), there is a JavaScript client (npm install chromadb), and Chroma Cloud is a hosted, serverless option.
  • LanceDB — embedded too, but built on the columnar Lance format and designed to scale on local disk or object storage (S3) without a server. Handles multimodal data well and bridges "laptop prototype" to "large dataset" without changing systems. The embedded library is the open-source part; distributed search and indexing are sold as LanceDB Enterprise.

The seven at a glance

DatabaseWritten inLicenceRuns embeddedSelf-hosted serverManaged option
pgvectorC (Postgres extension)PostgreSQL LicenseNo (lives in your Postgres)YesAny managed Postgres that ships the extension
PineconeClosed sourceProprietaryNoNoYes, serverless; BYOC in your cloud account
QdrantRustApache-2.0NoYesQdrant Cloud
WeaviateGoBSD-3-ClauseNoYesWeaviate Cloud
MilvusGo and C++Apache-2.0Milvus LiteYesZilliz Cloud
ChromaRustApache-2.0YesYesChroma Cloud
LanceDBRustApache-2.0YesNot in the open-source libraryLanceDB Enterprise

Licences and languages are as listed on each project's GitHub repository in November 2026.

A decision shortcut

  • You already run Postgres and have < a few million vectors → pgvector.
  • You want zero operational burden, managed → Pinecone.
  • You want an open-source server with great filtering and quantization → Qdrant.
  • You want modules and built-in vectorization → Weaviate.
  • You're genuinely at hundreds of millions to billions of vectors → Milvus.
  • You're prototyping or need embedded/in-process → Chroma (DX) or LanceDB (scale on disk/object storage).

TIP

The feature lists have converged — hybrid search, filtering, and quantization are table stakes now. Choose on operational model and scale, then confirm recall on your own queries: load a slice of your corpus, run your labeled query set, and measure recall@k. A store that wins a benchmark on someone else's data can still lose on yours.

WARNING

Don't choose for a scale you don't have. A billion-scale distributed system is real operational weight — sharding, replication, monitoring, capacity planning. Most production RAG runs on a few hundred thousand to a few million vectors, where pgvector or a single Qdrant node is faster to ship and cheaper to run than a cluster you don't need yet.

Beyond the store: memory and tuning

A vector database stores and searches embeddings — it doesn't decide what an agent should remember. If you're building an assistant that needs persistent, per-user memory on top of retrieval, a memory layer like Mem0 sits above your vector store and manages extraction and recall (see Agent Memory Architecture). And whichever store you pick, the index itself has knobs — HNSW graph parameters and quantization trade recall against speed and memory; the Embedding Index Tuner skill tunes them against your latency budget.

For the end-to-end retrieval build, the vector-search-engineer takes a corpus and a query set and returns a measured, filtered, hybrid retrieval setup on the store you chose.

Continue exploring

  • Seed Data — Generate realistic, referentially consistent seed data and a re-runnable seed script from your schema with types, constraints, and foreign-key ordering respected.

Frequently asked questions

What is the best vector database in 2026?
There's no universal winner — it depends on your deployment model, scale, and existing stack. If you already run Postgres, pgvector is the pragmatic default. For a fully managed, zero-ops store, Pinecone leads. For open-source servers you self-host, Qdrant, Weaviate, and Milvus are the strongest picks (Milvus for billion-scale). For embedded, no-server use, Chroma (great DX) and LanceDB (on-disk, multimodal). Validate recall on your own corpus before committing.
Do I need a dedicated vector database, or is pgvector enough?
For most applications up to a few million vectors, pgvector is enough — and it's the simplest choice if you already run Postgres, because your vectors, metadata, and relational data live in one system with one backup and one transaction boundary. Reach for a dedicated vector database when you outgrow a single Postgres node, need billion-scale search, want advanced quantization and sharding out of the box, or need features like multi-vector and built-in hybrid fusion that pgvector doesn't natively provide.
What's the difference between an embedded and a server vector database?
An embedded vector database (Chroma in-process, LanceDB) runs inside your application process and reads/writes local files or object storage — no separate service to deploy, ideal for prototypes, notebooks, and edge or single-node apps. A server vector database (Qdrant, Weaviate, Milvus, Pinecone) runs as its own service you connect to over the network, which is what you want for shared access, horizontal scale, and high availability.
Which vector databases support hybrid search and metadata filtering?
Nearly all of them in 2026. Qdrant, Weaviate, Milvus, Pinecone, and pgvector (via SQL plus an FTS/BM25 column) all support combining dense vector similarity with sparse/keyword signals and filtering by metadata. The differences are in ergonomics and fusion quality, not whether the feature exists — so choose on deployment model, scale, and cost rather than the hybrid-search checkbox.

Filed under

vector-database · rag · embeddings · comparison · tools

About the author

Imtiaz Rayhan

Software developer · Co-founder of DotCamp

Imtiaz Rayhan is a software developer and co-founder of DotCamp, the WordPress plugin company behind Ultimate Blocks, WP Table Builder and Tableberg. He has published plugins on WordPress.org since 2017, and the plugins he develops there have more than 100,000 active installations. He writes and maintains AgentsCamp and builds its sibling projects OptimizeCamp, GritShip and SurePrompts.

Related