> 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/academy/tier-2-core-skills/m04-knowledge-management/lab-3-build-a-knowledge-base-and-navigate.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Lab 3: Build a knowledge base and navigate version history

Hands-on lab for lesson 3 of module M04, build a knowledge base and navigate version history.

{% @uptiq-training/training-labels content="Module 4 | brand
Lesson 3 of 8 | brand
Lab 3 | success
15 minutes | neutral
Bloom level Apply | neutral" %}

{% @uptiq-training/training-navigator title="M04 Knowledge Management — Datasets, Sync & Versioning" content="Lesson 1: Distinguish datasets from knowledge bases | soon
Lesson 2: Create a dataset and ingest source files | soon
Lab 2: Create a dataset and ingest source files
Lesson 3: Build a knowledge base and navigate version history | soon
Lab 3: Build a knowledge base and navigate version history | current
Lesson 4: Configure Knowledge Sync and dataset auto-sync | soon
Lesson 5: Validate retrieval quality using Try Knowledge | soon
Lab 5: Validate retrieval quality using Try Knowledge
Lesson 6: Diagnose and resolve processing failures | soon
Lab 6: Diagnose and resolve processing failures
Lesson 7: Structure a knowledge base for agent grounding | soon
Lesson 8: Module assessment | soon" %}

## Lab overview

**Exercise title:** Build a Knowledge Base and Navigate Version History

**Difficulty level:** Apply (Bloom Level 3 — you will perform procedures in the platform, not just recall concepts)

**Estimated hands-on time:** 15 minutes (9 minutes hands-on lab activity + approximately 6 minutes for the knowledge check)

**What you will build:** A named knowledge base built from the dataset you created in Lesson 2, with all files synced and version history visible in the vN selector. By the end of this lab you will be able to build a knowledge base from a dataset, navigate the version history using the vN selector, and explain the operational consequences of deleting a knowledge base versus detaching it from an agent.

**Prerequisites:**

* Lesson 2 must be complete. Your dataset from Lesson 2 must exist in the sandbox with all files showing **Ready to sync** status.
* Your sandbox account must have the **Build knowledge** and **Manage knowledge versions** capabilities (Developer, Governance Manager, Account Admin, or Org Admin role).

## Your sandbox environment

**Environment access URL:** `<provided by your instructor>`

**Connection details:**

| **Field**                     | **Where to find it**                                                |
| ----------------------------- | ------------------------------------------------------------------- |
| **Sandbox login credentials** | Provided by your instructor before the session                      |
| **Project name**              | Displayed in the account/project switcher at the top of the Console |

**Pre-provisioned resources — you do not need to set these up:**

* Your Lesson 2 dataset already exists in the sandbox. It contains the sample bank policy document and rate sheet files uploaded in Lesson 2. All files should show **Ready to sync** status before you begin this lesson.
* Your sandbox account is pre-configured with the correct role and capabilities for this exercise.

{% hint style="warning" %}
Confirm you are working in the correct project before starting. Knowledge bases are project-scoped. If you are in the wrong project, your Lesson 2 dataset will not appear.
{% endhint %}

## Configuration template

This lesson does not require a configuration file. You will interact entirely through the Uptiq Platform Console UI. The only text you will type is the knowledge base description in Step 1.2 below.

**Knowledge base description (type this exactly, or use your own wording):**

> Bank policy and rate sheet knowledge for the loan agent

{% hint style="info" %}
The description you type in the prompt field becomes the knowledge base's name and helps the Platform understand what the knowledge base should cover. You can use your own wording — the important thing is that it clearly describes the content.
{% endhint %}

## Step-by-step instructions

### Procedure 1 — Build the Knowledge Base from Your Dataset

{% stepper %}
{% step %}
**Step 1.1 — Open the Knowledge Console**

Navigate to `Console > Knowledge` using the left sidebar.

You should see the Knowledge home page with the prompt field labeled Describe what this knowledge should hold… and a MY KNOWLEDGE section below it.

*Knowledge home page showing the prompt field and MY KNOWLEDGE section*

{% hint style="info" %}
**Checkpoint:** If you do not see the prompt field, confirm you are on the Knowledge page and not the Datasets page. The Datasets page shows a list of datasets, not the prompt.
{% endhint %}
{% endstep %}

{% step %}
**Step 1.2 — Describe the Knowledge Base**

Click in the Describe what this knowledge should hold… prompt field and type:

> Bank policy and rate sheet knowledge for the loan agent

Do not press Enter or select the send arrow yet.
{% endstep %}

{% step %}
**Step 1.3 — Attach Your Lesson 2 Dataset**

Select Datasets (the button or option that appears in or near the prompt field).

A dataset picker opens. Locate your Lesson 2 dataset by name. If you have several datasets, type part of the name in the Search datasets… field to filter the list.

Select your Lesson 2 dataset to attach it.

*Knowledge home datasets dropdown open showing dataset picker*

{% hint style="info" %}
**Checkpoint:** Your Lesson 2 dataset should appear in the picker. If it does not, confirm you are in the correct project (see Section 2).
{% endhint %}
{% endstep %}

{% step %}
**Step 1.4 — Send the Prompt to Create the Knowledge Base**

Select the send arrow (→) to submit the prompt.

The Platform creates the knowledge base from your description and the attached dataset. This may take a few moments. When complete, the new knowledge base appears in the MY KNOWLEDGE section of the Knowledge home page.

{% hint style="info" %}
**Checkpoint:** You should see your new knowledge base listed under MY KNOWLEDGE with the name derived from your description. If nothing appears after 30 seconds, refresh the page.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 2 — Sync Files into the Knowledge Base

{% stepper %}
{% step %}
**Step 2.1 — Open the Knowledge Base**

Select your new knowledge base from the MY KNOWLEDGE section to open it.

*Knowledge base open, showing the Datasets tab and file list*
{% endstep %}

{% step %}
**Step 2.2 — Open the Datasets Tab**

Inside the knowledge base, select the Datasets tab.

You should see your Lesson 2 dataset listed, with its files showing Ready to sync status. This means the files are processed and waiting to be brought into the knowledge base — they are not yet queryable.

{% hint style="info" %}
**Concept:** Ready to sync means the file exists in the dataset but has not yet been incorporated into the knowledge base. The knowledge base only answers from files that have been synced — uploading a file to a dataset does not make it available to an agent. Sync is the step that changes the knowledge base.
{% endhint %}
{% endstep %}

{% step %}
**Step 2.3 — Sync All Ready Files**

Select Sync ready files to sync every ready file across the knowledge base.

Wait for the sync to complete. Watch the file status indicators update. Each file will move from Ready to sync to Synced as it finishes.

{% hint style="warning" %}
Do not navigate away from the knowledge base while syncing is in progress. Wait until all files show Synced before moving to the next step.
{% endhint %}

{% hint style="info" %}
**Concept:** Each file that finishes syncing creates one new knowledge version. If you have three files in your dataset, syncing them creates three new versions — one per file, not one version for the whole sync operation. You will see this reflected in the vN selector in the next procedure.
{% endhint %}

{% hint style="info" %}
**Checkpoint:** All files in the Datasets tab should show Synced status. If any file shows Sync failed, see the Troubleshooting Quick Reference in Section 5.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 3 — Navigate Version History Using the vN Selector

{% stepper %}
{% step %}
**Step 3.1 — Open the Version Menu**

In the knowledge base view, locate the vN ▾ version selector (where N is the current version number). Select it to open the version menu.

*Knowledge base vN version dropdown open showing version list*
{% endstep %}

{% step %}
**Step 3.2 — Review the Version List**

The version menu lists all knowledge versions, newest first. Review the list and identify:

* The **initial version** — created when you built the knowledge base in Procedure 1.
* The **versions created by each file sync** — one version per file that finished syncing in Procedure 2. Each version entry shows the name of the file that created it.

You should see at least two versions: the initial version plus one version for each file that synced.

*vN selector showing version list with initial version and per-file sync versions*

{% hint style="info" %}
**Tip:** Version numbers only increase — they never reset or decrease. The highest version number is always the latest, and it is the version your agent will use.
{% endhint %}

{% hint style="info" %}
**Concept:** Attaching a dataset also creates a version, in addition to the versions created by each file sync. This is why your version list may show more versions than the number of files you synced.
{% endhint %}
{% endstep %}

{% step %}
**Step 3.3 — Confirm the Latest Version**

Confirm that the latest version (the one at the top of the list, with the highest version number) reflects all the files you synced. The version entry should reference the last file that finished syncing.

{% hint style="info" %}
**Checkpoint:** Your version list should show at least two versions. The latest version should be at the top of the list. If you see only one version, your files may not have synced individually — confirm all files show Synced status in the Datasets tab.
{% endhint %}

{% hint style="warning" %}
Earlier versions are queryable in Try Knowledge, but you cannot make an earlier version current. If you need to undo a change — for example, if you synced an incorrect file — the correct approach is to upload the earlier (correct) file as a new version and sync it. There is no rollback button.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 4 — Understand Delete vs. Detach

This procedure does not involve a destructive action in the sandbox. Instead, review the comparison table below and the teaching analogy. You will apply this knowledge in the knowledge check.

**Delete vs. Detach — Comparison**

|                   | **Delete**                                                                                | **Detach**                                                                       |
| ----------------- | ----------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| **Action**        | Removes the knowledge base permanently                                                    | Removes the knowledge base from one agent only                                   |
| **Scope**         | Account-wide — affects every agent using this knowledge base                              | Agent-scoped — affects only the agent you detach it from                         |
| **Reversibility** | Cannot be undone                                                                          | Reversible — you can re-attach the knowledge base                                |
| **What survives** | Source files remain in their datasets; the knowledge base (TOC, tags, embeddings) is gone | The knowledge base, its datasets, and all files remain available to other agents |

{% hint style="warning" %}
Deleting a knowledge base removes the generated structure — the table of contents, tags, and embeddings — permanently. The source files stay in their datasets, so you can build a new knowledge base from them, but the deleted knowledge base does not come back. This action affects every agent that was using it.
{% endhint %}

{% hint style="info" %}
**Concept:** Think of it as the difference between removing a book from one person's desk (detach) versus shredding the book entirely (delete). Detach is reversible and scoped to one agent. Delete is permanent and account-wide in its impact on agents.
{% endhint %}

## Troubleshooting

<details>

<summary>Fixes for common problems in this lab</summary>

| **Symptom**                                                       | **Cause**                                                                                                                                       | **Fix**                                                                                                                                                                                                                 |
| ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Sync ready files button is not available**                      | Files may still be in **Preparing for discovery** or **Processing** state — they are not yet ready to sync                                      | Wait for files to reach **Ready to sync** status, then refresh the page and try again                                                                                                                                   |
| **A file shows Sync failed**                                      | The file did not sync successfully — possible causes include an unsupported format, a corrupted file, or a scanned PDF with no extractable text | Select the failed file to see the error and the stage it failed at, then select **Retry** on the file row. If retries are exhausted, replace the source file with a clean copy and upload a new version                 |
| **Version history shows only one version after syncing**          | Learner may expect one version for the whole sync operation                                                                                     | Each file that finishes syncing creates one version. If you synced three files, you should see three new versions plus the initial version. Confirm all files show **Synced** status in the Datasets tab                |
| **Knowledge base does not appear in MY KNOWLEDGE after creation** | Project scope mismatch                                                                                                                          | Confirm you are in the correct project using the account/project switcher. Knowledge bases are project-scoped                                                                                                           |
| **Sync fails with "The provider rate limited the request"**       | Tenant-wide provider throttle — an immediate retry will likely meet the same limit and use more quota                                           | Do not retry immediately. The platform retries automatically within two hours. If multiple knowledge bases are failing the same way at the same time, the limit is probably tenant-wide — check with your administrator |
| **Files show New version available status**                       | The knowledge base holds an older version of the file than the dataset does — the file in the dataset has been updated since the last sync      | Select **Sync ready files** to bring the knowledge base up to date with the latest file version                                                                                                                         |
| **Lesson 2 dataset does not appear in the dataset picker**        | You may be in the wrong project, or the dataset was created in a different project                                                              | Use the account/project switcher to confirm your project, then return to `Console > Knowledge`                                                                                                                          |

</details>

## Checkpoints and validation

### Embedded Checkpoints (Formative)

Complete each checkpoint before moving to the next procedure.

**After Procedure 1 (Build the Knowledge Base):**

* Confirm your new knowledge base appears in the **MY KNOWLEDGE** section of the Knowledge home page.
* Confirm the knowledge base name reflects the description you typed.
* If the knowledge base does not appear after 30 seconds, refresh the page. If it still does not appear, confirm you are in the correct project.

**After Procedure 2 (Sync Files):**

* Confirm all files in the Datasets tab show **Synced** status.
* If any file shows **Sync failed**, follow the troubleshooting steps in Section 5 before proceeding.
* If any file shows **Ready to sync** after you selected **Sync ready files**, wait for the sync to complete and refresh.

**After Procedure 3 (Navigate Version History):**

* Confirm the vN selector shows at least two versions (the initial version plus at least one version created by a file sync).
* Confirm the latest version (highest version number, at the top of the list) reflects the last file that finished syncing.
* Confirm you can identify which version was created by which file sync from the version list entries.

**After Procedure 4 (Delete vs. Detach):**

* Confirm you can state the difference between Delete and Detach without referring to the table.
* Confirm you understand that Delete cannot be undone and affects every agent using the knowledge base, while Detach affects only one agent and is reversible.

### Check your understanding

{% @uptiq-training/knowledge-check answer="C" content="You synced three files into a knowledge base. How many new knowledge versions were created?

A. 1 — one version for the entire sync operation
B. 2 — one for the first file and one for the rest
C. 3 — one version per file
D. 0 — versions are only created when you attach a dataset
----------------------------------------------------------

Each file that finishes syncing creates one knowledge version. Syncing three files creates three new versions, each named after the file that created it. Versions are not batched — the platform creates one version per completed file sync." %}

{% @uptiq-training/knowledge-check answer="B" content="A bank administrator needs to stop one agent from using a knowledge base without affecting any other agents that use the same knowledge base. Which action should they take?

A. Delete the knowledge base
B. Detach the knowledge base from the agent
C. Remove the dataset from the knowledge base
D. Disable sync on the knowledge base
-------------------------------------

Detach removes the knowledge base from one specific agent only. The knowledge base, its datasets, and its files remain available to every other agent that uses them. Delete, by contrast, removes the knowledge base and all its generated structure permanently — it cannot be undone and affects every agent that was using it. Options C and D are not the correct mechanism for this scenario." %}

{% @uptiq-training/knowledge-check answer="C" content="A knowledge base was synced with an incorrect file version. The administrator wants to restore the previous (correct) version of the file. What is the correct approach?

A. Select the earlier version in the vN selector and set it as current
B. Delete the knowledge base and rebuild it from the dataset
C. Upload the earlier (correct) file as a new version and sync it
D. Use the Retry button to re-sync the file from the previous version
---------------------------------------------------------------------

You cannot roll a knowledge base back to an earlier version. Earlier versions are queryable in Try Knowledge, but you cannot make an earlier version current. To undo a change, upload the earlier (correct) file as a new version and sync it — this creates a new version that reflects the correct file content. Deleting the knowledge base (Option B) would remove it permanently and affect every agent using it, which is far more disruptive than necessary." %}

## Solution reference

<details>

<summary>The completed state of your work</summary>

### Completed Knowledge Base State

When all procedures are successfully complete, your sandbox environment should look like this:

**Knowledge base:**

* A named knowledge base appears in **MY KNOWLEDGE** on the Knowledge home page. The name reflects the description you typed (e.g., "Bank policy and rate sheet knowledge for the loan agent").

**Datasets tab — file status:**

* All files from your Lesson 2 dataset show **Synced** status. No files show **Ready to sync**, **Sync failed**, or **New version available**.

**vN selector — version history:**

* The version menu shows at least two versions, listed newest first.
* The initial version (created when you built the knowledge base) appears at or near the bottom of the list.
* One additional version appears for each file that finished syncing. Each version entry identifies the file that created it.
* The latest version (highest version number, at the top of the list) reflects the last file that finished syncing.
* Example: if your Lesson 2 dataset contained two files named `bank-policy.pdf` and `rate-sheet.pdf`, your version list might show:
  * v3 — rate-sheet.pdf
  * v2 — bank-policy.pdf
  * v1 — Initial version

**Delete vs. Detach — correct understanding:**

* **Delete:** Removes the knowledge base and all generated structure (table of contents, tags, embeddings) permanently. Cannot be undone. Affects every agent using the knowledge base. Source files remain in their datasets.
* **Detach:** Removes the knowledge base from one agent only. The knowledge base, its datasets, and its files remain available to every other agent. Reversible.

{% hint style="info" %}
**Tip:** Your knowledge base is now ready to be attached to an agent. In the next lesson, you will use Try Knowledge to validate retrieval quality before attaching.
{% endhint %}

</details>

{% hint style="success" %}
**Lab complete.** Confirm every checkpoint above before you move on.
{% 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.uptiq.ai/academy/tier-2-core-skills/m04-knowledge-management/lab-3-build-a-knowledge-base-and-navigate.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.
