← All questions
RAGHard· Context Window· Latency· Accuracy

Why not simply paste all documentation into a large con...

The appeal of large context windows is the removal of index management and staleness issues. However, the cost is prohibitive: prefill at 2N tokens makes a large corpus thousands of times more expensive per query than a standard retrieval approach. Furthermore, accuracy often drops when information is buried in the middle of a long context, and larger windows do not guarantee better performance in utilizing that content.

Code playground (Python)