2026-07-14 –, AI/ML
The quality of the retrieval component is what drives Retrieval-Augmented Generation (RAG) systems. Therefore, a well-structured, measurable, and robust retrieval pipeline is critical to building effective large language model (LLM) applications.
Working through guided code examples and hands-on experimentation, attendees will collectively develop, optimize, and enhance the performance of a complete RAG pipeline by improving retrieval in three stages: Pre-Retrieval, Mid-Retrieval, and Post-Retrieval. We will also cover structured and multimodal document parsing with Docling, systematic evaluation with RAGAS, and a capstone Agentic RAG demo using LangGraph. The toolkit integrates Qdrant for vector search and the LangChain ecosystem for orchestration and experimentation.
During the hands-on session, attendees will use Jupyter notebooks to learn about, experiment with, and benchmark techniques that produce significant improvements to retrieval quality using production-ready open-source libraries. At the end of the session, each participant will be equipped with a reusable “Retrieval Playground” framework that can be leveraged to design, evaluate, and continuously improve RAG systems across various application domains.
Installation Instructions: https://github.com/mahimaarora/retrieval-playground/tree/main/setup-guides
Retrieval is the foundation of modern LLM applications in science, engineering, and industry. However, most RAG implementations rely on naive chunking and basic vector similarity search, leading to brittle systems, hallucinations, and poor performance on structured and multimodal data.
This tutorial provides a structured, engineering-focused approach to optimizing retrieval pipelines using a practical framework, a modular Python toolkit for experimentation, benchmarking, and evaluation.
Participants will iteratively build a RAG pipeline and improve it across three stages:
- Pre-Retrieval Optimization - Preparing data and queries correctly
- Mid-Retrieval Optimization - Improving search quality and diversity
- Post-Retrieval Optimization - Filtering, refining, compressing, and assembling context before generation
We will also cover structured and multimodal parsing for RAG with Docling, including:
- Typed text, table, and image chunks from PDFs
- Hybrid Docling chunking alongside baseline, recursive, parent-child, and contextual strategies
- Multimodal-aware metadata for richer retrieval (without separate SQL or ad-hoc query pipelines)
The tutorial is designed for active coding, experimentation, and measurable benchmarking. More than 70% of the session is hands-on coding in Jupyter notebooks. Attendees will implement techniques step-by-step and evaluate performance improvements live.
Detailed Outline (4 Hours Total)
Part 1: Foundations - Lecture + Guided Setup (40 minutes)
- Introduction to Retrieval in RAG Systems
- Why retrieval fails in real-world systems
- The three-stage optimization framework
- Overview of the Retrieval Playground toolkit and notebook flow (1A → 5)
- Evaluation overview: retrieval, generation, and tool/agent metrics (RAGAS + custom)
- Dataset introduction
Part 2: Pre-Retrieval Optimization - Hands-On Notebook (50 minutes)
Document Chunking
- Recursive chunking
- Contextual
- Parent-child
- Docling-based structured and multimodal chunking (text, tables, images)Query Enhancement
- Query expansion
- Multi-query / RAG Fusion
- Query decomposition
- Query rewriting
- Step-back prompting
- Complexity classification and auto-orchestration
- Semantic routing
Part 3: Mid-Retrieval Optimization - Hands-On Notebook (60 minutes)
- Dense Search
- Hybrid Search
- Reranking
- Parent-Child Retrieval
- Multi-Query Hybrid
- Route-Driven Retrieval
- Adaptive Retrieval
Interval: 15 minutes
Part 4: Post-Retrieval, Evaluation & Agentic RAG - Hands-On Notebook (60 minutes)
Post-Retrieval Context Preparation
- Retrieval grading (relevant / irrelevant / ambiguous)
- Knowledge refinement (sentence- or passage-level tightening)
- Context compression (extractive and abstractive)
- Document assembly (stuff chain for final generation)Systematic Evaluation
- Classical retrieval checks (hit rate@k, MRR, keyword overlap)
- RAGAS context precision/recall, faithfulness and answer accuracy
- Tool-selection metrics from routing and agent traces
- Baseline vs post-retrieval A/B comparison and pipeline scorecard
- Agentic RAG Capstone (intro + demo)
- LangGraph ReAct agent with a retrieval tool backed by the workshop RAG stack
- Prompt-based routing (direct answers vs retrieval)
- Lightweight tool-selection evaluation
Final 15 Minutes: Wrap-Up, Future Directions and Q&A
- Best practices and limitations
- Production considerations and scaling strategies
- Open discussion and troubleshooting
Expected Level: Beginner to intermediate.
Target Audience: ML engineers, data scientists, developers working with LLMs in production, and anyone looking to learn how to build robust AI workflows using open source tools.
Participants should be comfortable with Python and Jupyter notebooks. Familiarity with embeddings or basic RAG concepts is helpful but not required.
Installation Instructions:https://github.com/mahimaarora/retrieval-playground/tree/main/setup-guides
Mahima Arora is a Senior Data Scientist on the Data & AI team at Red Hat, specializing in Generative AI applications. She develops AI-powered solutions that enhance efficiency and effectiveness, leading initiatives to optimize AI systems for greater impact. Passionate about open source, Mahima actively explores emerging tools and technologies to drive innovation and knowledge sharing, and has presented her work at PyData Amsterdam 2025 and PyCon India 2025.
Aarti Jha is a Principal Data Scientist at Red Hat, where she leads the development of AI-driven solutions that streamline internal operations and reduce costs. She has more than seven years of experience designing and deploying machine learning and generative AI solutions across multiple industries. A frequent speaker at developer and data science conferences, she shares practical insights on applied AI, LLMs, and building AI systems that deliver measurable business value.