AI术语词典

A comprehensive multilingual AI terminology dictionary

Definition

思维链(CoT)提示通过明确要求模型阐述其逐步逻辑,从而提升大型语言模型在复杂推理任务上的表现。与直接跳跃到最终答案不同,CoT引导模型展示其思考过程,这有助于解决需要多步逻辑推导的问题,如数学应用题或复杂的逻辑推理任务。

Summary

思维链提示是一种鼓励大语言模型在生成最终答案之前,先生成中间推理步骤的技术。

Key Concepts

Use Cases

Code Example

1
2
prompt = "Q: Roger has 5 tennis balls. He buys 2 more cans of tennis balls. If each can has 3 balls, how many does he have?\nA: Roger started with 5 balls. 2 cans of 3 balls each is 6 balls. 5 + 6 = 11. The answer is 11."
print(prompt)