
RAG vs Long Context: When Should You Put the Whole Corpus in the Prompt?
Long context puts the documents in the prompt and skips retrieval. RAG fetches only the passages that look relevant, then asks the model to answer from those. Use the whole prompt when the corpus is small and stable. Use retrieval when it is large, changing, or different for each user. Many production features do both.







































