Book a free call

Best Open Source Vector Databases to Shortlist

Eight open source vector databases for search and retrieval, from dedicated engines to Postgres extensions. Compare them on hosting, scale and effort.

Hertiv engineering teamReviewed by a senior engineer
8 min read
Best Open Source Vector Databases to Shortlist
On this page

Short answer

The best open source vector databases to shortlist are Qdrant, Weaviate, Milvus, Chroma, pgvector, LanceDB, Vespa and OpenSearch. Dedicated engines suit teams building retrieval at scale, pgvector suits teams already on Postgres, and Chroma and LanceDB suit small teams and prototypes that want to start fast.

Which open source vector databases should you compare first?

Start with where your data already lives and how much retrieval you need to run. A team already on Postgres has a different answer from a team building a dedicated retrieval service, and a prototype has a different answer from a production system. The table below gives a quick shortlist before the detail.

Database Licence and hosting Best for Storage model
Qdrant Apache 2.0, self-host or cloud Dedicated vector search Rust engine, disk and memory
Weaviate BSD-3, self-host or cloud Built-in search modules Go engine, HNSW index
Milvus Apache 2.0, self-host or cloud Very large collections Distributed, cloud native
Chroma Apache 2.0, embedded or server Prototypes and small apps Embedded Python store
pgvector Postgres extension Teams already on Postgres Postgres tables
LanceDB Apache 2.0, embedded or server Local-first and edge use File-based, serverless
Vespa Apache 2.0, self-host or cloud Search and ranking at scale Distributed, real time
OpenSearch Apache 2.0, self-host or cloud Search plus vectors Lucene-based engine

All eight are open source and actively maintained, so the choice is about fit rather than availability. The rest of this article compares what each one is good at and what it costs you in effort. For the basics of how these stores work, see what is a vector database.

Dedicated engines: Qdrant and Weaviate

1. Qdrant: best for dedicated vector search

Qdrant is a vector database written in Rust, built only for similarity search. It stores vectors with payloads, supports filtering on metadata, and runs as a single binary or as a cluster. Teams pick it when retrieval is a core part of the product rather than a side feature.

Its strength is focus and speed: a small, well-tested surface for vector search, with clear documentation and a simple API. Its weakness is scope. It is not a general database, so you still need another store for application data, and you manage the extra service yourself.

  • Pros: fast dedicated engine, payload filtering, simple API and deployment
  • Cons: another service to run, not a general-purpose database

2. Weaviate: best for built-in search modules

Weaviate is a vector database with modules that handle embedding, reranking and generation. You can send it raw text and let a module produce vectors, or bring your own vectors and use Weaviate only as the store. That flexibility suits teams that want fewer moving parts in their retrieval pipeline.

Its strength is the module system: one service can cover embedding, hybrid search and generation, which shortens the build. Its weakness is complexity. The module options and configuration take time to learn, and a team that only needs plain vector search may find it heavier than Qdrant or Chroma.

  • Pros: modules for embedding and generation, hybrid search, GraphQL and REST APIs
  • Cons: more to configure than simpler engines, heavier for plain vector search

Scale and prototypes: Milvus and Chroma

3. Milvus: best for very large collections

Milvus is a distributed vector database built for billions of vectors. It separates storage, indexing and query work so each part can scale on its own, and it supports many index types for different recall and speed trade-offs. Teams with very large collections or strict latency targets pick it when a single-node engine is not enough.

Its strength is scale: it handles workloads that would strain smaller engines, with a mature ecosystem around it. Its weakness is operational weight. A distributed Milvus deployment needs Kubernetes and careful tuning, so it is the wrong choice for a small team or a first prototype.

  • Pros: built for billions of vectors, many index types, cloud native design
  • Cons: needs Kubernetes and tuning, too heavy for small teams

4. Chroma: best for prototypes and small apps

Chroma is a lightweight vector store that runs embedded in Python or as a small server. It was designed for AI applications that need retrieval without a separate database deployment, and it is the default choice in many tutorials and starter projects for that reason.

Its strength is how fast you start: a few lines of code and you have a working store with persistence. Its weakness is scale. It suits prototypes and small applications, but a team that grows to millions of vectors or strict latency needs will usually move to a dedicated engine.

  • Pros: starts in minutes, embedded or server mode, simple Python API
  • Cons: not built for very large collections, fewer production features

If you are comparing vector stores for a startup rather than a prototype, best vector databases for startups covers the managed and hosted options as well.

Postgres and local-first: pgvector and LanceDB

5. pgvector: best for teams already on Postgres

pgvector is an extension that adds vector search to PostgreSQL. Vectors live in ordinary Postgres tables next to your application data, so you can filter, join and back up vectors with the same tools you already use. Teams that already run Postgres pick it to avoid adding a new database.

Its strength is simplicity of operations: one database to run, one backup to manage, and SQL for everything. Its weakness is scale and speed at the top end. It handles millions of vectors well, but a dedicated engine will usually beat it on recall and latency for very large collections.

  • Pros: vectors next to app data, one database to run, full SQL support
  • Cons: slower than dedicated engines at very large scale, fewer index types

6. LanceDB: best for local-first and edge use

LanceDB is a serverless vector database built on the Lance columnar format. It runs embedded in an application or on object storage, which suits local-first apps, edge deployments and data science workflows where a server is more than the job needs.

