Skip to content
AgenticAIWiki
  1. Learn
  2. Part 2. Prompt engineering and structured output
  3. Chapter 13

Chain of thought and output steering

6 lessons · 28 min

Reasoning first, then the answer

Full screen
Policy questionCan order 1042 be refunded?Modelone token at a time

Swipe to change step

Step 1 of 8. A policy question needs several checks: the refund window, the delivery date, the item type. The model writes one token at a time, and each token can use everything written before it. Policy question (Can order 1042 be refunded?). Model (one token at a time). arrow from Policy question to Model. a question moving along ask.

In this chapter

  1. 13.1Asking for reasoning before the answer4 min read
  2. 13.2Separating reasoning from the final output4 min read
  3. 13.3Prefilling the assistant turn5 min read
  4. 13.4When chain of thought hurts4 min read
  5. 13.5Self-consistency and tree of thoughts6 min read
  6. 13.6Reasoning models and effort settings5 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…