Skip to main content

Adjust Answers

When you receive an answer from Wren AI, you can adjust it in two ways:

  1. Modify Reasoning Steps: You can edit the reasoning steps to help Wren AI regenerate a more accurate answer.
  2. Edit SQL Directly: You can modify the generated SQL query to fine-tune your results.

Adjust Answer

Modify Reasoning Steps

What is reasoning steps?

Reasoning steps are the steps Wren AI takes to generate the answer, which is shown in the "Answer preparation steps" section.

Reasoning Steps

Click the "Adjust the answer" button and select "Adjust steps" from the dropdown menu.

Adjust Steps

You can edit both the reasoning steps and the selected models (which are retrieved through similarity search) to help Wren AI generate a more accurate and relevant answer.

You can also switch to "Read mode" to preview how the answer will look when rendered.

Read mode

After editing, click "Regenerate answer" to get a new answer.

Adjusted answer

Edit SQL Directly

If you're familiar with SQL, you can directly edit the generated query to adjust your results:

  1. Click "Adjust the answer" and select "Adjust SQL" from the dropdown menu
    • Alternatively, in "View SQL" tab, click "Adjust SQL" directly in the SQL Editor
  2. A popup window with SQL editor will appear
  3. Make your changes to the query in the editor
  4. Click "Submit" to regenerate the answer with your modified SQL

Adjust SQL

Adjusted SQL Answer

Submit the edited SQL to regenerate a new answer.

Save to Knowledge Base

After adjusting an answer, you can save it to the knowledge base. This helps Wren AI learn from your adjustments and generate more accurate answers for similar questions in the future.

To learn more about saving answers to the knowledge base, see Save to Knowledge.