Cuando le pides al modelo que explique su razonamiento, responde con los pasos que sigue para resolver el problema. A veces, este proceso puede mejorar la precisión y los matices, sobre todo en el caso de las consultas complejas.
Los pasos de razonamiento se incluyen en la respuesta. Para analizar los pasos de razonamiento de la respuesta que buscas, puedes especificar un formato de salida mediante XML u otros separadores.
Ejemplos
Por ejemplo, supongamos que estás escribiendo un blog de cocina y quieres que el modelo te diga cómo podrían interpretar los lectores diferentes partes del blog. Si no le pides al modelo que explique su razonamiento, es posible que la respuesta no sea tan útil como te gustaría:
Sin razonamiento |
---|
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. |
Ahora que ya sabes cómo predice el modelo la posible interpretación de la frase por parte de los lectores, puede ser útil que conozcas más detalles sobre las predicciones específicas que ha hecho el modelo para generar la respuesta. Como se muestra en el siguiente ejemplo, la calidad de la respuesta también puede mejorar:
Explicar el motivo |
---|
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. |
Otra técnica que puedes usar para mejorar la respuesta del modelo es indicarle que piense paso a paso y que explique su razonamiento. Para ello, el modelo debe desglosar la entrada en pasos y proporcionar el razonamiento que utiliza para resolver el problema:
Piensa paso a paso |
---|
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." } ] } |
Al pedirle al modelo que imprimiera su proceso de pensamiento, el modelo generó una respuesta más completa y pudiste obtener más información sobre cómo la generó.
Siguientes pasos
- Consulta más ejemplos de peticiones en la galería de peticiones.