REFRAG beats prompt caching's exact-prefix limit, but 16x compression still won't fit your database in context
CShorten30 · x · 2026-10-05
In a podcast discussion on sparse attention and vector databases, CShorten30 explains: prompt caching reuses KV states only for an exact prefix, so reordering retrieved docs kills it; REFRAG instead precomputes one embedding per chunk that works in any prompt or order. But even 16x compression can't make "whole database in context" work — 1M docs at 500 tokens is 500M tokens, still 31M compressed. Search is here to stay.
More from Infra
- Baseten's 'Inference Engineering' book back in print, free copies at re:Invent — philipkiely · 2026-11-29
- Debate: inference demand makes H100s more valuable while NVDA stock heads south — teortaxesTex · 2026-11-29
- Prefetching MoE experts 2 layers ahead boosts V100 decode speed 29.9% — WaroftanksPro · 2026-11-29
- Leopold's $880K-per-H100 revenue claim vs "Nvidia has zero moat" draws flak — teortaxesTex · 2026-11-29
- JITEngine from Berkeley ecosystem synthesizes custom Mac LLM inference engines, up to 2.7x faster — CShorten30 · 2026-11-29
- Dev Uses Neon to Build 'ultra' CLI That Wraps Google Colab GPUs — andrew_n_carr · 2026-11-29