read-only demo

Videos T0HhO4YtTfE

AI System Design: From Idea to Production - Apoorva Joshi, MongoDB

index_state ready data_status ok

AI Engineer· published 2026-06-28· 0:28:52· en-US· indexed 2026-08-11 07:52

Open on YouTube

Scene timeline

  1. Shot 0, 0:00 to 0:24, 1 of 1 keyframes kept
  2. Shot 1, 0:24 to 0:44, 1 of 1 keyframes kept
  3. Shot 2, 0:44 to 1:29, 1 of 1 keyframes kept
  4. Shot 3, 1:29 to 1:47, 1 of 1 keyframes kept
  5. Shot 4, 1:47 to 2:28, 1 of 1 keyframes kept
  6. Shot 5, 2:28 to 2:48, 1 of 1 keyframes kept
  7. Shot 6, 2:48 to 3:36, 1 of 1 keyframes kept
  8. Shot 7, 3:36 to 3:44, 1 of 1 keyframes kept
  9. Shot 8, 3:44 to 4:12, 1 of 1 keyframes kept
  10. Shot 9, 4:12 to 4:40, 0 of 1 keyframes kept
  11. Shot 10, 4:40 to 5:08, 0 of 1 keyframes kept
  12. Shot 11, 5:08 to 5:39, 1 of 1 keyframes kept
  13. Shot 12, 5:39 to 6:10, 0 of 1 keyframes kept
  14. Shot 13, 6:10 to 6:29, 1 of 1 keyframes kept
  15. Shot 14, 6:29 to 6:57, 1 of 1 keyframes kept
  16. Shot 15, 6:57 to 7:26, 0 of 1 keyframes kept
  17. Shot 16, 7:26 to 7:59, 1 of 1 keyframes kept
  18. Shot 17, 7:59 to 8:32, 0 of 1 keyframes kept
  19. Shot 18, 8:32 to 8:57, 1 of 1 keyframes kept
  20. Shot 19, 8:57 to 9:45, 1 of 1 keyframes kept
  21. Shot 20, 9:45 to 10:13, 1 of 1 keyframes kept
  22. Shot 21, 10:13 to 10:41, 0 of 1 keyframes kept
  23. Shot 22, 10:41 to 11:11, 1 of 1 keyframes kept
  24. Shot 23, 11:11 to 11:41, 0 of 1 keyframes kept
  25. Shot 24, 11:41 to 12:11, 0 of 1 keyframes kept
  26. Shot 25, 12:11 to 12:42, 1 of 1 keyframes kept
  27. Shot 26, 12:42 to 13:11, 1 of 1 keyframes kept
  28. Shot 27, 13:11 to 13:39, 0 of 1 keyframes kept
  29. Shot 28, 13:39 to 14:08, 0 of 1 keyframes kept
  30. Shot 29, 14:08 to 14:36, 1 of 1 keyframes kept
  31. Shot 30, 14:36 to 14:51, 1 of 1 keyframes kept
  32. Shot 31, 14:51 to 15:16, 1 of 1 keyframes kept
  33. Shot 32, 15:16 to 15:30, 1 of 1 keyframes kept
  34. Shot 33, 15:30 to 15:41, 1 of 1 keyframes kept
  35. Shot 34, 15:41 to 16:01, 1 of 1 keyframes kept
  36. Shot 35, 16:01 to 16:14, 1 of 1 keyframes kept
  37. Shot 36, 16:14 to 16:39, 1 of 1 keyframes kept
  38. Shot 37, 16:39 to 17:04, 0 of 1 keyframes kept
  39. Shot 38, 17:04 to 17:29, 0 of 1 keyframes kept
  40. Shot 39, 17:29 to 18:00, 1 of 1 keyframes kept
  41. Shot 40, 18:00 to 18:31, 0 of 1 keyframes kept
  42. Shot 41, 18:31 to 19:02, 0 of 1 keyframes kept
  43. Shot 42, 19:02 to 19:33, 0 of 1 keyframes kept
  44. Shot 43, 19:33 to 20:03, 1 of 1 keyframes kept
  45. Shot 44, 20:03 to 20:32, 0 of 1 keyframes kept
  46. Shot 45, 20:32 to 20:52, 1 of 1 keyframes kept
  47. Shot 46, 20:52 to 21:10, 1 of 1 keyframes kept
  48. Shot 47, 21:10 to 21:45, 1 of 1 keyframes kept
  49. Shot 48, 21:45 to 22:19, 1 of 1 keyframes kept
  50. Shot 49, 22:19 to 22:52, 1 of 1 keyframes kept
  51. Shot 50, 22:52 to 23:25, 0 of 1 keyframes kept
  52. Shot 51, 23:25 to 23:59, 0 of 1 keyframes kept
  53. Shot 52, 23:59 to 24:35, 1 of 1 keyframes kept
  54. Shot 53, 24:35 to 25:11, 0 of 1 keyframes kept
  55. Shot 54, 25:11 to 25:39, 1 of 1 keyframes kept
  56. Shot 55, 25:39 to 26:07, 1 of 1 keyframes kept
  57. Shot 56, 26:07 to 26:36, 0 of 1 keyframes kept
  58. Shot 57, 26:36 to 26:54, 1 of 1 keyframes kept
  59. Shot 58, 26:54 to 27:15, 0 of 1 keyframes kept
  60. Shot 59, 27:15 to 27:49, 1 of 1 keyframes kept
  61. Shot 60, 27:49 to 28:22, 1 of 1 keyframes kept
  62. Shot 61, 28:22 to 28:39, 1 of 1 keyframes kept
  63. Shot 62, 28:39 to 28:52, 1 of 1 keyframes kept

