https://www.youtube.com/watch?v=2nLUJ_961jE&t=291s
Conversations, Context Windows & Debugging
flowchart LR
A[Long-Context vs RAG] --> B[Conversational RAG]
B --> C[Debugging & Failures]
C --> D[Edge Cases]
D --> E[Observability]
This video assumes you have a working RAG system. You understand chunking, vector databases, hybrid search, and re-ranking. Your system works on your test queries. Today we tackle what happens when real users interact with that system in production.
The problems we address are the ones tutorials do not prepare you for. Your single-turn demo works perfectly, but production users have conversations. They ask follow-up questions. They reference previous answers. They expect the system to remember context. Meanwhile, context windows have exploded to hundreds of thousands of tokens, and everyone is asking whether RAG is even necessary anymore.
We will start with the long-context versus RAG debate and give you a concrete decision framework. Then we will build production-grade conversational RAG architecture that handles multi-turn interactions at scale. We will develop a systematic debugging methodology because “my RAG gives wrong answers” is not actionable. Finally, we will cover edge case handling and observability patterns that separate demos from production systems.
By the end of this video, you will have the tools to handle real user interactions, diagnose failures systematically, and build RAG systems that gracefully handle the messy reality of production traffic.
Senior Software Engineer & Tech Lead, Microsoft MS in Computer Science, University of Oxford
flowchart LR
A[GPT-4: 128K] --> B[Claude: 200K]
B --> C[Gemini: 1M+]
C --> D[Is RAG Dead?]
Context windows have grown dramatically over the past two years. GPT-4 Turbo supports 128,000 tokens. Claude offers 200,000 tokens. Gemini Pro provides over one million tokens. This is enough to fit entire books, complete codebases, or thousands of documents in a single prompt. The natural question everyone is asking: if we can just stuff everything into the context window, why bother with retrieval at all?
This question deserves a serious answer because the naive response of “RAG is still necessary” misses important nuance. For certain use cases, long-context models genuinely do replace RAG. If your corpus is small enough to fit in context, if you need cross-document synthesis, if your queries require reasoning across many sources simultaneously, then stuffing context may be simpler and more effective than building retrieval infrastructure.
But the question is not whether long-context can replace RAG. The question is when it should replace RAG, when RAG still wins, and when you need both. The answer depends on four factors: corpus size, cost constraints, latency requirements, and precision needs. We will build a decision framework that accounts for all four.