You launch a RAG bot on demo data: five documents, ten questions — everything works. You move to a real knowledge base of 200,000 chunks, and the bot starts answering off-topic. Search finds "similar" pieces, but not the right ones. What's the matter? Why do vector databases that worked so well on a toy example break under real load? This article is about how embedding search works, what myths surround the choice between Pinecone, Weaviate, Milvus, Qdrant, and pgvector, and how not to spend months rewriting the pipeline.
Myth 1: "The vector database will find the meaning itself"
Many think: load texts into Pinecone or Qdrant — and search will work "by meaning." In practice, everything is decided by the embedding model. If it is trained on general texts, and you search through legal documents with narrow terminology, cosine similarity will be high for semantically distant fragments. The database only stores vectors and speeds up nearest neighbor search — it does not improve the quality of the representation. More on the topic: “Vector Databases — From Search to RAG: Why Your RAG Chatbot Gives Wrong Answers and How to Fix Retrieval”.
A typical mistake: comparing databases by ANN algorithm benchmarks, forgetting that search quality depends 80% on embeddings and chunking. For more on how chunking and hybrid search affect results, see the article Building RAG Systems: Where Chunking and Hybrid Search Decide Whether Your Retrieval Works. More on the topic: “Graph Databases: Neo4j, Cypher, and Knowledge Graphs — Where Myths Get in the Way and Where Graphs Truly Deliver”.
Myth 2: "HNSW is always the best choice"
HNSW (Hierarchical Navigable Small World) is a popular approximate nearest neighbor (ANN) search algorithm. It provides high speed and accuracy but requires a lot of RAM: the index is stored in RAM. For millions of vectors, this can be tens of gigabytes. If the memory budget is limited, you'll have to look at IVF (inverted file) or PQ (product quantization), which sacrifice accuracy to save memory.
Choosing an algorithm is a trade-off between speed, accuracy, and hardware cost. Vector databases often allow switching between algorithms or combining them. For example, Milvus supports HNSW, IVF, PQ, and DiskANN; Qdrant — HNSW with quantization; Weaviate — HNSW with compression; pgvector — IVFFlat and HNSW (since version 0.5.0).
What does this mean in practice? Imagine you have 10 million vectors of dimension 768. Using HNSW with parameter M=16 (number of connections), the index will take about 10–15 GB of RAM. If a server with 16 GB costs roughly $100/month, and with 64 GB — $300/month, the difference is noticeable. Switching to IVF with PQ can reduce memory requirements by 4–8 times, but search accuracy (the proportion of true neighbors found) will drop from 95–98% to 85–90%. The question: are you willing to tolerate a 5–10% loss in relevance to save money? For many tasks, the answer is yes, if the loss is not critical.
Myth 3: "pgvector is a toy, not a production solution"
pgvector is a PostgreSQL extension that adds a vector type and indexes for ANN search. For a long time, it was considered insufficiently fast for large volumes. However, with the release of version 0.5.0 (2023), an HNSW index appeared, and pgvector began to catch up with specialized solutions. The main advantage is not speed, but transactionality and a familiar stack: you can store vectors alongside metadata and JOIN with regular tables without moving data to a separate system. More on the topic: “RAG Data Residency Checklist: How to Decide If Embeddings Can Leave Your Perimeter”.
When is pgvector appropriate? If you already have PostgreSQL and the vector volume does not exceed a few million, and search latency within 50–100 ms suits you. If you need to scale to hundreds of millions of vectors or ensure high availability with sharding, you'll likely need to look at Milvus or Qdrant.
A typical mistake: dragging a separate vector DB into a project when the data is already in Postgres, and then struggling with synchronization. Sometimes it's easier to add pgvector and not complicate the architecture.
Myth 4: "The more features, the better"
Pinecone, Weaviate, Milvus, Qdrant — each has its strengths. But choosing by a checklist "does it have hybrid search, multi-tenancy, filtering" is the wrong approach. First, determine what is critical for your scenario.
- Pinecone — a fully managed service, minimal operational overhead. Suitable if the team is small and doesn't want to administer infrastructure. The price is higher than self-hosted solutions.
- Weaviate — open-source with rich functionality: hybrid search, modules for generative models, GraphQL interface. Good for a quick start but requires resources for support.
- Milvus — focused on scale: sharding, replication, GPU support. More complex to install and operate, but handles billions of vectors.
- Qdrant — a balance between simplicity and performance: written in Rust, efficiently uses memory, has filtering and multi-tenancy via payload indexes.
If you work with multiple tenants (multi-tenancy), it's important how the database isolates data. In Qdrant, you can use partition keys or payload filters; in Milvus — collections and partitions; in Weaviate — tenants. A mistake is to store everyone in one collection without isolation, and then discover that one client sees another's data due to a filter error.
Myth 5: "Hybrid search is simple"
Hybrid search combines vector search with classical search (e.g., BM25). The idea is simple: combine the results of two methods and rerank. But in practice, you need to set weights, choose a merging method (e.g., reciprocal rank fusion), and consider that BM25 requires a separate index. Many vector databases already support hybrid search out of the box: Weaviate, Qdrant, Milvus. In pgvector, you'll have to combine with Postgres full-text search manually.
If you use LangChain or LlamaIndex, there are ready-made wrappers for hybrid search, but quality depends on proper configuration. A typical mistake is enabling hybrid search without checking that the BM25 index is updated synchronously with the vector one. Desynchronization leads to some documents falling out of search.
What really influences the choice
Instead of chasing trendy features, evaluate:
- Data volume and growth: how many vectors now and in a year. If less than 1 million, pgvector or Qdrant with HNSW may suffice. If tens of millions — look at Milvus or managed Pinecone.
- Latency requirements: for interactive chat, latency <100 ms is needed. For batch processing, you can sacrifice speed.
- Budget: managed services are more expensive but save engineers' time. Self-hosted is cheaper at large scales but requires DevOps resources.
- Integration: if you already use Postgres, pgvector will reduce complexity. If you build on Python and want minimal code — Pinecone or Qdrant with clients.
- Security and compliance: for projects in regulated industries, it's important where data is stored. Some foreign services may be unavailable or not comply with local data protection laws. In that case, self-hosted solutions (Qdrant, Milvus, pgvector) are preferable.
- Minimal administration
- High cost
- Quick start
- Control over data
- DevOps required
- Savings at large scale
How not to drown in choices: a practical approach
Start with a prototype on data close to real. Take 10–20 thousand fragments, build embeddings with one model (e.g., from the sentence-transformers family), and test search in two or three databases. Evaluate not only speed but also retrieval quality: how often a relevant document appears in the top-5. Often it turns out that the difference between databases is small, and what matters is the quality of embeddings and chunking.
If you are a beginner and want to understand systematically, the course Vector Databases — From Search to RAG provides a structured path: from the math of embeddings to production deployment, with a comparison of Pinecone, Weaviate, Milvus, Qdrant, and pgvector, analysis of ANN algorithms, and practice on real tasks. It does not replace independent work but helps you not miss key trade-offs.
Ultimately, choosing a vector database is not about finding the "best" but finding the one that fits your constraints. Determine what is more important to you: development speed, cost, scalability, or control over data. And remember: even the most advanced database won't save you if the embeddings do not reflect the meaning of your documents.