Hybrid Semantic Vector + Keyword Search RAM Sizing (Arroy & HNSW 768d/1536d)
MeiliSizer Blueprint Summary: Pure vector databases fail on exact SKU codes; pure keyword engines miss conceptual queries like "breathable summer wedding outfit". Size hybrid BM25 + vector RAM cleanly.
Vector Embedding Dimensionality & Binary Quantization Math (MeiliSizer Guide)
Uncompressed 1536-dimension float32 vectors (text-embedding-3-small) consume 6.14 KB per document before graph edges — over 7.2 GB per 1M items! Switching to 768-dimension embeddings (BGE-base / multilingual-e5) or enabling Meilisearch v1.11+ Arroy binary quantization compresses vector storage to ~0.95–1.2 GB per 1M documents while retaining 96%+ semantic recall when fused with keyword BM25 (`semanticRatio: 0.5`).
Meilisearch v1.11+ Hybrid Embedder + Binary Quantization Configuration
// PATCH /indexes/products/settings — Hybrid Keyword + Binary Quantized Vectors
{
"embedders": {
"catalog_semantic": {
"source": "openAi",
"model": "text-embedding-3-small",
"dimensions": 768,
"binaryQuantized": true,
"documentTemplate": "{{doc.title}} - {{doc.category}} - {{doc.summary}}"
}
}
}
// Query with semanticRatio: 0.45 (55% exact keyword + 45% vector concept)
MeiliSizer RAM & NVMe Tier Matrix for HYBRID-VECTOR-HNSW
| Catalog Scale | Hot Working Set | Safe Peak RAM | Matched Spec Tier |
|---|---|---|---|
| 250K Docs Hybrid (768d Quantized) | ~1.6 GB Combined | 3.4 GB Indexing Peak | Hostinger KVM 2 8GB DDR5 ($5.99/mo) |
| 1M Docs Hybrid (768d Quantized) | ~7.9 GB Combined | 14.5 GB Indexing Peak | Hostinger KVM 4 16GB / UltaHost VDS 16GB |
| 5M Docs Hybrid (Full Float16/HNSW) | ~36.5 GB Combined | 56.0 GB Indexing Peak | UltaHost Dedicated VDS 64GB ($95/mo) |
MeiliSizer Production Checklist: HYBRID-VECTOR-HNSW
- Truncate Matryoshka embeddings (like text-embedding-3-small) from 1536d to 768d or 512d to cut vector RAM in half with <1% NDCG loss.
- Enable binaryQuantized: true on catalogs exceeding 1M items — keyword BM25 reranking restores exact precision on top hits.
- Keep documentTemplate concise (< 250 tokens) to slash embedding generation latency and API token bills.
- Provision dedicated physical VDS cores (UltaHost VDS or Vultr HF) with AVX2/AVX-512 SIMD instructions for fast cosine/Hamming distance scans.
UltaHost Dedicated VDS (Zero-Steal Cores for Typesense & Vector HNSW) — MeiliSizer Pick
100% Dedicated Physical CPU & DDR5 RAM (0% Steal) • Singapore, Tokyo, EU & US • Unmetered Traffic
Vultr High Frequency 3.5GHz+ NVMe Cloud (SG / Tokyo / US / EU) — MeiliSizer Option
3.5GHz+ Turbo Clock Speeds • Fastest Roaring Bitmap & Prefix FST Intersections in 32 Global Regions
MeiliSizer Engineering FAQ: HYBRID-VECTOR-HNSW
- What semanticRatio should e-commerce stores use in hybrid search?
-
A semanticRatio between 0.35 and 0.50 works best for e-commerce: exact model numbers and brand queries still rank #1 via keyword BM25, while natural-language intent queries surface conceptual matches.
- Can I generate embeddings locally without paying OpenAI per document?
-
Yes! Both Meilisearch (HuggingFace / Ollama REST embedder) and Typesense (built-in ONNX BGE/E5 models) can run local embeddings, though local ONNX requires an extra 2–4 GB RAM and strong multi-core VDS CPUs.