WhoBuilt

AI System Design: From Idea to Production

Jun 28, 2026· 29 min· 9.5K views·Watch on YouTube

Speaker

Apoorva Joshi, a data scientist turned developer advocate at MongoDB, presents at AI Engineer on a repeatable approach to designing AI systems from idea to production.

Start with requirements

Joshi argues that shipping AI-generated code without clear requirements is risky when people depend on the system. She lays out four phases: product requirements, system design, evaluation and monitoring, and optimization for cost, latency, and reliability. Her example is a claims review system intended to help medical reviewers.

Define the claims system’s constraints and data

The business problem is that MDB Health reviewers take an average of two days to process claims, delaying care. Requirements include keeping patient data in an approved cloud, using approved models, and requiring human review for complex cases and denials. The system needs clinical guidelines, coverage policies, and patient claims history; the first two could be chunked and embedded for retrieval, while claims history is already stored in MongoDB.

Choose a simple, controlled design

The proposed workflow retrieves relevant guidelines, policies, and patient history, then gives that context to an LLM for an approval or denial recommendation. Complex cases and denials go to human reviewers, and the decision and reasoning are logged. Joshi identifies RAG, a controlled workflow, and human-in-the-loop review as fitting patterns, and recommends starting simply before adding complexity.

Evaluate, monitor, and optimize

Joshi distinguishes offline evaluation from production monitoring and recommends defining guardrails for invalid inputs and outputs, including missing citations. Suggested measures include faithfulness to retrieved sources, claim processing time, cost per recommendation, reviewer overrides, and review time. For production, she highlights reranking, semantic caching, batch processing, and structured outputs as techniques relevant to the example.

Takeaways

  • Write measurable, solution-agnostic product requirements before generating code.
  • Identify data, regulatory, cloud, latency, and cost constraints before choosing architecture or tools.
  • Start with the simplest workflow that meets the requirements, then use evaluation results to guide changes.
  • Measure quality and system health before launch, and keep monitoring for regressions and reviewer overrides.
  • Use citations and structured outputs to make AI recommendations easier to check and handle reliably.

Mentioned in this talk

Search inside this talk

What was claimed 3

  • works at
    developer advocate
    “currently at MongoDB”
    YouTube
    Verified5 sources· Talk, Web· archived
  • uses
    “this definitely looks like a RAG component, so we need some form of RAG”
    YouTube
    Unverified1 source· Talk
  • feature
    MongoDB GenAI Cookbook: Examples of retrieval techniques, agentic design patterns, evaluation, and optimization
    “has a ton of examples of different retrieval techniques, agentic design patterns, and some of the evaluation and optimization techniques”
    YouTube
    Unverified1 source· Talk

Related talks