> For the complete documentation index, see [llms.txt](https://docs.zingg.ai/zingg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zingg.ai/zingg/running-zingg/update-label.md).

# Update Label

Revisit and correct a previously labeled pair by cluster ID, without re-labeling everything from scratch.

{% hint style="warning" icon="right-long" %}
Keep a backup of your model folder before running `updateLabel` - it overwrites previously saved labels.
{% endhint %}

As your understanding of your data evolves, you may need to correct a pair you labeled earlier. The `updateLabel` phase reopens the console labeler for one cluster at a time, instead of stepping through every candidate pair again.

Generate model documentation first - see [Generate Model Documentation](/zingg/running-zingg/generate-model-documentation.md) - so you can look up the cluster ID of the pair you want to correct.

### Run updateLabel

#### Python

```python
options = ClientOptions([ClientOptions.PHASE, "updateLabel"])
zingg = Zingg(args, options)
zingg.initAndExecute()
```

#### CLI

```bash
./scripts/zingg.sh --phase updateLabel --conf <location to conf.json>
```

### What happens next

The command opens an interactive prompt in the terminal. Enter the cluster ID of the pair you want to relabel, review the pair it displays, then enter the corrected decision: Match (1), No Match (2), or Can't Say (0). Enter 9 at either prompt to exit.

{% hint style="success" icon="right-long" %}
After updating labels, run [Generate Model Documentation](/zingg/running-zingg/generate-model-documentation.md) again to confirm the change, then re-run `train` once you're satisfied.
{% endhint %}


---

# 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.zingg.ai/zingg/running-zingg/update-label.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.
