Ai4
Long-context models will not displace RAG due to unsustainable compute costs, leaving empirical retrieval optimization and hybrid routing as the only viable path to enterprise AI reliability.
AI-assisted summary of Improving Real Work RAG System: Key Challenges and Proven Solutions Wiith JP Morgan Chase — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published on YouTube by Ai4 on August 27, 2025, this presentation features Naresh Dulam, VP of Software Engineering at JP Morgan Chase. According to the video description, the session explores key failure points and practical architectural solutions for transitioning enterprise Retrieval-Augmented Generation (RAG) systems from proof-of-concept prototypes into production-grade pipelines.
## TL;DR Naresh Dulam systematically analyzes the core failure modes of enterprise RAG across ingestion, retrieval, and generation stages, demonstrating how production systems break down under real-world conditions. To resolve retrieval and context bottlenecks, he presents actionable techniques including semantic chunking, hyperparameter sweeps, hybrid search (BM25 combined with vector search), cross-encoder rerankers, and contextual compression. The presentation also details query expansion using HyDE, structured output enforcement, agentic fallback tools, and hallucination evaluation frameworks like Lynx. Finally, Dulam advocates for a hybrid self-routing architecture that dynamically chooses between lightweight RAG retrieval and long-context LLM fallbacks, underscoring that optimizing retrieval solves the vast majority of RAG challenges.
## Atmosphere & style The presentation maintains a pragmatic, measured, and practitioner-focused tone grounded in real-world systems architecture rather than theoretical hype. Dulam delivers his insights with clear, authoritative delivery, moving systematically through common failure modes and backing each with clear architectural diagrams and code demonstrations. Watching feels like attending an advanced engineering masterclass tailored for enterprise teams navigating the messy realities of production reliability and cost constraints.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=4s) Transitioning RAG applications from proof-of-concept prototypes to enterprise production exposes a critical reliability gap that degrades user trust. - [04:45](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=285s) Production RAG failures span three distinct lifecycle stages: ingestion (missing content), retrieval (missed top rank, context drop, incorrect specificity), and generation (failed extraction, malformed output). - [06:28](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=388s) Missing content should be mitigated via advanced upstream document extraction, strict prompt guardrails ('I do not know'), and agentic live tool fallback. - [15:14](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=914s) Advanced semantic and agentic chunking strategies preserve thematic boundaries far better than fixed-size character splits. - [15:14](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=914s) Empirical hyperparameter tuning of chunk sizes, overlap, and Top-K thresholds against SME-curated golden evaluation sets maximizes retrieval yield without code refactoring. - [17:59](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1079s) Public embedding benchmarks like MTEB do not reliably reflect enterprise performance, requiring teams to evaluate embedding models directly on internal domain datasets. - [19:10](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1150s) Hybrid search combining dense semantic vectors with sparse keyword search (BM25), paired with cross-encoder rerankers, resolves retrieval failures on precise technical queries. - [21:59](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1319s) Contextual compression Prunes irrelevant tokens through extractors and filters, preventing cognitive overload and attention degradation in LLMs. - [23:37](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1417s) Eliminating downstream parsing failures requires structured output frameworks, Pydantic/JSON parsers, or native model constrained decoding. - [26:13](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1573s) Hypothetical Document Embeddings (HyDE) resolve query-document mismatches by generating idealized synthetic answers to execute document-to-document vector matching. - [28:23](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1703s) Long-context LLMs will not make RAG obsolete due to tokenomics and latency; enterprise architectures should adopt hybrid self-routing RAG pipelines that fallback to long-context windows only when needed. - [31:01](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1861s) RAG is fundamentally a retrieval engineering problem, and optimizing retrieval strategies resolves the vast majority of enterprise RAG performance issues.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=4s) Introduction and the Reality of Enterprise RAG
Naresh Dulam opens his presentation at AI4 2025 in Las Vegas by reflecting on the widespread evolution of Retrieval-Augmented Generation (RAG) systems from proof-of-concept (POC) prototypes and academic research into real-world production systems. Asking how many in the audience have built real-world RAG applications, he highlights the shared pain points across the industry. Moving from an initial prototype to production reveals a massive reliability gap: applications begin failing under real enterprise conditions, leading to broken workflows and a breakdown of user trust.
Dulam introduces his background as an AI and platform architect with 16 years of experience working across cloud infrastructure, big data, and machine learning, combining engineering, strategy, and system architecture. He issues a standard disclaimer noting that his views are his own and do not represent his current or former employers. He also explains that due to a scheduled press announcement with a startup founder immediately following the session, he will handle questions via LinkedIn rather than taking a live Q&A at the end.
```mermaid flowchart LR accTitle: Transition from POC to Production RAG subgraph POC["Proof of Concept Phase"] A["Simple Vector Search"] --> B["Toy Datasets"] end subgraph Gap["Enterprise Gap"] B -. "Brittle in Production".-> C["Production Failures / User Trust Loss"] end subgraph Prod["Production Architecture"] C --> D["Advanced Chunking & Hyperparameter Tuning"] D --> E["Robust Enterprise RAG Pipeline"] end ```
---
[02:37](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=157s) Anatomy of a RAG System
Dulam provides a foundational walkthrough of standard RAG mechanics for context. RAG serves as an interface connecting private enterprise data to large language models (LLMs), ensuring the model produces responses that are contextually relevant and reflect the specific business domain rather than generic or vague general knowledge.
The architecture operates as a two-step pipeline: 1. **Ingestion & Storage:** Enterprise data is ingested, broken down into smaller chunks, converted into numerical vector embeddings, and indexed within a storage layer (typically a vector database, though relational databases or object stores can also be used). 2. **Retrieval & Generation:** A user query searches the storage layer, retrieves top relevant text passages, injects these passages alongside the original query into a prompt context, and feeds the bundle to the LLM to generate a grounded response.
```mermaid flowchart TD accTitle: High-Level RAG Architecture subgraph Ingestion["1. Ingestion Phase"] D1["Enterprise Data"] --> D2["Chunking"] D2 --> D3["Embedding Generation"] D3 --> D4["Vector Store / DB"] end subgraph Query["2. Retrieval & Generation Phase"] Q1["User Question"] --> Q2["Vector Search"] D4 --> Q2 Q2 --> Q3["Retrieved Context + Question"] Q3 --> Q4["LLM"] Q4 --> Q5["Grounded Output"] end ```
---
[04:45](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=285s) The Seven Failure Points in Production RAG
Drawing inspiration from the research paper *"Seven Failure Points in Engineering Retrieval-Augmented Generation Systems"*, Dulam structures the core vulnerabilities of enterprise RAG into three distinct lifecycle stages:
```mermaid flowchart TD accTitle: Critical Failure Points in RAG subgraph IngestFail["Ingestion Stage"] F1["Missing Content: Data absent from knowledge base"] end subgraph RetFail["Retrieval Stage"] F2["Missed Top Rank: Information filtered out before reaching prompt"] F3["Not in Context: Lost during consolidation"] F4["Incorrect Specificity: Query or retrieved docs too vague"] end subgraph GenFail["Generation Stage"] F5["Not Extracted: LLM overwhelmed by noise/contradiction"] F6["Incomplete / Wrong Format: LLM fails to structure output"] end IngestFail --> RetFail --> GenFail ```
- **Missing Content:** The source documentation required to answer the query does not exist in the database, leading the model to hallucinate incorrect answers with unwarranted confidence. - **Missed Top Rank:** The necessary data exists in the corpus but is scored too low by ranking metrics, causing it to fall outside the top-K retrieval window. - **Not in Context:** Relevant chunks are retrieved in preliminary search stages but dropped during post-processing or context consolidation. - **Incorrect Specificity:** Vague user queries yield overly broad documents, preventing the system from delivering precise answers. - **Not Extracted:** Context chunks are passed to the model, but high semantic noise, document clutter, or contradictory information prevents the LLM from locating the relevant facts. - **Wrong Format & Incompleteness:** The output fails downstream structural parsers or omits key dimensions of the required answer.
---
[06:28](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=388s) Remedying Missing Content: Extraction, Guardrails, and Agents
When information is entirely absent from the internal store, out-of-the-box LLMs frequently hallucinate fabricated responses with high confidence, frustrating end users. Dulam outlines three primary approaches to resolve missing content:
1. **Upstream Ingestion and Extraction Tools:** Enterprise documents are frequently scattered across varied, messy formats (such as complex PDFs or unstructured scans). Leveraging advanced parsing tools such as Unstructured.io or LandingAI ensures accurate structural and text extraction before chunking. 2. **Defensive Prompt Guardrails:** Instead of permitting the model to rely on parametric training data when context is absent, the prompt should explicitly instruct the LLM: *"If you do not find the answer in the provided context, do not assume or hallucinate; reply with 'I do not know'."* Dulam presents an empirical example where a prompt is provided with context about cricket but asked about a European football championship; without guardrails, the model answers using internal parametric memory, bypassing the retrieval constraint. 3. **Agentic RAG with Live Fallback Tools:** When a vector store lacks the required context, the pipeline dynamically pivots to external retrieval agents.
```mermaid flowchart TD accTitle: Agentic Fallback Architecture for Missing Content Q["User Question"] --> VS["Search Internal Vector Store"] VS --> Check{"Context Found?"} Check -- "Yes" --> Prompt["Assemble Internal Context"] Check -- "No" --> Agent["Agent Tool Execution (Web Search / API)"] Agent --> ExtContext["External Context Retrieved"] ExtContext --> Prompt Prompt --> LLM["LLM Generation"] ```
- In Dulam’s LangChain demonstration, the model binds an external search tool (such as Tavily search). If the internal vector database returns insufficient context, the agent autonomously executes an external web search to pull fresh facts before answering.
---
[11:15](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=675s) Tackling Retrieval Failures: Ranking, Noise, and Specificity
Dulam clusters several interrelated retrieval bottlenecks that prevent valid data from reaching the final generation step: - **Missed Top-K Ranking:** Valuable passages are penalized by rigid search metrics. - **Not in Context:** The material is pulled during initial lookup but discarded by aggressive or flawed consolidation filters. - **Extraction Failures Due to Noise:** Context windows clogged with irrelevant tokens or contradictory statements confuse the LLM's internal attention mechanism. - **Vague User Queries:** Low-specificity prompts retrieve low-specificity chunks.
To systematically mitigate these issues, Dulam introduces an integrated set of retrieval optimization strategies:
| Strategy | Operational Mechanism | Enterprise Impact | |:--- |:--- |:--- | | **Advanced Chunking** | Moves beyond basic character counts to structural or semantic boundaries. | Preserves cohesive semantic context within individual chunks. | | **Hyperparameter Tuning** | Empirically sweeps chunk size, chunk overlap, and Top-K values. | Maximizes retrieval yield without code refactoring. | | **Modern Embedding Models** | Adopts top-ranking models evaluated on standard benchmarks. | Upgrades dense vector representations and domain alignment. | | **Contextual Compression** | Strips out non-essential tokens from retrieved passages before context packing. | Minimizes noise and avoids conflicting context passed to the LLM. | | **Cross-Encoder Rerankers** | Re-scores retrieved candidate chunks against the prompt before prompt injection. | Elevates high-relevance chunks to the top positions in the context window. |
---
[15:14](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=914s) Chunking Strategies and Hyperparameter Optimization
Dulam breaks down the hierarchy of chunking strategies in order of ascending complexity:
```mermaid flowchart TD accTitle: Chunking Strategies Complexity Hierarchy subgraph Basic["Basic Strategies (Common in POCs)"] C1["Fixed-size Character Chunking"] C2["Recursive Character Text Chunking"] C3["Document-Structure / Markdown Chunking"] end subgraph Advanced["Advanced Production Strategies"] C4["Semantic Chunking (Embedding Distance / Semantic Breakpoints)"] C5["Agentic Chunking (LLM-driven contextual boundary parsing)"] end Basic --> Advanced ```
- **Semantic Chunking:** Analyzes semantic distance between consecutive sentences, generating splits only when thematic topics change. Dulam highlights semantic chunking as delivering substantial empirical improvements in real enterprise workloads. - **Agentic Chunking:** Uses an LLM agent instructed with boundary logic to read documents and dynamically determine chunk boundaries based on complete semantic ideas.
For **Hyperparameter Tuning**, Dulam emphasizes that teams often overlook basic parameter sweeps that require zero architectural rewrites: - **Chunk Size & Overlap Sweeps:** Testing various token lengths (e.g., 256, 512, 1024) across enterprise document formats. Dulam notes there is no universal rule of thumb—optimal sizes depend directly on the dataset. - **Top-K & Similarity Thresholds:** Establishing strict similarity cutoff percentages (such as setting minimum match thresholds at 70% or 80%) to drop irrelevant chunks, combined with varying the number of retrieved items (Top-3 vs. Top-5). - **Golden Evaluation Sets:** Optimization requires building SME-curated ground truth sets (Golden Q&As) and running evaluation frameworks like DeepEval to objectively score generated responses against domain-expert benchmarks.
---
[17:59](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1079s) Embedding Selection and Advanced Retrieval Thresholds
Selecting modern embedding models is essential, as newer embeddings are trained on richer, more diverse datasets that map complex enterprise queries more effectively. However, Dulam warns practitioners not to rely solely on public benchmarks like the MTEB Leaderboard: - Public benchmark rankings do not always mirror domain-specific enterprise data performance; teams must run local experiments against their own internal datasets. - Enterprise data privacy and compliance constraints often prevent the use of closed commercial APIs, necessitating locally hosted, high-performance open-source embedding models. - **Similarity Threshold Filtering:** Advanced retrieval pipelines should reject any vector match falling below strict thresholds (such as an 80% cosine similarity cutoff) to prevent low-confidence noise from entering the prompt context.
[19:10](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1150s) Advanced Retrieval Strategies: Multi-Query, Hybrid Search, and Cross-Encoder Rerankers
Setting strict similarity thresholds (such as 70% similarity) prevents low-relevance documents from polluting downstream context. When end users submit vague or poorly phrased prompts, multi-query retrieval can intercept and expand the input. The system automatically identifies ambiguity, rephrases the prompt, and generates multiple query variations to execute against the vector store. Aggregating documents retrieved across these diverse query angles surfaces substantially better source material, progressively improving response quality over time.
Pure semantic vector search frequently fails on precise technical queries, such as looking up explicit hardware configurations, RAM specifications, or hard drive capacities. In these cases, keyword search is indispensable. A hybrid search strategy bridges this gap by combining dense semantic embeddings with sparse keyword search (e.g., BM25). Chaining hybrid retrieval with dedicated cross-encoder reranker models provides a second layer of precision. Unlike standard bi-encoders that independently evaluate semantic similarity, cross-encoders process the query and candidate documents simultaneously to score actual relevancy.
```mermaid flowchart TD accTitle: Hybrid Retrieval and Reranking Pipeline subgraph IN["Input & Expansion"] Q["User Query"] --> MQ["Multi-Query Expansion"] end subgraph RET["Hybrid Retrieval"] MQ --> D1["Semantic Search"] MQ --> D2["Keyword Search"] end subgraph PROC["Filtering & Reranking"] D1 & D2 --> HYB["Candidate Pool"] HYB --> RE["Cross-Encoder Reranker"] RE --> FILT["Top-K Relevant Docs"] end ```
- "RAG is a problem of retrieval. If you can solve the retrieval problem, you will solve your RAG challenges." - Re-rankers function as cross-encoders that directly compute query-document relevancy scores rather than isolated semantic vector distance. - Sequential chaining combines multi-query generation, hybrid retrieval, similarity threshold filtering, and cross-encoder reranking before generating responses.
---
[21:59](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1319s) Contextual Compression: Extractors vs. Filters
Contextual saturation degrades LLM performance just as cognitive overload impairs humans. When too much irrelevant text is packed into a prompt, models become confused and generate unfocused answers. Contextual compression mitigates this by pruning retrieved context before sending it to the generation stage, using two primary mechanisms: extractors and filters. Extractors scan retrieved chunks and pull out only the precise sentences or passages related to the user's intent. Filters discard entire document chunks or sections deemed irrelevant.
```mermaid flowchart LR accTitle: Contextual Compression Workflow subgraph RET["Retrieved Candidates"] D["Multi-Doc Candidates"] end subgraph COMP["Contextual Compression"] EXT["Extractor: Pull Relevant Text"] FIL["Filter: Prune Irrelevant Chunks"] end subgraph OUT["Final Context"] FC["Distilled Context to LLM"] end D --> EXT & FIL EXT & FIL --> FC ```
To illustrate, consider a user asking a general question about the capital of India. Retrieved search results may contain references to administrative, financial, or historical capitals. Passing all three documents to a contextual compression layer allows an intermediary LLM to filter out the irrelevant commercial or cultural contexts, isolating only the official administrative capital document for final answer generation.
- Contextual compression operates via two core patterns: fine-grained *extractors* (sub-chunk text extraction) and coarse-grained *filters* (dropping entire unneeded chunks). - Selecting between extraction and filtering requires empirical experimentation against domain-specific dataset benchmarks.
---
[23:37](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1417s) Eliminating Output Formatting Failures with Structured Frameworks
A persistent failure mode in production RAG systems is the model failing to adhere to structured schemas, such as producing invalid JSON, malformed XML, or unstructured raw text when structured data is required for downstream automation.
Addressing formatting issues requires a multi-tiered approach: 1. **Native Model Capabilities:** Modern foundation models (such as GPT-4o) include out-of-the-box structured output enforcement and JSON mode capabilities via improved system prompts. 2. **Framework Parsers:** Orchestration frameworks like LangChain provide modular output parsers (String, CSV, Pydantic, and JSON parsers) that enforce validation and can be extended with custom parsing logic. 3. **Dedicated Structured Output Frameworks:** Lightweight dedicated libraries (such as Fructose) enforce rigid response schemas directly through function calling and constrained decoding.
---
[26:13](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1573s) Incomplete Responses and Query Rewriting via HyDE
Incomplete or inaccurate responses frequently occur during the output generation phase when vague user queries prevent the model from reasoning effectively over the retrieved data. Remediating incomplete generations requires pairing advanced prompting strategies—such as Chain-of-Thought (CoT) and self-consistency—with agentic systems equipped with external lookup tools to retrieve missing data dynamically.
Hypothetical Document Embeddings (HyDE) provide an effective query-rewriting technique. Instead of searching directly with a brief or ambiguous user query, HyDE prompts an LLM to hallucinate a theoretical, idealized answer document. Even if factually imperfect, this hypothetical answer contains the semantic structure, technical terminology, and contextual patterns of a real answer. The hypothetical document is embedded and matched against the vector database, surfacing candidate documents with higher relevance before passing them to the final generation prompt.
```mermaid flowchart TD accTitle: Hypothetical Document Embeddings Pipeline subgraph HYDE_STAGE["HyDE Query Transformation"] Q["Vague User Query"] --> LLM_GEN["LLM Generates Hypothetical Answer"] LLM_GEN --> HYP["Hypothetical Document"] HYP --> EMB["Embed Hypothetical Document"] end subgraph RET_STAGE["Vector Retrieval"] EMB --> VS[("Vector Database")] VS --> RET_DOCS["Target Source Documents"] end subgraph FINAL_STAGE["Final Generation"] RET_DOCS & Q --> FINAL_LLM["Final RAG Generation"] FINAL_LLM --> ANS["Precise Output"] end ```
- HyDE bypasses query-to-document embedding mismatches by performing document-to-document vector similarity search. - Advanced reasoning techniques like Chain-of-Thought and Self-Consistency should be integrated into generation prompts to minimize reasoning drop-off.
---
[28:23](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1703s) RAG vs. Long-Context LLMs: The Hybrid Self-Routing Solution
Despite claims that million-token long-context models make RAG obsolete, context stuffing introduces severe operational challenges. Processing entire document corpora in prompt windows creates unsustainable compute costs—a dynamic prompting industry focus on "tokenomics"—and often introduces latency and "lost in the middle" attention degradations.
The optimal architecture is a hybrid self-routing RAG pipeline. The system first retrieves targeted chunks using cost-effective standard RAG. A lightweight decision node LLM evaluates whether the retrieved chunks are sufficient to answer the prompt. If sufficient, standard generation proceeds; if judged incomplete, the pipeline falls back to a long-context LLM, loading the broader document set into memory.
```mermaid flowchart TD accTitle: Hybrid Self-Routing RAG vs Long-Context Architecture subgraph ROUTE["Initial RAG & Evaluation"] Q["User Query"] --> RET["Standard RAG Retrieval"] RET --> DEC{"Decision Node: Context Sufficient?"} end subgraph BRANCH["Execution Paths"] DEC -- "Yes" --> GEN["Standard Generation"] DEC -- "No" --> LC["Long-Context Window Fallback"] end subgraph EVAL["Validation"] GEN & LC --> HC["Hallucination Check (Lynx / Patronus AI)"] HC --> OUT["Final Verified Output"] end ```
- Native hallucination detection in models like GPT-4, alongside specialized evaluation models like Lynx from Patronus AI, should inspect generated responses before they reach users. - Hybrid routing balances cost and precision by prioritizing low-token RAG retrieval and reserving full context windows for complex fallback cases.
---
[31:01](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1861s) Production RAG Recommendations and Strategic Outlook
Building reliable enterprise RAG pipelines requires treating RAG primarily as a retrieval engineering discipline. "If you can solve the retrieval challenge, the 90% of your RAG is solved." Achieving production-grade reliability depends on systematically tuning retrieval parameters rather than relying on framework defaults.
- **Systematic Evaluation:** Maintain dedicated, domain-specific evaluation datasets to continuously benchmark system quality and guard against performance regressions. - **Hyperparameter Experimentation:** Rigorously test and tune chunk sizes, chunk overlap, top-$K$ cutoffs, and similarity thresholds rather than sticking to default configuration values. - **Long-Term Role of RAG:** Long-context LLMs will not replace RAG; RAG remains critical for cost optimization, fine-grained access control, and latency management. - **Future Directions:** Enterprise architectures are shifting toward tool-enabled agentic RAG workflows and domain-fine-tuned retrieval models.
## Notable quotes > [06:28](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=388s) If you do not find the answer in the provided context, do not assume or hallucinate; reply with 'I do not know'. — Naresh Dulam
> [15:14](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=914s) There is no universal rule of thumb—optimal sizes depend directly on the dataset. — Naresh Dulam
> [17:59](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1079s) Public benchmark rankings do not always mirror domain-specific enterprise data performance; teams must run local experiments against their own internal datasets. — Naresh Dulam
> [19:10](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1150s) RAG is a problem of retrieval. If you can solve the retrieval problem, you will solve your RAG challenges. — Naresh Dulam
> [19:10](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1150s) Re-rankers function as cross-encoders that directly compute query-document relevancy scores rather than isolated semantic vector distance. — Naresh Dulam
> [21:59](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1319s) Contextual saturation degrades LLM performance just as cognitive overload impairs humans. — Naresh Dulam
> [26:13](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1573s) HyDE bypasses query-to-document embedding mismatches by performing document-to-document vector similarity search. — Naresh Dulam
> [31:01](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1861s) If you can solve the retrieval challenge, the 90% of your RAG is solved. — Naresh Dulam
> [31:01](https://www.youtube.com/watch?v=ZExf9aiD4R4&t=1861s) Long-context LLMs will not replace RAG; RAG remains critical for cost optimization, fine-grained access control, and latency management. — Naresh Dulam
## Mentioned Naresh Dulam, JP Morgan Chase, Ai4, Seven Failure Points in Engineering Retrieval-Augmented Generation Systems, Unstructured.io, LandingAI, LangChain, Tavily, DeepEval, MTEB Leaderboard, BM25, Fructose, Pydantic, HyDE, GPT-4, GPT-4o, Lynx, Patronus AI
## Video description Naresh Dulam, VP of Software Engineering, JP Morgan Chase
Abstracts
Improving Real-World RAG Systems explores key challenges and practical solutions for enhancing Retrieval-Augmented Generation (RAG) pipelines. The presentation identifies critical failure points including missing content, poor retrieval ranking, context consolidation errors, and LLM output issues (hallucinations, formatting errors, incompleteness). It addresses these with actionable strategies like advanced chunking techniques, hybrid search (semantic + keyword), context compression, and modern embedding models (highlighting the MTEB Leaderboard). The deck emphasizes agentic RAG systems that leverage live data tools and structured output frameworks (e.g., LangChain parsers) to mitigate missing context. It discusses tradeoffs between RAG and long-context LLMs (cost vs. performance), advocating hybrid approaches with self-routing systems. Practical solutions include Hyperparameter tuning (chunk size, top-K thresholds), HyDE for query rewriting, and hallucination detection tools like Lynx. The presentation stresses the importance of evaluation metrics, domain-specific fine-tuning, and recent research insights while maintaining cost-effectiveness. Key takeaways position RAG as fundamentally a retrieval optimization challenge, urging practitioners to prioritize experimentation with chunking/retrieval strategies over default configurations, despite advancements in long-context models. Target audience: AI engineers and enterprise teams implementing production-grade RAG systems.
[Source](https://www.youtube.com/watch?v=ZExf9aiD4R4)