Data and AILearning library

Generative AI

Study language-model behavior through small, measurable applications. Transformer concepts are foundational; model capabilities, provider APIs, safety guidance, and costs change quickly and require dated checks. Free documentation does not imply free hosted inference.

Intermediate12 chapters11 practice questions5 references
Start coursePractise questions

Get an in-app notice when new lessons or practice are added.

12 chapters across 4 modules

Course chapters

Explore all 12 chapters in any order. Each chapter has learning goals, a practice prompt, and a primary reference; expanded reading pages are linked from their chapter titles.

01 · Models and controlled generation3 chapters
  1. Tokens, context, and sampling

    • Explain how tokenization and decoding affect output without attributing understanding beyond evidence

    Practice: Compare token counts and sampled outputs for a short set of prompts.

    Read the primary referenceLesson guide · Ready
  2. Prompts, roles, and structured output

    • Separate application instructions from untrusted content

    Practice: Design a constrained output schema and validate both successful and malformed outputs.

    Read the primary referenceLesson guide · Ready
  3. Local and hosted inference tradeoffs

    • Compare privacy, hardware, latency, and billing assumptions

    Practice: Plan a small local experiment and a hosted alternative without sending private data.

    Read the primary referenceLesson guide · Ready
02 · Grounding and retrieval3 chapters
  1. Grounding and evaluation

    Build a small learning assistant whose claims can be checked against approved material.

    • Explain why retrieved context still requires answer verification

    Practice: Construct a small question set with answerable and unanswerable cases and score cited answers.

    Read the primary referenceExpanded reading · Ready
  2. Chunking, embeddings, and retrieval

    • Connect document segmentation to retrieval relevance and lost context

    Practice: Compare two chunking strategies on a tiny public-domain or original corpus.

    Read the primary referenceLesson guide · Ready
  3. Citations and abstention

    • Require a supported claim to point to an available source passage

    Practice: Build a response format that cites source identifiers and declines unsupported questions.

    Read the primary referenceLesson guide · Ready
03 · Application boundaries and risks3 chapters
  1. Prompt injection and untrusted tools

    • Treat model output and retrieved instructions as untrusted data

    Practice: Test an adversarial document and enforce tool permissions outside the model.

    Read the primary referenceLesson guide · Ready
  2. Privacy, secrets, and retention

    • Identify data leaving the application and provider retention assumptions

    Practice: Create a data-flow map and remove unnecessary personal information from sample prompts.

    Read the primary referenceLesson guide · Ready
  3. Tool calls and bounded workflows

    • Validate tool arguments and limit steps, time, and side effects

    Practice: Implement a simulated read-only lookup with argument validation and a step budget.

    Read the primary referenceLesson guide · Ready
04 · Evaluation and lifecycle3 chapters
  1. Quality evaluations and regression sets

    • Choose task-specific criteria and inspect failure categories

    Practice: Create a rubric for accuracy, support, abstention, and formatting across a fixed set.

    Read the primary referenceLesson guide · Ready
  2. Latency, caching, and cost budgets

    • Measure end-to-end behavior and avoid stale or sensitive cache entries

    Practice: Compare request strategies using recorded token counts and a stated pricing date.

    Read the primary referenceLesson guide · Ready
  3. Build a grounded study assistant

    • Integrate retrieval, safe boundaries, citations, and repeatable evaluation

    Practice: Deliver a prototype over original learning notes with a published failure log and evaluation report.

    Read the primary referenceLesson guide · Ready

Learn it. Check it. Try again.

11 original questions with worked explanations and source references. Filter by difficulty, revisit mistakes, and save your attempt as you go.

Open Generative AI practice

Books & references

Free reading at the publisher or author’s site. External materials keep their own licenses.

  • Transformers documentationHugging Face · documentation
    Source & reuse terms

    Free to read at the official provider. This catalog links to the source; it does not reproduce it or assert permission to redistribute it. Product use, hosted labs, and certificates may have separate costs.

  • Claude platform documentationAnthropic · documentation
    Source & reuse terms

    Free to read at the official provider. This catalog links to the source; it does not reproduce it or assert permission to redistribute it. Product use, hosted labs, and certificates may have separate costs.

  • Gemini API documentationGoogle · documentation
    Source & reuse terms

    Free to read at the official provider. This catalog links to the source; it does not reproduce it or assert permission to redistribute it. Product use, hosted labs, and certificates may have separate costs.

  • OWASP Top 10 for LLM ApplicationsOWASP GenAI Security Project · documentation
    Source & reuse terms

    Free to read at the official provider. This catalog links to the source; it does not reproduce it or assert permission to redistribute it. Product use, hosted labs, and certificates may have separate costs.

  • Hugging Face LLM courseHugging Face · course
    Source & reuse terms

    Free to read at the official provider. This catalog links to the source; it does not reproduce it or assert permission to redistribute it. Product use, hosted labs, and certificates may have separate costs.