Lesson 22.6 · 6 of 8 · 6 min read · Reviewed 24 Nov 2026
Comparing vector stores and quantization options
By the end, you can
- Compare common vector stores by type and strengths.
- Choose scalar, binary or product quantization.
Product features change quickly. Treat this table as a map of the landscape and check each project’s current docs before deciding.
The landscape
| Store | Type | Typical strengths | Things to weigh |
|---|---|---|---|
| FAISS | Library in your process | Very fast, many index types (flat, IVF, HNSW, PQ), great for research and batch jobs | No server, persistence, filters or access control built in |
| pgvector | Postgres extension | Vectors next to your relational data; SQL joins and filters; HNSW and IVFFlat indexes; transactions and backups you already run | Tuning and memory at very large scale; heavy filtering needs care |
| Chroma | Open-source, embedded or server | Very quick to start in Python or JS; good for prototypes and small apps | Check scale and operations features for production |
| Qdrant | Open-source server, also hosted | Strong payload (metadata) filtering, several quantization options, written in Rust | Another service to run, unless you use the hosted version |
| Weaviate | Open-source server, also hosted | Built-in hybrid (keyword plus vector) search, schema and modules | Another service to run; learn its data model |
| Milvus | Open-source distributed server, also hosted | Designed for very large collections across many machines | More moving parts to operate |
| Pinecone | Managed service | No servers to run; scales for you; namespaces for tenants | Cost at scale, data residency, less control |
| Search engines (Elasticsearch, OpenSearch) | Search server with vector fields | Mature keyword search plus vectors in one place | Vector features vary by version |
A decision path
Do you already run Postgres and have under a few million chunks?
yes --> start with pgvector
no --> Is this a prototype or a single-user app?
yes --> Chroma or FAISS
no --> Do you want to run it yourselves?
yes --> Qdrant, Weaviate or Milvus (by filtering, hybrid and scale needs)
no --> a managed service (Pinecone or a hosted open-source option)
Then test: load a realistic sample, run your real filters, and measure recall@kHit rate@k: The share of test questions with at least one relevant chunk in the top k results. and p95 latencyLatency: The time from sending a request until you get the response, or until the first token arrives when streaming. (22.1, 26.x). Filtered search behaves very differently between stores, so test with your actual filter mix.
Quantization options
QuantizationQuantization: Storing model weights with fewer bits, such as 4 or 8 instead of 16, to cut memory and speed up inference. stores each vector in fewer bits. The trade is memory against accuracy.
| Method | How | Memory vs float32 | Accuracy | Notes |
|---|---|---|---|---|
| float16 | Half-precision numbers | 2x smaller | Almost no loss | Easy first step |
| Scalar (int8) | Map each number’s range onto 256 levels | About 4x smaller | Small loss | Widely supported |
| Binary | Keep only the sign of each number (1 bit) | About 32x smaller | Larger loss | Fast Hamming distance; needs re-scoring |
| Product (PQ) | Split into sub-vectors, store codebook ids (22.3) | 10x to 60x smaller | Tunable loss | Common with IVF |
The standard pattern for aggressive compression:
1. Search compressed vectors --> top 200 candidates (fast, in memory)
2. Re-score with full vectors --> top 10 (full vectors can sit on disk)
This oversample and re-score step recovers most of the lost recall.
Questions that decide it
- How many vectors, at what dimensions, now and in a year? (Size it with 49.5.)
- Which filters run on most queries, and how selective are they?
- Do you need keyword plus vector (hybrid) search in one query?
- How will you isolate tenants: separate collections, namespaces, or filters?
- Who is on call for it, and what do you already know how to run?
Key points
- Stores fall into libraries (FAISS), database extensions (pgvector), open-source servers (Weaviate, Qdrant, Milvus, Chroma) and managed services (Pinecone and hosted versions of the others).
- Most support HNSW, metadata filters and some form of hybrid search; they differ in operations, scale and filtering under load.
- Scalar quantization (int8) cuts memory about 4x with small loss; binary quantization cuts it about 32x and needs re-ranking.
- Pick on your measurements: recall at your filter mix, latency at your query rate, and the effort to run it.
Benchmark two vector stores locally
Load the same sample into two vector stores on your machine and compare recall and latency with your real filters.
You will have: A short benchmark table (recall@10 and p95 latency, with and without a filter) and a one-paragraph decision record.
Steps
- Install Docker, then start Postgres with the pgvector extension and a Qdrant server from their official images, following each project's docs.
- Embed a realistic sample (for example 50,000 chunks) once, save the vectors locally, and load the same vectors and metadata into both stores.
- Create an HNSW index in each, then run 200 sample queries with and without your most common filter (for example tenant or date).
- Compute recall@10 against exact search on the same sample and record p95 latency for each store and filter setting.
- Write a decision record: which store, why, and who will run it. Keep any keys in environment variables, not in scripts.
Done when
- Your table has recall@10 and p95 latency for both stores, filtered and unfiltered.
- Recall is measured against exact search, not assumed.
- The decision record names the filter mix you tested.
Docs: pgvector (GitHub) · Qdrant documentation · Docker: get started