指示模型解释其推理

当您让模型解释其原因时,模型会按照其解决问题的步骤作出回答。执行此过程有时可以提高准确性和细微差别,尤其是对于具有挑战性的查询。

回答中包含推理步骤。如需从您要查找的答案中解析推理步骤,您可以使用 XML 或其他分隔符指定输出格式。

示例

例如,假设您正在编写一份烹饪博客,并且您希望模型告诉您读者可能会如何解读博客的不同部分。如果您没有指示模型说明其推理,则模型的回答可能没有您期望的那么有用:

无推理

    What is the most likely interpretation of this sentence?
    
    The sentence: "The chef seasoned the chicken and put it in the oven because it looked pale."
    

    The chef seasoned the chicken and put it in the oven because it lacked color and needed cooking.
    

虽然您已了解模型如何预测读者可能会解读句子,但进一步了解模型为给出回答而做出的具体预测可能会对您有所帮助。如以下示例所示,回答的质量也可能会提高:

解释推理

    What is the most likely interpretation of this sentence? Explain your reasoning
    
    The sentence: "The chef seasoned the chicken and put it in the oven because it looked pale."
    

      Interpreting "The chef seasoned the chicken and put it in the oven because it looked pale."

      The most likely interpretation is that the chef seasoned the chicken to add flavor and color, then put it in the oven to cook it.

      Here's the reasoning:

      - Seasoning is typically used to enhance the flavor of food. Chefs often use spices, herbs, and other ingredients to make their dishes more appealing.
      - "Pale" suggests the chicken lacked visual appeal before being seasoned. This could imply it was unseasoned or simply lacking color from spices.
      - Putting the chicken in the oven is a common cooking method. The sentence implies the chef's intention is to cook the chicken, not just season it.

      Therefore, the chef's actions are likely aimed at both improving the taste and appearance of the chicken through seasoning and then cooking it in the oven.
    

可用于改进模型回答的另一种方法是指示模型分步思考并解释其推理。这要求模型将输入分解为步骤,并提供其用于解决问题的推理:

分步思考

    What is the most likely interpretation of this sentence? Think step by step and print out
    the thinking process.

    Please output in JSON format with final answer in 'answer', and thinking steps in 'think' fields.
    
    The sentence: "The chef seasoned the chicken and put it in the oven because it looked pale."
    

    {
      "answer": "The chef seasoned the chicken to enhance its flavor and put it in the oven to cook it because it appeared to be undercooked.",
      "think": [
        {
          "step": 1,
          "thought": "The chef seasoned the chicken. This suggests that the chef is preparing the chicken for cooking."
        },
        {
          "step": 2,
          "thought": "The chef put the chicken in the oven. This indicates that the chef is cooking the chicken."
        },
        {
          "step": 3,
          "thought": "The sentence states that the chicken looked pale. Pale chicken is often undercooked."
        },
        {
          "step": 4,
          "thought": "Combining these observations, it is most likely that the chef seasoned the chicken to enhance its flavor and put it in the oven to cook it because it appeared to be undercooked."
        }
      ]
    }
    

通过提示模型输出其思维过程,模型生成了更全面的回答,并且您详细了解了它如何生成该回答。

后续步骤