# Reaching 1B context length with RAG

- **ID:** 1112
- **Kind:** post
- **URL:** https://www.zyphra.com/post/reaching-1b-context-length-with-rag
- **Authors:** Nick Alonso, Beren Millidge
- **Venue:** Zyphra
- **Publisher:** Zyphra
- **Source:** web
- **Language:** en
- **Access:** free (public blog); method described at high level — full algorithm deferred to future work; no open weights claimed on page
- **Tags:** zyphra, rag, hash-hop, long-context, sparse-embeddings, personalized-pagerank, magic-ltm, 1b-context, vendor-blog
- **Topics:** ultra-long-context RAG; sparse graph retrieval; personalized PageRank over text chunks
- **Added:** 2026-09-02
- **Verified:** 2026-09-02
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/1112

## Summary

Zyphra research blog (2024-10-21, Palo Alto). Combines fast sparse embeddings with personalized-PageRank-style graph retrieval so only a small retrieved subset (~65 chunks / several thousand tokens) is fed to gpt-4o-mini. Reports near-perfect Hash-Hop accuracy through 1B tokens, matching/beating Magic LTM at 50M–100M while running embedding+retrieval on CPU. Contrasts with dense BERT embedders (gte-small/base/large) that embed much more slowly.

## Attributes

- **Purpose:** Demonstrate a CPU-friendly sparse-graph RAG system that extends off-the-shelf LLMs to ~1B-token contexts and achieves strong Hash-Hop results without modifying the generator model.
- **Scale:** Hash-Hop tested to 1B tokens (15–40 questions at 100M–1B; 100 questions at shorter lengths); retrieves 65 items per query; dense baselines: gte-small 33M / gte-base-en-v1.5 130M / gte-large-en-v1.5 500M on RTX 4090
- **Domain:** ultra-long-context RAG; sparse graph retrieval; personalized PageRank over text chunks
- **Used for:** ultra-long-context retrieval research; Hash-Hop evaluation; CPU-efficient RAG design
- **Time period:** 2024-10-21 (blog post date)
- **Author type:** lab (Zyphra)

## Research notes

- Primary: zyphra.com/post/reaching-1b-context-length-with-rag (WebFetch 2026-09-02; authors Nick Alonso, Beren Millidge; date Oct 21, 2024). Preliminary results blog; not a peer-reviewed paper. item_type=blog; source_url_type=web (catalog convention).

## Related entries

- Discussed in: [Long context: three bets and a weak spot in evaluation (overview)](https://papers.projxon.ai/entries/1208) (note, #1208)

## Similar entries

- [LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning](https://papers.projxon.ai/entries/821) (paper, #821)
- [Let's (not) just put things in Context: Test-Time Training for Long-Context LLMs](https://papers.projxon.ai/entries/533) (paper, #533)
- [Context Language Models](https://papers.projxon.ai/entries/793) (paper, #793)
- [pplx-embed-v2-context-9b-preview: contextual embedding beyond the gold passage](https://papers.projxon.ai/entries/825) (model, #825)
- [MoBA: Mixture of Block Attention for Long-Context LLMs](https://papers.projxon.ai/entries/707) (paper, #707)
- [From Local to Global: A Graph RAG Approach to Query-Focused Summarization](https://papers.projxon.ai/entries/572) (paper, #572)
