ailiteracynepal 🇳🇵

Chapter 02

Prompting in code

The difference between a good chat prompt and a good production prompt. How to get structured JSON back, and how to handle the very real errors, limits, and bad responses that live in real systems.

In this chapter

Sections in this chapter

  1. I Section

    Writing prompts that hold up in production

    0 / 2 exercises

  2. II Section

    Structured output: getting JSON back

    0 / 2 exercises

  3. III Section

    Handling errors, limits, and bad responses

    0 / 2 exercises