> 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/platform/console/knowledge/sync-and-versions.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Sync & versions

How file updates reach agents through sync and knowledge versions.

A knowledge base uses files from its datasets. Update a file, then sync it to create a knowledge version. Agents use the latest completed version, so sync provides a controlled way to update their source knowledge.

Open a knowledge base and select **Datasets** to manage file updates and sync status.

### Sync and version tasks

| Goal                   | Action                                          | Result                                                                              |
| ---------------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------- |
| Update knowledge       | Upload a new file version, then sync it.        | Agents use the updated content after sync completes.                                |
| Review changes         | Open the knowledge version menu.                | See versions and the change that created each one.                                  |
| Go back to a version   | Choose it in the version menu, then **Revert**. | A new version holds that version's files.                                           |
| Keep a dataset current | Enable auto sync.                               | Eligible new files sync automatically.                                              |
| Publish a version      | Select **Publish** in the header.               | The latest version is marked published, after approval if your account requires it. |
| Resolve an issue       | Filter for items needing attention.             | Find failed and stale files.                                                        |

### How updates reach agents

**File → dataset → sync → knowledge version → agents**

A dataset holds source files. Adding or replacing a file does not update a knowledge base immediately. The file remains **Ready to sync** until you sync it.

{% hint style="info" %}
**A completed sync is live.** Publishing is a separate step. It marks a version as published, and it doesn't change which version agents or Try Knowledge answer from. Validate important updates in [Try Knowledge](https://docs.uptiq.ai/platform/console/knowledge/try-knowledge.md), then compare answers with the previous version when needed. See [Publish a version](#publish-a-version).
{% endhint %}

{% columns %}
{% column %}

#### Before sync

* A new file version remains outside the knowledge base.
* Agents continue using the previous knowledge version.
* You can review the replacement before it becomes active.
  {% endcolumn %}

{% column %}

#### After sync

* Each synced file creates a knowledge version.
* Agents use the latest completed version.
* The file status changes to **Synced**.
  {% endcolumn %}
  {% endcolumns %}

### Knowledge and file versions

Knowledge versions record how the knowledge base changed. The version history shows the latest version first, including:

* The file that a sync added.
* A dataset attachment.
* The initial knowledge-base version.

