> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/monitor/fine-tuning.md).

# Fine tuning

Improve an agent with reviewed production feedback and regression testing.

Fine tuning improves an agent after you observe real behavior. It exists to turn a verified gap into a targeted configuration change, then prove the change works before release.

Fine tuning changes the agent's configuration. It does not automatically train a model or accept unreviewed feedback.

{% hint style="info" %}
Use fine tuning after a production review identifies a repeatable issue. Start with a clear example of the expected behavior.
{% endhint %}

> Make the smallest change that addresses an observed gap. Then test that case again.

{% columns %}
{% column %}

#### What it uses

* A production execution or evaluation result
* A clear expected response or action
* A reviewed correction
  {% endcolumn %}

{% column %}

#### What it protects

* Existing agent behavior
* Safety-sensitive rules
* Future releases from known regressions
  {% endcolumn %}
  {% endcolumns %}

### Choose the right improvement

| If the agent needs to…                       | Improve this           | Validate with                           |
| -------------------------------------------- | ---------------------- | --------------------------------------- |
| Follow a rule, procedure, or response format | Instructions           | Regression Evals                        |
| Answer from missing or outdated material     | Knowledge              | Regression Evals                        |
| Take an unavailable action                   | Skills or integrations | Regression Evals and an execution trace |
| Handle a safety-sensitive case               | Guardrails             | Regression Evals and a trace review     |

Avoid changing several areas for one issue. Make the smallest change that addresses the observed gap.

### Gather evidence

{% tabs %}
{% tab title="Production behavior" %}
Use [Monitor](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/monitor.md) to inspect the execution that exposed the gap. Capture the input, actual response, and expected response.
{% endtab %}

{% tab title="Known behavior" %}
Use [Regression Evals](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/test/regression-evals.md) to retain the corrected case as a test. This protects the behavior in future changes.
{% endtab %}
{% endtabs %}

### Fine-tuning workflow

{% stepper %}
{% step %}

#### Capture the gap

Review the production execution in [Monitor](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/monitor.md) or its evaluation result. Record the user input, the actual response, and the response you expected.
{% endstep %}

{% step %}

#### Review the correction

Turn the finding into a learning case in [Reinforcement Learnings](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/monitor/reinforcement-learnings.md). A person must review and approve each case before it enters memory.
{% endstep %}

{% step %}

#### Apply a targeted change

Update the relevant instructions, knowledge, skill, or guardrail. Keep the original case as a regression test.
{% endstep %}

{% step %}

#### Verify before release

Run [Regression Evals](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/test/regression-evals.md) against the changed agent. Review failures and traces before you deploy.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
A single successful reply is not enough evidence. Test the corrected case and nearby cases that could regress.
{% endhint %}

### Use feedback safely

Learning cases preserve approved corrections from production. They are not added automatically. This prevents inaccurate, malicious, or one-off feedback from changing future behavior.

When you review feedback:

* Separate facts from preferences.
* Add durable business rules to instructions or knowledge.
* Keep personal preferences in user persona memory when appropriate.

### Related tools

<table data-view="cards"><thead><tr><th>Title</th><th>Description</th><th data-card-target data-type="content-ref">Target</th></tr></thead><tbody><tr><td><strong>Monitor</strong></td><td>Inspect production executions and identify repeatable gaps.</td><td><a href="https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/monitor.md">Monitor</a></td></tr><tr><td><strong>Reinforcement Learnings</strong></td><td>Review and approve learning cases from real usage.</td><td><a href="https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/monitor/reinforcement-learnings.md">Reinforcement Learnings</a></td></tr><tr><td><strong>Regression Evals</strong></td><td>Test corrected behavior against a scored dataset.</td><td><a href="https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/test/regression-evals.md">Regression Evals</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/monitor/fine-tuning.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
