RAG vs. Vectorless RAG, clearly explained!
Mirai demonstrated that running speculative decoding with DFlash and Weaver inside their Apple Silicon inference engine, Uzu, achieves 92.1 tokens per second on an M5 MacBook Pro with Qwen3.5 9B. This represents a 4x improvement over baseline decoding and a 2.6x speedup over standard speculative decoding. Weaver addresses the token-mismatch limitation of parallel drafters like DFlash by using a 56.7M parameter Transformer layer to build dependency-aware candidate trees verified in a single pass. Mirai has open-sourced this speculative decoding stack in Uzu for Apple Silicon devices. Standard vector-based RAG struggles with structured, long-form documents like annual reports because similarity search often confuses structurally identical templates across different years and fails on cross-references. Vectorless RAG replaces embeddings and vector databases with an LLM-driven table of contents (ToC) tree index, enabling reasoning over document structure similar to how a human analyst navigates a report. While vectorless approaches like PageIndex improve retrieval accuracy on structured documents, they introduce higher index-building times, increased latency, and greater query costs compared to standard vector retrieval. Binary Quantization (BQ) is an embedding compression technique that converts float32 vectors into binary vectors, achieving a roughly 32x reduction in memory and storage. Major systems like Perplexity, Azure Search, and HubSpot use this method to enhance retrieval efficiency. In a demonstration setup, LlamaIndex handles orchestration, Milvus acts as the binary vector database using Hamming distance, and Kimi-K2 hosted on Groq performs response generation. Evaluating the pipeline over the 36M+ vector PubMed dataset demonstrated retrieval speeds under 30ms and end-to-end response generation in less than one second.
Read the original ↗Contents
Speculative decoding, now 2.6x faster on a MacBook:
Mirai demonstrated that running speculative decoding with DFlash and Weaver inside their Apple Silicon inference engine, Uzu, achieves 92.1 tokens per second on an M5 MacBook Pro with Qwen3.5 9B. This represents a 4x improvement over baseline decoding and a 2.6x speedup over standard speculative decoding. Weaver addresses the token-mismatch limitation of parallel drafters like DFlash by using a 56.7M parameter Transformer layer to build dependency-aware candidate trees verified in a single pass. Mirai has open-sourced this speculative decoding stack in Uzu for Apple Silicon devices.
- Qwen3.5 9B generated 92.1 tokens/s using DFlash + Weaver in Uzu on an M5 MacBook Pro, compared to 22.0 tokens/s without speculative decoding and 34.7 tokens/s with regular speculative decoding.
- DFlash generates token guesses in parallel across positions, but individual positions do not condition on preceding choices.
- Weaver is a 56.7M parameter, single-layer Transformer adapter that builds a tree of candidate tokens sequentially from DFlash's top predictions.
- Using Weaver on the MacBook Pro enabled the 9B model to produce an average of 7.5 tokens per verification pass instead of 1.
- On an Nvidia B200 GPU, the Weaver paper reports a 4.08x speedup over standard decoding across chat, math, and code benchmarks.
- Mirai open-sourced this inference stack within Uzu, an inference engine tailored for Apple Silicon.
RAG vs. Vectorless RAG, clearly explained!
Standard vector-based RAG struggles with structured, long-form documents like annual reports because similarity search often confuses structurally identical templates across different years and fails on cross-references. Vectorless RAG replaces embeddings and vector databases with an LLM-driven table of contents (ToC) tree index, enabling reasoning over document structure similar to how a human analyst navigates a report. While vectorless approaches like PageIndex improve retrieval accuracy on structured documents, they introduce higher index-building times, increased latency, and greater query costs compared to standard vector retrieval.
- Standard vector RAG often fails on recurring structured reports (e.g., annual 10-K filings) because chunks from different years match the query topic equally well.
- Cross-references (such as 'see Appendix G') cause standard vector search to miss target data since the referenced tables do not match query phrasing.
- Anthropic's contextual retrieval with a reranker reduced top-20 retrieval failures from 5.7% to 1.9%, but still fundamentally relies on text similarity.
- Vectorless RAG uses document layout to construct a ToC tree index containing section titles, page ranges, and summaries instead of chunking text.
- In a PageIndex benchmark over NVIDIA annual reports (FY2022–FY2026), tree retrieval answered 100% of 63 questions correctly at ~$110 per 1,000 queries, while top-10 vector search peaked at 76.2% accuracy at ~$15 per 1,000 queries.
- Building a ToC tree index is resource-intensive, requiring 2 to 5 minutes of LLM calls per document, making vector search preferable for short, unstructured texts like support tickets.
Make RAG systems 32x Memory Efficient!
Binary Quantization (BQ) is an embedding compression technique that converts float32 vectors into binary vectors, achieving a roughly 32x reduction in memory and storage. Major systems like Perplexity, Azure Search, and HubSpot use this method to enhance retrieval efficiency. In a demonstration setup, LlamaIndex handles orchestration, Milvus acts as the binary vector database using Hamming distance, and Kimi-K2 hosted on Groq performs response generation. Evaluating the pipeline over the 36M+ vector PubMed dataset demonstrated retrieval speeds under 30ms and end-to-end response generation in less than one second.
- Binary Quantization compresses standard float32 embeddings into binary vectors, achieving a 32x reduction in memory and storage.
- Hamming distance is used as the search metric to compare binary vectors during retrieval.
- The demonstration stack uses LlamaIndex for orchestration, Milvus as the vector database, and Kimi-K2 hosted via Groq for fast inference.
- Testing the setup on the PubMed dataset with over 36 million vectors yielded sub-30ms retrieval times and sub-second generation times.
- Industry systems utilizing binary quantization include Perplexity search indexes, Azure search pipelines, and HubSpot AI assistants.