Self-Hosted Vector Databases for RAG and AI Search
A self-hosted vector database, such as Qdrant or pgvector, stores embeddings, the numerical representations of your documents, and finds the most similar ones in milliseconds. It is the retrieval layer of RAG applications, semantic search and recommendations. You keep your embeddings and your data on your own server. With Elestio, deploy one in a few clicks, fully managed, on the cloud provider and region of your choice.
Last updated:
Why self-host
Why self-host your vector database?
Fixed price, not usage-based
Managed vector services bill by storage, reads and writes. A self-hosted vector database runs at a fixed price per instance: on Elestio, from $11/month.
Your embeddings stay private
Embeddings are derived from your documents and can reveal their content. They stay on your own instance, with the cloud provider and region you choose.
Close to your data and your LLM
Deploy the vector database in the same Elestio project as your application, chat interface or model gateway, for low latency between them.
Open source and portable
Standard APIs and open source engines: you can move your collections, or rebuild them from your documents, without lock-in.
Compliance made easier
Choose where your data is hosted, including EU-owned providers such as Hetzner, Netcup, Scaleway and OVHcloud. Elestio is SOC 2 and ISO 27001 certified.
Scale the server, not the bill
Vector search needs memory as collections grow. Resize the server from the Elestio dashboard when you need more, with a fixed price for each size.
The tools
5 vector databases you can self-host
Qdrant, Milvus, Chroma and pgvector are released under OSI-approved licenses. Weaviate has an open source core, with enterprise features under a proprietary license.
Qdrant
Fast search with rich filtering
A vector search engine written in Rust, with payload filtering, hybrid search with sparse vectors, quantization to reduce memory, and simple REST and gRPC APIs.
Best for: production RAG and semantic search with filters, on a single server or a cluster.
Deploy Qdrant →Weaviate
Hybrid search with built-in vectorization
Combines keyword (BM25) and vector search in one query, and can create embeddings for you through vectorizer modules for OpenAI, Cohere, Hugging Face and other providers.
Best for: hybrid keyword and vector search without building your own embedding pipeline.
Deploy Weaviate →Milvus
Built for very large collections
A distributed vector database designed for billions of vectors, with many index types, partitioning and hybrid search. Powerful, and heavier to run than the others for a small project.
Best for: very large datasets that will need to scale out.
Deploy Milvus →Chroma
The simplest way to start
A developer-friendly vector store with a minimal Python and JavaScript API, metadata filtering and a default embedding function. Widely used in LangChain and LlamaIndex tutorials.
Best for: prototypes and small RAG projects.
Deploy Chroma →pgvector
Vectors inside PostgreSQL
A PostgreSQL extension that stores vectors in your existing tables and searches them with SQL, using HNSW or IVFFlat indexes. Your vectors live next to your relational data, with the same backups and permissions.
Best for: teams already on PostgreSQL, with up to a few million vectors.
Deploy pgvector →Comparison
Comparison table
| Tool | Best for | Hybrid search | Metadata filtering | Built-in embeddings | Scale-out | API | License | From |
|---|---|---|---|---|---|---|---|---|
| Qdrant | Production RAG | ✓ Yes (sparse vectors) | ✓ Yes | ~ Client side (FastEmbed) | ✓ Yes | REST, gRPC | Apache 2.0 | $11/mo |
| Weaviate | Hybrid search | ✓ Yes (BM25 + vector) | ✓ Yes | ✓ Yes (vectorizer modules) | ✓ Yes | REST, GraphQL, gRPC | BSD 3-Clause core | $11/mo |
| Milvus | Very large collections | ✓ Yes | ✓ Yes | ~ Through client libraries | ✓ Yes (core design) | REST, gRPC | Apache 2.0 | $16/mo |
| Chroma | Prototypes | ~ Document text filters | ✓ Yes | ✓ Yes (default function) | ✗ No (single node) | HTTP, Python, JS | Apache 2.0 | $16/mo |
| pgvector | Already on PostgreSQL | ✓ Yes (with PostgreSQL full text search) | ✓ Yes (SQL) | ✗ No | ~ PostgreSQL replication | SQL | PostgreSQL License | $11/mo |
How to pick
Which one should you choose?
You are prototyping a RAG app this week
You already run PostgreSQL
You need fast filtered search in production
You want hybrid search with built-in vectorization
You plan for hundreds of millions of vectors
Private RAG
Build a private AI assistant on your documents
A vector database is one half of a RAG application. The other half is the chat interface that ingests your documents and answers questions: AnythingLLM and Open WebUI both handle document retrieval and work with local or API models.
Limits
What to expect
RAM is the first sizing criterion. Vector indexes live largely in memory. Following the Qdrant capacity planning guide, raw vectors take their count times their dimensions times 4 bytes in float32: one million vectors of 1,536 dimensions use about 6 GB of RAM. The same guide sizes the HNSW index separately, at about 0.15 GB for those vectors with default settings; add headroom for metadata, payload indexes and the operating system. Quantization and on-disk storage, available in several engines, reduce the total.
Pick the engine for your scale. Milvus is built for very large volumes and is heavier to run for a small project. For a few thousand documents, pgvector or Chroma are often enough, and simpler to operate.
Embeddings are part of the job. The database stores and searches vectors; you still need an embedding model, through an API or a local model, and a pipeline that splits your documents into chunks. If you change the embedding model, you need to re-embed your documents.
Get started
Deploy your vector database in 3 steps
Pick your tool
Qdrant, Weaviate, Milvus, Chroma or pgvector, or any of the 400+ open source software in our catalog.
Choose provider and region
10 cloud providers, including AWS, Azure, Hetzner, DigitalOcean and OVHcloud, or bring your own VM.
Deploy
Ready in minutes. Installation, SSL, backups, updates, security and monitoring handled, with a 99.9% SLA.
Reviews
Trusted by 10,000+ Developers Worldwide
Real reviews from real users on Trustpilot.
"Super easy setup; great customer support! Very happy with the services."
FAQ
Frequently Asked Questions
-
Which vector database should I use for RAG?
For most RAG projects, start with pgvector if you already use PostgreSQL, or Chroma for a quick prototype. Move to Qdrant or Weaviate when you need fast filtered search or hybrid keyword and vector search in production, and to Milvus when you reach hundreds of millions of vectors.
-
Qdrant vs Weaviate vs Milvus: what is the difference?
Qdrant focuses on fast vector search with rich filtering and a simple API, and runs well on a single server. Weaviate combines keyword and vector search and can create embeddings for you with vectorizer modules. Milvus is designed as a distributed system for very large collections, at the cost of a heavier setup.
-
Do I need a dedicated vector database or is pgvector enough?
pgvector is enough for many applications, especially up to a few million vectors, and it keeps vectors next to your relational data with SQL, backups and permissions you already know. A dedicated vector database becomes useful when you need very large collections, advanced filtering at scale or hybrid search features out of the box.
-
How much RAM does a vector database need?
It depends on the number of vectors and their dimensions. In float32, raw vectors take count times dimensions times 4 bytes: about 6 GB for one million vectors of 1,536 dimensions. According to the Qdrant capacity planning guide, the HNSW index adds about 0.15 GB for those vectors with default settings. Add headroom for metadata, payload indexes and the operating system; quantization and on-disk storage reduce memory use.
-
Is there a self-hosted alternative to Pinecone?
Yes. Qdrant, Weaviate, Milvus, Chroma and pgvector can all replace Pinecone for RAG and semantic search, on your own server. On Elestio they are fully managed, from $11/month, with a fixed price instead of usage-based billing.
Ready to run your own vector database?
Deploy Qdrant, Weaviate, Milvus, Chroma or pgvector in minutes, fully managed by Elestio.
Get started