WhoBuilt

Forget RAG Pipelines, Build Production Ready Agents in 15 Mins

Jun 27, 2025· 1 h 16 min· 11K views·Watch on YouTube

Speakers

Rajiv Shah, chief evangelist, and Nina Lopatina, an NLP and language modeling specialist, at Contextual AI lead a hands-on AI Engineer workshop on building and evaluating a managed RAG agent.

Why manage RAG

Rajiv argues that teams can treat RAG as a managed service instead of assembling and maintaining every component themselves. He describes options for business users, developers who want to tune a pipeline, and teams that need individual components such as extraction or reranking.

Build an agent and query documents

Nina walks attendees through setting up a workspace, adding one API key, uploading NVIDIA financial reports and spurious correlation reports, and creating an agent. The demo answers questions across files, including when data center revenue overtook gaming revenue, and shows source attributions. It also illustrates how an agent can report a correlation found in documents while explaining that correlation does not establish causation.

Extraction, retrieval, and grounded answers

Rajiv and Nina describe how extraction errors in complex tables, charts, and PDFs can undermine later answers. Rajiv outlines query reformulation, hybrid semantic and lexical search, filtering, and reranking, with a typical flow that retrieves about 100 chunks and reranks them to 15. He also describes sentence-level groundedness checks that flag claims unsupported by retrieved context.

Evaluate and connect the agent

Nina demonstrates natural-language unit tests that score responses from one to five on criteria such as accuracy, evidence, and relevance. In one example, an answer with the correct NVIDIA revenue figure scored 2.2 on avoiding unnecessary information, suggesting a prompt change to make it briefer. Rajiv then shows how an MCP server can connect the agent to clients such as Claude Desktop or Cursor.

Deployment questions and constraints

In the Q&A, Rajiv says the platform supports APIs and a JavaScript SDK, and can run in a VPC; at the time of the workshop, AWS GovCloud and custom on-premises deployment were not available. The team identifies complex document extraction, scalability, and structured data as ongoing challenges. Nina describes research toward more dynamic RAG flows that choose retrieval tools and settings based on each query.

Takeaways

  • Treat extraction quality as an upstream requirement: errors in tables and charts can carry through to answers.
  • Use hybrid retrieval and reranking to narrow a broad candidate set before generation.
  • Show citations and check individual claims against retrieved context to help users assess answers.
  • Evaluate responses against concrete criteria, then use weak scores to guide prompt or configuration changes.
  • Match deployment and data governance requirements to current capabilities, especially for regulated or sovereign environments.

Mentioned in this talk

Search inside this talk

What was claimed 9

Show all 9 facts

Related talks