Course map
Stage 1: Foundations
Stage 2: Machine Learning
Stage 3: Deep Learning
Stage 4: LLMs & Generative AI
Stage 5: Production & Specialization

Part 15 / Topic 4 of 6

Letting the model think

Hard tasks fail when the model must answer in one hop. Two ways to buy reasoning room:

  • Ask for steps: "Work through the ticket's facts first inside <thinking> tags, then give the verdict." Visible reasoning you can inspect — and strip before showing users.
  • Extended thinking: current Claude models can allocate internal reasoning before answering (a per-request setting in the API). Use it for maths, multi-constraint analysis, tricky classification; skip it for simple extraction, where it only adds latency and cost.

Either way the principle is the same: separate reasoning from answering, and spend tokens on reasoning only where the task earns it.

Done here? The practice set for Part 15 — 4 exercises with solutions — is on the part page.

Search the guide