SPI: Query-Depth-Adaptive Indexing for Streaming RAG in Vector Databases
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
Abstract (arXiv)
Vector databases (VecDBs) are increasingly deployed in retrieval-augmented generation (RAG) pipelines where query processing and document ingestion occur concurrently. The index layer needs to provide low-latency search while incorporating new vectors without frequent global rebuilding. Existing VecDB pipelines typically operate within a uniform representation regime, despite substantial variation in the semantic granularity required across queries. This motivates an index design that supports incremental updates while adapting retrieval depth to query distribution and complexity. We propose Semantic Pyramid Indexing (SPI), a VecDB-layer indexing framework that organizes embeddings into L semantically aligned resolution levels and selects retrieval depth per query via a lightweight uncertainty-aware controller. SPI supports progressive coarse-to-fine ANN search, level-wise streaming insertion without global rebuilds, and distributed execution through LSH partitioning with asynchronous gRPC coordination. Unlike hierarchical ANN structures with fixed traversal rules (e.g., SPANN), SPI adapts resolution at query time while remaining compatible with FAISS and Qdrant backends. On MS MARCO and Natural Questions, SPI achieves competitive Recall@10 with lower latency under the same dense encoder family, yielding a 1.4--2.3× average retrieval latency reduction under fixed Recall@10 targets relative to comparable approximate-ANN baselines. A prototype scaling study up to 8 nodes shows 6.2× throughput scaling (≈73% efficiency); the 16-node configuration is included for completeness but shows diminishing efficiency. We provide a top-K stability guarantee: queries with sufficient retrieval margin return an identical top-K set at a shallower level. Code and configurations are available at https://github.com/FastLM/SPIVecDB.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 11 of its 30 references that are in the map. First posted on arXiv 12 Nov 2025.
Builds on
11 of 30 references.
References · 11
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 508
- 2022Matryoshka Representation Learningcited by 268
- 2023ParlayANN: Scalable and Deterministic Parallel Graph-Based Approximate Nearest Neighbor Search Algorithmscited by 24
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Cost-Aware Query Routing in RAG: Empirical Analysis of Retrieval Depth Tradeoffs
- 2025From HNSW to Information-Theoretic Binarization: Rethinking the Architecture of Scalable Vector Search
- 2025Cracking Vector Search Indexes
- 2026RAGPerf: An End-to-End Benchmarking Framework for Retrieval-Augmented Generation Systems
- 2025Beyond Nearest Neighbors: Semantic Compression and Graph-Augmented Retrieval for Enhanced Vector Search
- 2026AkasicDB: Demonstrating Omni RAG with a Unified Vector-Graph-Relational DBMS
- 2025Quake: Adaptive Indexing for Vector Search
- 2025RAG-Stack: Co-Optimizing RAG Quality and Performance From the Vector Database Perspective