RAG vs CAG: Which Is More Reliable? OpenRouter Runs Tests on 40 Questions Across 3 Context Window Tiers
OpenRouter conducted real-world head-to-head tests for RAG and CAG across three context window tiers of 9K, 66K, and 330K tokens using 40 questions. CAG preloads knowledge into long contexts, while RAG retrieves relevant information on demand — the cost-benefit math shifts completely as the document scale ramps up.
OpenRouter ran a set of comparative experiments, testing 40 questions with RAG and CAG across three document size tiers of 9K, 66K and 330K tokens.
Virtually everyone is familiar with RAG: it pulls up relevant snippets based on the incoming question, then inserts those snippets into the model's context. CAG follows a much more direct logic: it preloads the full knowledge base into a long context, leverages caching to cut down redundant computations, and skips the online retrieval step whenever possible. Both approaches are built to solve the same core problem: how to equip the model with information it does not natively contain.
The biggest highlight of this experiment is its three different scale settings. The 9K tier works like a small cheat sheet, 66K is comparable to a full reference manual, and 330K is large enough to fit nearly an entire cabinet of reference materials on your desk. As the document library scales up, RAG faces inherent challenges around content chunking, recall accuracy and snippet assembly, while CAG runs up against bottlenecks in context cost and caching efficiency. The 40 test questions are not an overwhelming massive dataset, but they are more than enough to reveal clear performance trends for both approaches.
OpenRouter has published all full experimental conditions, with specific results and charts included in the original post. We will not draw a definitive conclusion on behalf of the team here. For developers building LLM applications, the most valuable insight from this comparison is how to calculate the practical tradeoffs: latency, cost, and accuracy, which of the three factors will hit a performance bottleneck first. As long context windows become far more affordable, CAG has started to draw serious trial efforts from many developers, but lower cost does not equal no cost.
Original post: RAG vs CAG
via AIHOT:https://aihot.news/items/rv7lgjzaibjjivjb70xxjmgju
发布时间: 2026-12-02 08:00