In this lesson
- 01The Problem
- 02The Concept
- 03Build it
- 04Use it
- 05Exercises
- 06Key Terms
- 07Further Reading
- 08Pitfalls that still ship in 2026
About 1900 words of reading, with code, 5 quiz questions and the tutor.
The full lesson opens with an access code
You can see what this lesson covers and the milestone it sets. The full text, code, quizzes, the tutor and the AI reviews come with the K850 practice, along with weekly build sessions and code review.
Milestone forA production labour-compliance assistant
Design for a high cache hit rate
Restructure the prompt so the contract and policies form a stable prefix, retrieved context follows, and the question comes last. Measure cache hit rate over a replay of 200 questions and find what breaks the prefix.
Done when
- A stable-prefix prompt layout documented in the repo
- Cache hit rate over a 200-question replay, at least 60%
- One prefix-breaking cause found, fixed and re-measured
Stretch: Compare cost per query with and without caching
Reviews open with an access code.
Interview practice
Questions on this topic that AI engineering interviews ask, with the companies reported to ask them. Answer the way you would out loud; Jev scores it and DeepSeek tells you what to add.
Scoring opens with an access code. You can still read the questions and prepare.
Adapted from open-source work: AI Engineering from Scratch by Rohit Ghumare (MIT, lesson text, code and quizzes); Awesome LLM Apps by Shubham Saboo (Apache-2.0, starter code); AI Engineering Interview Questions by Outcome School (Apache-2.0, interview questions). Capstones, milestones, data packs and Zambian context by Zambrite.