1536-dim FP16 vectors (~30.7 GB) + HNSW graph (~12 GB); INT8 scalar quantization cuts RAM to ~16 GB with 3x oversampling.
Why naive chunk-and-cosine retrieval breaks at scale — architecting Parent-Child chunking, ACL pre-filtered HNSW + BM25 Reciprocal Rank Fusion, Cross-Encoder reranking with graceful degradation, and grounded citation verification.
1536-dim FP16 vectors (~30.7 GB) + HNSW graph (~12 GB); INT8 scalar quantization cuts RAM to ~16 GB with 3x oversampling.
End-to-end retrieval budget: 25ms embed + 35ms parallel HNSW/BM25 + 90ms Cross-Encoder rerank + 30ms ACL & assembly.
Hybrid Dense + BM25 RRF fusion lifts exact-match SKU, error-code, and acronym recall by +18–26% over pure vector search.
Strict inline [chunk_id] citation verification with automatic refusal when top Cross-Encoder score < 0.45.
acl_tags bitmasks inside HNSW & BM25 traversal.
| Chunk ID & Title | Dense Rank | BM25 Rank | RRF 1/(60+r) | Rerank Score | Status |
|---|
| Vendor-Agnostic Primitive | Role in Pipeline | Production Systems |
|---|---|---|
| Structure-Aware Parent-Child Chunker | Preserves headings/tables, embeds small child spans, retrieves rich parent sections | Docling, Unstructured, Tree-sitter |
| Dense Vector Index (HNSW / DiskANN) | Sub-35ms semantic ANN lookup with INT8/FP16 quantization & ACL bitmask | Qdrant, Milvus, pgvectorscale, Turbopuffer |
| Sparse Lexical Index (BM25 / SPLADE) | Exact match for error codes, SKUs, acronyms, and rare domain identifiers | OpenSearch, Elasticsearch, Vespa, Tantivy |
| Hybrid Fusion & Pre-Filter ACL Gate | Merges scale-invariant ranks via RRF (k=60) & enforces embedding version parity | Vespa, Qdrant Query API, Custom RRF Service |
| Cross-Encoder Reranker | Joint query-document self-attention scoring Top-50 → Top-5 with 120ms breaker | Cohere Rerank 3.5, BGE-Reranker-v2-M3, HuggingFace TEI |
| Citation & Faithfulness Verifier | Validates inline [chunk_id] entailment and enforces low-score refusal |
NLI Cross-Encoder, LettuceDetect, Custom Span Verifier |
Evaluates acl_tags bitmasks during graph traversal—preserving full Top-50 recall and 0.00% cross-tenant leakage.
Simple to bolt on, but if 48 of 50 neighbors belong to restricted teams, recall collapses to 2 chunks and leaks timing metadata.
Embeds crisp 256-token child spans for high-precision retrieval, then expands to the 1,024-token parent section for complete LLM reasoning.
Trivial to code, but slices Markdown tables, code blocks, and runbook steps in half—causing incomplete or hallucinated citations.
Fast Bi-Encoder + BM25 narrows 10M chunks → Top-50 in 35ms; Cross-Encoder scores full token-to-token attention on Top-50 in 86ms.
Fastest (~35ms), but independent embeddings miss subtle negation, version numbers, and multi-hop relevance—letting decoys into Top-5.
Cuts 10M-vector RAM from ~43 GB down to ~16 GB (INT8) or ~4 GB (Binary); oversampling 3x and rescoring FP16 from NVMe retains >98% recall.
Zero quantization loss and lowest latency, but RAM costs scale linearly at ~$300–$500/mo per 10M chunks in high-memory clusters.