63 shot(s).

keyframes kept every frame deduplicated

What was stored

cues
247
whisperx 247
chunks
51
from 247 cues
keyframes
42
kept of 63 captured
frames with text
42
338 lines read
chapters
12
from the source metadata
keyframe bytes
7.8 MB
word timings on 247 cues

Provenance

Each pipeline stage, its state and the model that produced it
stage state model started took
fetch done 2026-08-11 07:48 1m 24s
stt done 2026-08-11 07:49 33s
chunk done 2026-08-11 07:50 0s
text_embed done 2026-08-11 07:50 1s
keyframe done 2026-08-11 07:50 1m 19s
ocr done 2026-08-11 07:51 13s
frame_embed done 2026-08-11 07:51 7s

Frames, and what the machine read

  • 0:14 #0 done1 line(s)

    shot 0·sharpness 97.8

    1. MongoDB1.00
  • 0:36 #1 done5 line(s)

    shot 1·sharpness 1462.3

    1. AIEWF261.00
    2. AI System Design:1.00
    3. From Idea to Production1.00
    4. Apoorva Joshi1.00
    5. Staff AI/ML Developer Advocate @MongoDB1.00
  • 1:03 #2 done15 line(s)

    shot 2·sharpness 1356.2

    1. So, how will we “Vibe Code” in prod?0.99
    2. Forget the code exists, but1.00
    3. Erik Schulntz, Anthropic1.00
    4. NOT that the product exists!0.98
    5. Vibe coding in prod talk1.00
    6. World's Fair0.97
    7. d'sFair1.00
    8. IN THE NEAR FUTURE...0.99
    9. ...the person who communicates best becomes the0.99
    10. os0.99
    11. programmer.1.00
    12. "If you can communicate, you can program."1.00
    13. Fair1.00
    14. Sean Grove, OpenAI1.00
    15. The New Code talk0.99
  • 1:36 #3 done4 line(s)

    shot 3·sharpness 948.9

    1. Specs are the new code0.98
    2. Evaluation criteria1.00
    3. System design1.00
    4. Product requirements1.00
  • 2:12 #4 done30 line(s)

    shot 4·sharpness 2972.6

    1. Product1.00
    2. System Design1.00
    3. Evaluation1.00
    4. Production1.00
    5. Requirements1.00
    6. and Monitoring1.00
    7. Readiness1.00
    8. Identify the business1.00
    9. Identify data sources1.00
    10. Define system0.99
    11. Optimize for accuracy0.99
    12. problem1.00
    13. and retrieval techniques0.99
    14. guardrails1.00
    15. Identify your1.00
    16. Select system1.00
    17. Define offline0.95
    18. Optimize for cost and0.98
    19. constraints1.00
    20. architecture and tech1.00
    21. evaluation metrics1.00
    22. latency1.00
    23. stack1.00
    24. Define the role of AI1.00
    25. Determine the UX and1.00
    26. Define online1.00
    27. Optimize for reliability1.00
    28. feedback loops1.00
    29. evaluation metrics1.00
    30. Define success metrics1.00
  • 2:40 #5 done1 line(s)

    shot 5·sharpness 540.4

    1. Health insurance claims review0.99
  • 3:17 #6 done12 line(s)

    shot 6·sharpness 5342.3

    1. Background1.00
    2. Background1.00
    3. Health insurers and health funds around the world employ medical reviewers to assess0.99
    4. whether a requested treatment, procedure, or medication is covered under a patient's0.99
    5. policy. This requires cross-referencing clinical documentation, coverage policies, clinical1.00
    6. guidelines, and patient claims history. It is one of the most administratively intensive0.99
    7. roles in healthcare operations.1.00
    8. What we are building1.00
    9. We are building an internal claims review system for a fictitious health insurance0.99
    10. company called MDB Health. This system is used by medical reviewers to assess and1.00
    11. adjudicate claims. The external-facing system through which healthcare providers1.00
    12. submit claims and receive feedback on outcomes is out of scope.1.00
  • 3:42 #7 done2 line(s)

    shot 7·sharpness 954.3

    1. Product1.00
    2. requirements1.00
  • 3:58 #8 done11 line(s)

    shot 8·sharpness 3626.2

    1. Business problem1.00
    2. Medical reviewers at MDB Health spend an average of 2 days1.00
    3. processing claim review requests — 4 times the industry standard0.99
    4. for non-urgent cases and 12 times the industry standard for0.99
    5. urgent ones. Delays at this scale postpone patient care,0.99
    6. particularly for time-sensitive treatments.1.00
    7. User-specific1.00
    8. Current state1.00
    9. Measurable1.00
    10. Solution-agnostic1.00
    11. Focused1.00
  • 4:15 #9 skipped

    shot 9·duplicate of #8

  • 5:02 #10 skipped

    shot 10·duplicate of #8

  • 5:27 #11 done13 line(s)

    shot 11·sharpness 2827.7

    1. Business constraints1.00
    2. All denial decisions must include a human reviewer.1.00
    3. 2.0.99
    4. Reviewers must be able to override any system recommendation.1.00
    5. 3.0.99
    6. Complex cases, as defined by MDB Health's internal clinical guidelines, must be reviewed1.00
    7. by a senior physician.0.97
    8. 4.0.97
    9. Patient data can only be processed within MDB Health's approved cloud environment.1.00
    10. 5.0.98
    11. Only models available on MDB Health's approved cloud provider are permitted.0.99
    12. 6.0.89
    13. All decisions must be auditable and traceable to a specific source document.1.00
  • 5:55 #12 skipped

    shot 12·duplicate of #11

  • 6:14 #13 done10 line(s)

    shot 13·sharpness 2153.7

    1. Performance constraints1.00
    2. 1. P95 response time for an automated recommendation must be under 5 minutes.0.99
    3. 2.0.98
    4. System must handle up to 5,000 requests per day.0.99
    5. 3.0.97
    6. Denial decisions must be communicated to the healthcare provider within 24 hours.0.99
    7. 4.0.85
    8. Monthly model (embedding, LLM) costs must not exceed $10,000.0.99
    9. 5.0.98
    10. 99.9% uptime SLA required1.00
  • 6:49 #14 done9 line(s)

    shot 14·sharpness 1484.3

    1. Define the role of AI1.00
    2. Role1.00
    3. Answer1.00
    4. Critical / Complementary1.00
    5. Complementary1.00
    6. Reactive / Proactive1.00
    7. Reactive1.00
    8. Level of autonomy1.00
    9. Semi-autonomous1.00
  • 7:03 #15 skipped

    shot 15·duplicate of #14

  • 7:39 #16 done8 line(s)

    shot 16·sharpness 2395.1

    1. Define success metrics1.00
    2. Reduce the average processing time for urgent claim review1.00
    3. requests from 2 days to1 hour within 90 days of launch.1.00
    4. Specific1.00
    5. Measurable1.00
    6. Achievable1.00
    7. Relevant1.00
    8. Time-bound1.00
  • 8:19 #17 skipped

    shot 17·duplicate of #16

  • 8:42 #18 done1 line(s)

    shot 18·sharpness 863.4

    1. Data and retrieval1.00
  • 9:16 #19 done14 line(s)

    shot 19·sharpness 2202.9

    1. Inventory your data sources0.99
    2. What data does your AI need? Where does it reside?1.00
    3. Data1.00
    4. Where does it live?1.00
    5. Accessed as1.00
    6. Clinical guidelines1.00
    7. Confluence1.00
    8. PDF1.00
    9. Internal coverage policies1.00
    10. Confluence1.00
    11. PDF1.00
    12. Patients' claims history1.00
    13. MongoDB1.00
    14. BSON1.00
  • 9:48 #20 done10 line(s)

    shot 20·sharpness 1652.8

    1. Data updates1.00
    2. How often do the data sources update?0.99
    3. Data1.00
    4. Where does it live?1.00
    5. Clinical guidelines1.00
    6. Annually1.00
    7. Internal coverage policies1.00
    8. Quarterly1.00
    9. Patients' claims history0.99
    10. Hourly1.00
  • 10:22 #21 skipped

    shot 21·duplicate of #20

  • 10:56 #22 done9 line(s)

    shot 22·sharpness 2014.9

    1. Determine data processing needs1.00
    2. Data source1.00
    3. Data processing0.98
    4. Clinical guidelines0.99
    5. Chunking, embedding, metadata extraction1.00
    6. Internal coverage policies1.00
    7. Chunking, embedding, metadata extraction0.99
    8. Patients' claims history0.99
    9. Sensitive data handling1.00
  • 11:29 #23 skipped

    shot 23·duplicate of #22

