Watch and track your favorite playlist.
Curated by: Padho with Pratyush (43 videos)
Chunking is the hidden reason 80% of RAG systems fail in production. In this tutorial you'll learn 4 chunking strategies with hands-on Python code - fixed size, paragraph-based, recursive character splitting, and markdown-aware splitting. Plus how to pick chunk size and overlap the right way. Episode 16 of the free 8-week AI Engineer Course designed to get you hired in 2026. WHY CHUNKING MATTERS MORE THAN YOU THINK: Every senior RAG engineer will tell you the same thing - you spend more time tuning chunking than any other RAG component. Get chunking right and mediocre retrieval works fine. Get chunking wrong and no amount of advanced retrieval, reranking, or better embeddings will save you. Most tutorials skip this entirely or reduce it to "split every 500 characters" - which is exactly why so many production RAG systems return wrong answers. WHAT YOU WILL LEARN IN THIS EPISODE: - Why chunking is the #1 hidden cause of bad RAG systems - 4 chunking strategies compared live on the same document - Fixed-size splitting - why it's terrible and when it might still work - Paragraph-based splitting - the intuitive but flawed middle ground - Recursive character splitting - the workhorse used in 80% of production RAG - Markdown-aware splitting - the best choice for docs, wikis, and tutorials - The chunk size + overlap decision framework - Why you should always think in tokens, not characters - The chunking strategy decision tree by content type (prose, docs, code, transcripts) WHAT WE BUILD IN THIS EPISODE: Two Python scripts that make chunking trade-offs immediately visible: 1. Chunking Strategies Comparison - see the same text split 4 different ways, watch code blocks get mangled by naive splitters 2. Chunk Size Tuning - see how the same text produces wildly different chunks based on size and overlap settings INTERVIEW QUESTIONS THIS EPISODE PREPARES YOU FOR: - What chunking strategies are there and when do you use each? - What is chunk overlap and why does it matter? - How do you decide chunk size? - What is parent-child chunking? - Why does chunking impact retrieval quality? - Chunk size in tokens or characters? If you can answer these clearly after this episode, you are ahead of most AI Engineer candidates in the market. THE KEY MENTAL MODEL: Chunking is like cutting a big dosa before serving. Cut too small and it's not filling. Cut too big and it's hard to eat. Cut across the middle and it becomes messy. There is a right way based on what the eater will do with it. Same with LLMs eating chunks - the right chunking strategy depends entirely on your content type and query patterns. THE PRODUCTION DEFAULT: For most RAG projects, start with RecursiveCharacterTextSplitter at 500 tokens (approximately 2000 characters) with 50 token overlap. Ship it. Measure with evaluation. Tune from there. Do not over-optimize chunking upfront - real teams iterate based on eval data, they do not guess the perfect number. COURSE STRUCTURE: Week 1: LLM Fundamentals + API Mastery (done) Week 2: Prompt Engineering + Streaming + Portfolio AI (done) Week 3: RAG Foundations (you are here) Week 4: Advanced RAG + Evaluation with RAGAS Week 5: Agents + Tool Use with LangGraph Week 6: LangGraph + MCP + Multi-Agent Systems Week 7: Observability + Guardrails + Security Week 8: Deployment + Fine-Tuning + Capstone Project Bonus: Interview Prep + Resume Building WHO THIS COURSE IS FOR: - B.Tech final year students targeting AI Engineer placements - Working SDEs