Its strength is the deployment model: no server to run, versioned data on disk or in object storage, and a simple API in Python and other languages. Its weakness is maturity as a shared service. It is newer than the dedicated engines, and teams that need multi-tenant serving or strict access control may find it less complete.

  • Pros: serverless and embedded, versioned data, no server to manage
  • Cons: newer project, less complete as a shared multi-tenant service

Search and ranking: Vespa and OpenSearch

7. Vespa: best for search and ranking at scale

Vespa is a platform for search, recommendation and ranking that handles vectors alongside text, structured data and machine learning models. It evaluates ranking functions at query time, which suits teams that need to combine vector similarity with business rules in one step.

Its strength is the ranking engine: you can score results with vectors, text relevance and custom features together, in real time. Its weakness is the learning curve. Vespa has its own schema and query language, and a team that only needs plain vector search will find it more than the job requires.

  • Pros: real-time ranking with vectors and rules, built for very large scale
  • Cons: own schema and query language, more than plain vector search needs

8. OpenSearch: best for search plus vectors

OpenSearch is a search and analytics engine with vector search built in. Teams that already use it for logs or full-text search can add vector search to the same cluster, which avoids running a separate store for retrieval.

Its strength is breadth: full-text search, aggregations, dashboards and vector search in one system, with a large community. Its weakness is that vector search is one feature among many, so it is not as focused or as fast as a dedicated vector engine on retrieval-heavy workloads.

  • Pros: search, analytics and vectors in one cluster, large community
  • Cons: vector search is not its main focus, less specialised than dedicated engines

Vector search is only one half of retrieval. vector database vs graph database covers when a graph store fits better than a vector store.

How to choose between open source vector databases

Choose by testing each shortlisted database on your own data, not by comparing feature lists. A short test with real queries and real vectors will tell you more than a week of reading documentation.

  1. Start with where your data lives. If you already run Postgres, try pgvector first. If you already run OpenSearch, try its vector search before adding a new service.
  2. Fix your scale target. A prototype with thousands of vectors and a production system with millions need different engines. Pick for the scale you will reach in a year, not the scale you have today.
  3. Test recall and latency together. Load a sample of your real vectors, run your real queries, and measure both how many good results come back and how long they take.
  4. Check the operations cost. A distributed engine needs Kubernetes and tuning; an embedded store needs almost nothing. Count the engineering time, not only the licence cost.
  5. Check the licence and the community. Confirm the licence fits your product and that the project is actively maintained, with recent releases and answered issues.

Keep the shortlist short. Two databases tested properly beat six compared on paper. If your retrieval feeds a language model, how to build domain-specific LLMs covers how the store fits into the wider system.

What are the common mistakes?

The most common mistakes are choosing on benchmarks alone, skipping the scale check, and treating the vector store as finished at launch.

  • Choosing on benchmarks alone. A benchmark on another team's data says little about your vectors, your queries and your latency budget.
  • Ignoring the scale you will reach. A store that is fast at ten thousand vectors can be slow at ten million. Test at the scale you expect in a year.
  • No filtering strategy. Vector search without metadata filters returns plausible but wrong results. Plan filtering before you load data.
  • Skipping the re-index plan. Embeddings change when models change. Without a plan to rebuild the index, old vectors drift out of date.
  • No owner after launch. Recall and latency drift as data grows. Without someone watching them, quality falls silently.

Key takeaways

  • Qdrant and Weaviate are the safest dedicated open source engines to start with
  • pgvector wins when your team already runs Postgres and wants one database
  • Chroma and LanceDB are the fastest way to start a prototype or local-first app
  • Milvus and Vespa suit very large collections and ranking-heavy workloads
  • OpenSearch adds vector search to a search cluster you may already run
  • Test two databases on your real vectors before you commit

Frequently asked questions

Which open source vector database is best for beginners?

Chroma is the easiest starting point because it runs embedded in Python with a few lines of code. pgvector is also easy if you already run Postgres. Both let you build a working retrieval system before you commit to a dedicated engine.

Is pgvector good enough for production vector search?

Yes, for many teams. pgvector handles millions of vectors well and keeps vectors next to application data. A dedicated engine usually wins on recall and latency only at very large scale or under strict latency targets.

What is the difference between Qdrant and Milvus?

Qdrant is a focused single-purpose engine that is simple to run, while Milvus is a distributed system built for billions of vectors. Choose Qdrant for most products and Milvus when a single-node engine cannot meet your scale or latency needs.

Can I use an open source vector database for free?

Yes. All eight databases in this article are open source, so you can run them yourself without a licence fee. You still pay for servers, storage and the engineering time to run and maintain them.

Do I need a vector database for RAG?

You need somewhere to store vectors and search them, and a vector database is the usual choice. For a prototype, an embedded store such as Chroma or LanceDB is enough. For production, a dedicated engine or pgvector is the common pick.

How do I move from one vector database to another?

Export your vectors and metadata, load them into the new store, and rebuild the index. The vectors themselves are portable, but filtering, metadata and query code usually need adjusting, so treat a move as a small migration rather than a simple copy.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a retrieval system and need help picking the stack? Talk to Hertiv.

A senior engineer replies within one business day. Or see our RAG Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call