Each completed file sync creates a separate knowledge version. Version numbers only increase. Earlier versions remain available for queries in [Try Knowledge](https://docs.uptiq.ai/platform/console/knowledge/try-knowledge.md). To go back to one, see [Preview or revert to an earlier version](#preview-or-revert-to-an-earlier-version).

To update a file, select **⋮** → **Upload new version**, then choose the replacement from your computer, Google Drive, OneDrive, SharePoint, or a website. The file retains its name and receives the next file version number. Use **Version history** to review earlier file versions.

{% hint style="warning" %}
Cloud-source changes do not sync automatically. When a source changes in Google Drive, OneDrive, or SharePoint, upload the new version before you sync it.
{% endhint %}

### Preview or revert to an earlier version <a href="#preview-or-revert-to-an-earlier-version" id="preview-or-revert-to-an-earlier-version"></a>

Open the version dropdown in the header. It lists each version with its age and the change that made it, for example **Version 2 (Latest)** and **Version 1** (*Initial Version*). Choose an older one.

**Preview Version 1** opens and shows: *"You are about to view Version 1 from 3 Hrs ago. This will temporarily load the selected version. Your current version will remain unchanged. Do you want to continue?"*

* **View Version 1** loads the old version read-only. The version select is greyed, and **Back to Latest** returns you. A version that held no files shows *Version 1 held no files*.
* **Revert to Version 1** makes that version's files current. It does not replace the latest version. It adds a new version, noted *Restored version 1*, that holds the chosen version's files, so history is kept. Files that are no longer available are skipped.

Reverting needs edit access to the knowledge base, and it is refused while a sync is running. Retry is not offered while you view an older version.

### Publish a version <a href="#publish-a-version" id="publish-a-version"></a>

Publishing marks a knowledge version as published. It applies to the latest version, the one named on the version dropdown, for example **v2**. A knowledge base counts as a draft until a version is published: its card on **MY KNOWLEDGE** shows **Draft**, and **Published** once any version has been published. Publishing a later version doesn't change the badge.

Select **Publish** in the header of the knowledge base, next to **Try Knowledge**. A window titled `Publish Knowledge` opens.

* **When your account requires approval,** the window asks `Send version v2 for approval? It is marked as published once approved.` Confirm. A **Pending Approval** message follows: `Version v2 has been sent for approval and will be published once approved.` The header button changes to **Pending Approval**. A reviewer approves or rejects the request in [Publish Review](https://docs.uptiq.ai/platform/control-center/govern/publish-review.md). After approval the button shows **Published**. After a rejection it goes back to **Publish**, and you can submit the version again.
* **When approval is off,** the window asks `Publish version v2? It goes live straight away.`

{% hint style="info" %}
**Why you may not see an approval step.** Approval is a separate setting for each kind of publish. If the count for knowledge versions is 0 in your account, **Publish** takes effect at once and no request is created. This is true even when other kinds, such as design systems or apps, still need review. An administrator changes the count in [Approval Policies](https://docs.uptiq.ai/platform/control-center/govern/publish-review.md#approval-policies). See [How approval works](https://docs.uptiq.ai/platform/control-center/govern/publish-review.md#how-approval-works).
{% endhint %}

**Publish** is unavailable, with a reason, in these cases:

| When                                        | What the button says                                           |
| ------------------------------------------- | -------------------------------------------------------------- |
| The knowledge base has no version yet       | `Sync this knowledge to create a version before publishing`    |
| No file has been synced into it             | `Sync at least one file into this knowledge before publishing` |
| It is still processing                      | `This knowledge is still processing. Publish once it finishes` |
| Your role can't request a knowledge publish | A message that you don't have access                           |

To publish, you need edit access to the knowledge base and a role with **Request knowledge publish**. Developer, Governance Manager, Account Admin, and Organisation Admin have it. Approving is a separate capability: see [Publish Review](https://docs.uptiq.ai/platform/control-center/govern/publish-review.md).

### Read the coverage strip

Above the datasets, five tiles summarize the knowledge base.

| Tile                      | Shows                                                                  |
| ------------------------- | ---------------------------------------------------------------------- |
| **Attached to knowledge** | How many of the files are attached, such as `1 of 1 file`, with a bar. |
| **Fully synced datasets** | How many datasets are fully synced.                                    |
| **Files ready to sync**   | Files waiting for a sync.                                              |
| **Files in progress**     | Files still processing.                                                |
| **Failed**                | Files that failed.                                                     |

The **Status** filter narrows the list to **All**, **Needs attention**, **Ready to sync**, **Processing**, or **Synced**, each with its count. A dataset row shows its status beside its name, with the number of files, their size, and when it last synced on the line beneath. At the right it shows its progress as a fraction and a bar, the sync button, and the `⋮` menu. A file row shows its version, **Discoverable** and sync status, and its size on that line, with only the `⋮` menu at the right.

### Sync files

Choose the scope that matches your change:

{% tabs %}
{% tab title="All ready files" %}
Select **Sync N ready files**, such as **Sync 0 ready files**, to sync every ready file across the knowledge base. The button is unavailable when no files are ready.
{% endtab %}

{% tab title="One dataset" %}
Select **Sync N ready** on a dataset to sync only that dataset's ready files. A dataset with no ready files shows **Nothing to sync**.
{% endtab %}

{% tab title="Dataset actions" %}
Use the dataset menu for targeted actions:

| Action                          | Use it when                                           |
| ------------------------------- | ----------------------------------------------------- |
| **Sync all preprocessed files** | All processed files in the dataset should be current. |
| **Retry failed files only**     | Only failed files need another attempt.               |
| **Upload files to dataset**     | You have new source material.                         |
| **Detach dataset**              | This knowledge base should no longer use the dataset. |
| {% endtab %}                    |                                                       |
| {% endtabs %}                   |                                                       |

**Retry failed files only** tries failed files again. The Uptiq Platform retries a failing file automatically up to three times. After that it stops, but you can still retry the file by hand, from the dataset menu or from the failed row.

#### Auto sync

Enable **Auto sync** from the dataset menu when new files should sync without manual action. Use manual sync for content that requires review before agents use it, such as policies or rate information.

### Understand statuses

Dataset status shows whether its files are available to the knowledge base. The status summary tracks attached files, fully synced datasets, ready files, files in progress, and failed files.

| Dataset status       | Meaning                                               |
| -------------------- | ----------------------------------------------------- |
| **Not synced**       | No files from this dataset are in the knowledge base. |
| **Partially synced** | Some files are synced and others are not.             |
| **Auto sync**        | New eligible files sync automatically.                |

Each file has independent discovery and sync statuses.

{% columns %}
{% column %}

#### Discovery status

| Status                      | Meaning                 |
| --------------------------- | ----------------------- |
| **Discoverable**            | Indexed and searchable. |
| **Preparing for discovery** | Being indexed.          |
| {% endcolumn %}             |                         |

{% column %}

#### Sync status

| Status                    | Action                        |
| ------------------------- | ----------------------------- |
| **Ready to sync**         | Sync the file.                |
| **Syncing**               | Wait for completion.          |
| **Synced**                | No action is needed.          |
| **New version available** | Sync the newer file version.  |
| **Sync failed**           | Retry the file.               |
| **Not eligible**          | Wait for discovery to finish. |
| {% endcolumn %}           |                               |
| {% endcolumns %}          |                               |

A file can be **Discoverable** and **Ready to sync**. It is searchable as a source, but agents do not yet answer from it.

### Resolve items needing attention

Items need attention when a file failed or a newer file version is available. Select **Review** to see those items, or filter by **All**, **Needs attention**, **Ready to sync**, **Processing**, or **Synced**. Search by dataset or file name to find a specific item.

For failed processing, retry the file after addressing the source issue. See [When processing fails](https://docs.uptiq.ai/platform/console/knowledge.md#when-processing-fails) for common causes and retry guidance.

{% hint style="info" %}
One dataset can support several knowledge bases. Syncing it in one knowledge base does not update the others. Each knowledge base maintains its own sync statuses and knowledge versions.
{% endhint %}

## What's next

{% content-ref url="/pages/DKOWs4uDy7x9aMWxiPE0" %}
[Knowledge](https://docs.uptiq.ai/platform/console/knowledge.md)
{% endcontent-ref %}

{% content-ref url="/pages/20ewSvz8aWCPvWdH5D92" %}
[Datasets](https://docs.uptiq.ai/platform/console/knowledge/datasets.md)
{% endcontent-ref %}

{% content-ref url="/pages/c7bvrDcFqfOHzRZGiGxn" %}
[Try Knowledge](https://docs.uptiq.ai/platform/console/knowledge/try-knowledge.md)
{% endcontent-ref %}

{% content-ref url="/pages/BwEx7UGh4jCQtxAjFDEL" %}
[Knowledge: FAQs & Troubleshooting](https://docs.uptiq.ai/platform/console/knowledge/faqs.md)
{% endcontent-ref %}

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# 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/platform/console/knowledge/sync-and-versions.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.
