WhoBuilt

RAG Agents in Prod: 10 Lessons We Learned

Apr 10, 2025· 17 min· 179K views·Watch on YouTube

Speaker

Douwe Kiela, CEO of Contextual AI and a researcher who pioneered RAG, shares lessons on putting RAG agents into enterprise production at AI Engineer.

Context is key to enterprise value

Kiela describes a gap between AI’s promise and the value businesses get from it: he cites a $4.4 trillion estimate and a study finding that only one in four businesses gets value from AI. He compares this to Moravec’s paradox: language models can excel at coding and math, yet struggle to apply information in the right context. He argues that enterprise AI needs context to move beyond convenience toward differentiated business value.

Build around expertise and data

Kiela says language models are only one part of a larger RAG system, and a strong pipeline can matter more than the model alone. Enterprises should specialize AI for domain expertise instead of relying on general-purpose assistants. He also calls company data its long-term moat, and argues that systems should handle noisy data at scale rather than depend on extensive cleanup.

Design for production and iterate early

A demo with a few documents and ten users can be easy, but production brings millions of documents, thousands of users, many use cases, and security and compliance requirements. Kiela recommends designing for production from the beginning. He also urges teams to release a barely functional system to real users early, then improve it through feedback rather than waiting for perfection.

Free engineers to focus on adoption

Kiela says engineers should spend less time on repetitive setup, such as choosing chunking strategies and prompts, and more time delivering business value. Enterprise AI also needs to fit into existing workflows so people can use it. He describes a Qualcomm deployment serving thousands of customer engineers, where one user found a seven-year-old document they had not known existed.

Track failures and aim for meaningful outcomes

Kiela says accuracy has a minimum bar, but teams also need to understand and manage the remaining errors. He recommends observability, audit trails, source attribution, and checking generated claims, especially in regulated industries. He encourages teams to pursue ambitious problems with real return on investment instead of limiting AI to basic questions such as vacation days.

Takeaways

  • Treat the model as one component in a system built to solve a specific business problem.
  • Specialize AI around your company’s expertise and make it work with real, noisy data.
  • Plan for production scale, security, and compliance from the start.
  • Put an early version in front of real users and improve it from their feedback.
  • Track sources and errors, and choose problems with meaningful business value.

Mentioned in this talk

Search inside this talk

What was claimed 4

Related talks