Session

How to Solve the Context Gap: Engineering Reliable AI Agents

Overview

ExperienceIn Person, Virtual
TrackArtificial Intelligence & Agents
IndustryEnterprise Technology, Communications, Media & Entertainment, Consulting & Services
TechnologiesDatabricks Agents
Skill LevelIntermediate
DOWNLOAD SESSION SLIDES

The biggest hurdle to production AI isn't the model — it's the context window. What an agent sees, when, and in what format determines whether it reasons correctly or hallucinates. Most teams stitch together RAG, tools, and state management ad hoc, then struggle to evaluate whether their context decisions actually work. This session is a deep dive into context engineering on Databricks: the systematic practice of designing what agents see at every step. You'll learn how to configure RAG systems that go beyond basic retrieval, use Model Context Protocol (MCP) for secure tool and API integration, and manage long-term memory across complex agent workflows. You'll leave with a playbook for building measurement pipelines that empirically evaluate your context decisions — and the patterns to ship agents that stay reliable when users, data, and tasks evolve.

Session Speakers

Badr Slimani

/Sr. AI Engineer, AI FDE
Databricks

Pradeep Ravi

/Manager - AI FDE
Databricks

Full Summary

Closing the context gap: how to engineer reliable AI agents at scale

Enterprises rarely struggle with model IQ. They struggle with what the model sees, when it sees it, and how that input is shaped. The session reframes agent building as context engineering, the discipline of curating instructions, tools, memory, and history so reliability, cost, and speed all improve.

FAQ


No. Accuracy often degrades as context grows, especially with ambiguity, distractors, or multi-step reasoning. Performance is also uneven across the window, so careful curation of what the model sees is more effective than simply adding tokens.

Use multi-agent designs when you need fresh, isolated context windows for complex subproblems or parallelism and single-agent approaches hit real limits. Multi-agent systems introduce coordination overhead, so apply them deliberately, not by default.

Progressive disclosure exposes only lightweight metadata, such as a skill's front matter or a tool's name and description, and loads full content only when the agent decides it is needed. Agents can access many capabilities at the token cost of one until activation.

Return typed, validated, and summarized outputs that are actionable. Avoid raw dumps and cryptic error traces. For errors, include hints that enable productive retries, such as the correct field or parameter.

Begin with managed options like Agent Bricks, Genie, and AI functions. If you need customization, prototype in AI Playground, add tools and MCPs, then export code and deploy as an app. Unity AI Gateway and MLflow provide guardrails and observability for production.