All articles

Article

OpenSearch Vector Database Alternatives: 9 Options Compared for RAG

OpenSearch vector database alternatives compared: pgvector, Elasticsearch, Qdrant, Weaviate, Milvus, Pinecone, Vespa, LanceDB and S3 Vectors, with licenses.

· alternatives · vector-databases

Ian KikuCTO & Founder, Team Nebula

The strongest OpenSearch vector database alternatives are pgvector on Postgres (including Aurora and RDS), Elasticsearch, Qdrant, Weaviate, Milvus, Pinecone, Vespa, LanceDB and Amazon S3 Vectors. If you already run Postgres, start with pgvector. If you need low-cost storage for large, rarely queried vector sets on AWS, look at S3 Vectors. Pick a dedicated vector engine when scale or query speed outgrows both.

OpenSearch itself is Apache 2.0 and supports k-NN, sparse vectors and hybrid queries. Teams look elsewhere to run fewer systems, cut cost or get a simpler API.

Quick comparison

OptionHosting modelOpen-source licenseHybrid searchA good fit
pgvectorSelf-host, or managed Postgres (Aurora, RDS)PostgreSQL LicenseYes, with Postgres full-text searchTeams already on Postgres
ElasticsearchSelf-host, Elastic CloudAGPLv3, SSPL or ELv2 (your choice)Yes, RRF built inTeams already on the Elastic Stack
QdrantSelf-host, Qdrant CloudApache 2.0Yes, RRF or DBSF fusionFast filtered vector search
WeaviateSelf-host, Weaviate CloudBSD 3-Clause (core)Yes, BM25F plus vectorsBuilt-in hybrid with one knob
MilvusSelf-host, Zilliz Cloud (incl. BYOC)Apache 2.0Yes, BM25 plus dense vectorsVery large vector collections
PineconeManaged service, BYOC optionNot open sourceYes, filter-then-rank or client-side RRFNo-ops managed vectors
VespaSelf-host, Vespa CloudApache 2.0Yes, custom rank profilesComplex ranking at scale
LanceDBEmbedded in your app, local or object storageApache 2.0Yes, RRF by defaultLightweight or serverless apps
Amazon S3 VectorsFully managed AWS serviceNot open sourceYes, BM25 plus vectors with RRFLarge, infrequently queried sets on AWS

pgvector (Postgres, Aurora, RDS)

pgvector adds vector columns and HNSW or IVFFlat indexes to Postgres. Its license is the permissive PostgreSQL License. The README suggests pairing it with Postgres full-text search for hybrid search. Aurora PostgreSQL ships pgvector and can act as a vector store for Amazon Bedrock Knowledge Bases.

Pick it when:

  • Your source data already lives in Postgres.
  • You want vectors, filters and joins in one SQL query.
  • You'd rather run one database than two.

Elasticsearch

Elasticsearch source is available under AGPLv3, SSPL or ELv2. It supports hybrid search with an RRF retriever, self-managed or on Elastic Cloud. Its RRF retriever fuses BM25 and kNN results.

Pick it when:

  • You came from Elasticsearch before the OpenSearch fork, or never left.
  • You need mature text search, aggregations and dashboards.

Qdrant

Qdrant is Apache 2.0, with a managed Qdrant Cloud. Its Query API runs dense and sparse prefetches and fuses them with RRF or DBSF.

Pick it when:

  • Vector search is the main workload, not a side feature.
  • You filter heavily on payload fields.

Weaviate

Weaviate's core is BSD 3-Clause; some enterprise features need a commercial license. Its hybrid search blends BM25F and vector results, with an alpha setting from pure keyword to pure vector.

Pick it when:

  • You want hybrid search without writing fusion code.
  • You like a schema-first, object-style API.

Milvus

Milvus is Apache 2.0 under the LF AI & Data Foundation. Zilliz Cloud offers it managed, including BYOC. It supports BM25 full-text search on raw text and hybrid search with dense vectors.

Pick it when:

  • Collections are very large and still growing.
  • You want an open-source engine with a managed path in your own cloud.

Pinecone

Pinecone is a managed, closed-source service. It offers hybrid search by filtering then ranking, or by fusing separate searches with RRF. Bring Your Own Cloud runs the data plane in your AWS, GCP or Azure account.

Pick it when:

  • You want no database operations at all.
  • BYOC meets your data-residency rules.

Vespa

Vespa is Apache 2.0. It combines BM25 and nearest-neighbor search in custom rank profiles, including RRF and linear blends. Vespa Cloud runs in AWS, Azure and GCP, including in your account.

Pick it when:

  • Ranking logic is your product, as in search or recommendations.
  • You need text, vectors and structured fields in one query.

LanceDB

LanceDB is Apache 2.0 and runs embedded in your process, on local disk or object storage. It supports hybrid search with RRF as the default reranker.

Pick it when:

  • You don't want to run a database server.
  • Data sits in object storage next to your app.

Amazon S3 Vectors

S3 Vectors adds vector buckets and indexes to S3. AWS cites sub-second latency for infrequent queries and as low as 100 ms for frequent ones. Since November 2026 it supports hybrid search with BM25 and RRF. It plugs into Bedrock Knowledge Bases and can export to OpenSearch Serverless for high-QPS search.

Pick it when:

  • You store many vectors but query them rarely.
  • You're on AWS and want nothing to provision.

When to stay with OpenSearch

Stay when:

  • You already run OpenSearch for logs or search and it performs well.
  • You need text search, aggregations, filters and vectors in one engine.
  • You're on Amazon OpenSearch Service and want S3 Vectors as a cheaper storage tier behind the same APIs.

How to choose

  1. List where the source data lives today: Postgres, S3, Elasticsearch or elsewhere.
  2. Estimate vector count in two years and queries per second.
  3. Write down hosting rules, such as running in your own cloud account.
  4. Load the same sample data into two or three shortlisted options and test hybrid search on real queries.
  5. Pick the one that meets quality and latency with the fewest new systems.

FAQ

Is pgvector good enough to replace OpenSearch?

For many RAG workloads, yes, especially when the data is already in Postgres. Test with your real vector count and filters first.

Which alternatives are fully open source?

pgvector, Qdrant, Milvus, Vespa and LanceDB use permissive licenses. Weaviate's core is BSD. Elasticsearch offers AGPLv3 among its options.

Can vectors stay inside your own AWS account?

Yes. Aurora or RDS with pgvector and S3 Vectors are AWS services. Pinecone, Zilliz and Vespa Cloud offer options that run in your account.

Does Amazon S3 Vectors replace OpenSearch?

Not always. It suits large, infrequently queried sets. For high-QPS, low-latency search, AWS points to exporting to OpenSearch Serverless.

Planning a vector store for your own cloud? Request a free one-pager, or see how we take pilots to production.

Get in touch

A short call is the fastest way to find out. No pitch, just the work.