Transcript

247 cues· 4,063 words· 23,652 chars

  1. 0:02 Hi, everyone.
  2. 0:03 I'm Apoorva, and I'm a data scientist turned developer advocate currently at MongoDB.
  3. 0:08 I spent the first years of my career building machine learning applications for various cybersecurity use cases, and I now use that applied machine learning knowledge to help AI builders successfully build AI applications with MongoDB and Voyage AI.
  4. 0:25 In this talk, you'll learn how to think through building AI systems end-to-end from idea to production.
  5. 0:31 We'll take a real-world use case and walk through all the steps of designing it.
  6. 0:36 Hopefully, in the end, you'll walk away with a repeatable framework that you can apply to any AI system you design.
  7. 0:46 Now, you might be thinking, in the age of AI, do we even need to think about what we build?
  8. 0:52 Just wipe code it and ship it, right?
  9. 0:54 But that's actually where I want to start.
  10. 0:57 Now, here's the problem with that.
  11. 1:01 Wipe coding works great when you're building for fun, the stakes are low, and you can easily eyeball whether the output of what you're building is right.
  12. 1:09 But the moment you're building something real, something other people depend on, something with real consequences, just ship it is actually kind of dangerous.
  13. 1:19 And it's not just me saying it.
  14. 1:20 Folks from Anthropic and OpenAI who are so bullish on AI coding are saying the same thing.
  15. 1:25 These are actually quotes from their talks over the past few months.
  16. 1:30 Specs are the new code.
  17. 1:32 The art is in defining the product requirements, the system design, and evaluation criteria so you can be confident that your AI coding buddies are building the right thing.
  18. 1:42 And the rest of the talk is just about that.
  19. 1:44 How do we do this well?
  20. 1:49 It's useful to think about it as a framework, four phases.
  21. 1:53 You start with product requirements.
  22. 1:55 What are you actually building, for whom, and what are the constraints?
  23. 2:00 Then system design, the data, the architecture, the patterns that actually help you meet these requirements.
  24. 2:07 Then comes evaluation and monitoring.
  25. 2:09 How do you know what's being built actually works before and also after you ship?
  26. 2:16 And finally, how do you optimize for cost, not just for accuracy, but also for cost, latency, and reliability before you ship and or as you find gaps in production?
  27. 2:30 Instead of talking abstractly through a framework, I thought why not apply it to a real world use case so you can see how exactly each decision flows from one stage of the framework to the next.
  28. 2:43 So let's take the example of a health insurance claims review system.
  29. 2:49 So adjudicating health insurance claims has historically been an extremely manual process where human medical reviewers have to cross-reference clinical guidelines, insurance coverage policies, patient history and stuff to decide whether or not a medical treatment procedure or medication is covered by a patient's health insurance policy.
  30. 3:12 Now, if you live somewhere that has free health care, even there, there's things that are covered and things that are not by your health care system.
  31. 3:21 So you're still subject to some version of this process.
  32. 3:27 Now, our goal with building the system is to see if we can improve or simplify the experience for medical reviewers with the help of AI.
  33. 3:38 So let's see what the product requirements stage of the framework for this application might look like.
  34. 3:45 So first thing to do is quantify the business problem.
  35. 3:49 The business problem should focus on something specific, clearly state who the users of the application are, the current state of things, and quantify the user's pain point.
  36. 4:02 It should not prescribe what the system is going to be, whether it's going to be an agent, a multi-agent system, something else.
  37. 4:09 That'll come later.
  38. 4:14 So here's what the business problem for our claims review system could look like.
  39. 4:18 Medical reviewers at MDB Health spend an average of two days processing claim review requests, which is four times the industry standard for non-urgent cases and 12 times the industry standard for urgent ones.
  40. 4:31 Delays at this scale postpone patient care, particularly for time-sensitive treatment.
  41. 4:38 So as you can see, this business problem is user specific.
  42. 4:41 It says this is meant for medical reviewers.
  43. 4:44 It states the current state, which is like this manual process that leads to them spending two days processing claim reviews.
  44. 4:54 It's measurable because it states some baselines.
  45. 4:58 It's solution agnostic.
  46. 4:59 It doesn't really tell you what the system should look like.
  47. 5:03 And it's very focused on a specific problem.
  48. 5:11 next you want to gather any business constraints for the application so any regulatory compliance requirements any constraints on data leaving your organization procurement constraints meaning are certain vendors not approved for use within the organization all of these would be good to know before you even start designing the system
  49. 5:33 So for our application, say these are some of the business constraints.
  50. 5:36 Patient data has to stay within the approved cloud environment.

Chapters

  1. 0:00 Introduction to AI framework
  2. 1:53 Defining product requirements
  3. 3:38 Setting AI success metrics
  4. 8:35 Data strategy and retrieval
  5. 12:12 System architecture design
  6. 14:10 Applying design patterns
  7. 17:30 User experience and feedback
  8. 19:37 Tech stack considerations
  9. 20:56 Evaluation and monitoring
  10. 24:00 Monitoring in production
  11. 25:12 Optimizing for performance
  12. 27:17 Key takeaways and conclusion

Open at this second