> 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-2-create-a-dataset-and-ingest-source.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Lab 2: Create a dataset and ingest source files

Hands-on lab for lesson 2 of module M04, create a dataset and ingest source files.

{% @uptiq-training/training-labels content="Module 4 | brand
Lesson 2 of 8 | brand
Lab 2 | 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 | current
Lesson 3: Build a knowledge base and navigate version history | soon
Lab 3: Build a knowledge base and navigate version history
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:** Create a Dataset and Ingest Source Files

**Difficulty level:** Apply (Bloom Level 3 — you will perform the procedure, not just recognize it)

**Estimated hands-on time:** 15 minutes (approximately 12 minutes hands-on lab activity, 3 minutes orientation)

**What you will build:** A named dataset in the Uptiq Platform containing source files ingested through three different methods — a local file upload, a connected Google Drive folder, and a website crawl — with all files reaching **Ready to sync** status.

**Enabling objective:** Create a knowledge dataset in the Platform by uploading files, connecting a cloud drive source (Google Drive, OneDrive, or SharePoint), and configuring a website crawl, and explain the distinction between a dataset (named grouping of source files that tracks ingestion) and a knowledge base (versioned, queryable structure built from datasets).

**Prerequisites:**

* You must have the **Build a data source** capability in your sandbox environment. This capability is available to users with the Developer, Governance Manager, Account Admin, or Org Admin role.
* Your sandbox Google Drive folder (pre-populated with sample rate sheet files) must be accessible from the Google account you will use to authenticate.
* The sample bank policy document (PDF, under 15 MB) must be available on your local machine or provided by your instructor.
* No prior dataset or knowledge base is required — this is the first hands-on exercise in the M04 module sequence.

## Your sandbox environment

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

**Connection details you will use during this lab:**

| **Field**                               | **Where to find it**                                                                      |
| --------------------------------------- | ----------------------------------------------------------------------------------------- |
| **The Platform Console URL**            | Provided by your instructor                                                               |
| **Google account for OAuth**            | The Google account that has access to the pre-populated rate sheet folder in Google Drive |
| **Sample bank policy document (PDF)**   | Provided by your instructor or pre-loaded on your lab machine                             |
| **Sample website URL (for crawl step)** | Provided by your instructor                                                               |

**Pre-provisioned resources — no setup required on your part:**

* A Google Drive folder containing sample rate sheet files has been pre-populated and shared with your lab Google account. You do not need to create or populate this folder.
* The sample bank policy PDF has been prepared to meet the 15 MB file size limit. You do not need to modify it.
* Your sandbox user account has already been assigned a role that grants the **Build a data source** capability.

{% hint style="info" %}
**Concept:** A dataset is a named grouping of source files. It tracks ingestion — which files have been added, what their processing status is — but it does not produce anything an agent can query. That is the job of a knowledge base, which you will build in Lesson 3. Uploading a file to a dataset does not make it available to an agent. The file must be synced into a knowledge base, and the knowledge base must be attached to the agent.
{% endhint %}

## Configuration template

This lab does not use a configuration file. All inputs are entered through the Platform Console UI. The values you will enter are listed below for reference.

### Dataset creation fields

| **Field**         | **Value to enter**                                                                         | **Notes**                                                                       |
| ----------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------- |
| **Name**          | `Bank Policy and Rate Sheets`                                                              | Required. Use this exact name so your dataset is easy to find in later lessons. |
| **Description**   | `Sample bank policy document and Google Drive rate sheets for the M04 loan agent exercise` | Optional. Recommended for clarity.                                              |
| **Source Assets** | Added after creation via Upload and Cloud Storage tabs                                     | Optional at creation time — you will add files in the steps below.              |

### Upload tab — file to add

| **Field**               | **Value**                                                 |
| ----------------------- | --------------------------------------------------------- |
| **File**                | Sample bank policy document (PDF, provided by instructor) |
| **File size limit**     | 15 MB per file (do not change)                            |
| **Files at once limit** | 25 (do not change)                                        |

### Cloud Storage tab — Google Drive settings

| **Field**            | **Value**                                                                                    |
| -------------------- | -------------------------------------------------------------------------------------------- |
| **Provider**         | Google Drive                                                                                 |
| **Authentication**   | Google OAuth — use the Google account that has access to the pre-populated rate sheet folder |
| **Folder to select** | Pre-populated rate sheet folder (provided by instructor)                                     |

### Website Crawl tab — independent variation settings

| **Field**         | **Value to enter**                    | **Default** | **Range** |
| ----------------- | ------------------------------------- | ----------- | --------- |
| **Website URL**   | `<sample URL provided by instructor>` | —           | Valid URL |
| **Maximum pages** | `10`                                  | 25          | 1–200     |
| **Link depth**    | `2`                                   | 2           | 1–10      |

{% hint style="warning" %}
Set the Maximum pages value before selecting Start crawl. A crawl that reaches its page limit holds only part of the site — you cannot expand it after the crawl starts. If you need more pages, you must delete the crawl source and start again.
{% endhint %}

## Step-by-step instructions

### Procedure 1 — Create the Dataset

{% stepper %}
{% step %}
**Navigate to All Datasets**

In the Platform Console, select Knowledge in the left sidebar. On the Knowledge home page, select All Datasets (top right of the page).

You should see the Datasets list page. If you have not created any datasets yet, the list will be empty.

{% hint style="info" %}
**Checkpoint:** Confirm you can see the Create Dataset button. If you do not see it, your account may not have the Build a data source capability. Contact your instructor.
{% endhint %}

*The Knowledge Datasets list page showing the All Datasets view with the Create Dataset button visible*
{% endstep %}

{% step %}
**Open the Create Dataset form**

Select Create Dataset.

You should see the Create Dataset form with fields for Name, Description, and Source Assets, and tabs for Upload, Cloud Storage, and Website Crawl.
{% endstep %}

{% step %}
**Enter the dataset name and description**

In the Name field, enter:

`Bank Policy and Rate Sheets`

In the Description field, enter:

`Sample bank policy document and Google Drive rate sheets for the M04 loan agent exercise`

The Description field is optional, but entering it now makes the dataset easier to identify in later lessons.

{% hint style="info" %}
**Tip:** The Name field is the only required field. You can create a dataset with no files and add them later — which is exactly what you will do in the next two steps.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 2 — Upload the Bank Policy Document

{% stepper %}
{% step %}
**Open the Upload tab**

In the Create Dataset form, select the Upload tab.

You should see a drag-and-drop upload area with a note about supported file formats and size limits.

{% hint style="info" %}
**Concept:** The Upload tab accepts files from your local machine. Each file can be up to 15 MB, and you can add up to 25 files at once. Supported formats include `.pdf`, `.png`, `.jpg`, `.jpeg`, `.webp`, `.tiff`, `.bmp`, and other image formats. Note that files attached directly from the agent canvas have a lower 10 MB limit — but that limit does not apply here.
{% endhint %}
{% endstep %}

{% step %}
**Upload the bank policy document**

Drag the sample bank policy PDF into the upload area, or select the upload area to browse for the file.

You should see the file appear in the dataset file list with a status of Preparing for discovery or Processing.

{% hint style="info" %}
**Checkpoint:** Confirm the file name appears in the file list. If you see an error immediately after upload, the file may exceed 15 MB or be in an unsupported format. See the Troubleshooting Quick Reference for next steps.
{% endhint %}

*The Knowledge dataset file list showing an uploaded PDF with Preparing for discovery or Processing status*
{% endstep %}

{% step %}
**Wait for Ready to sync status**

Monitor the file status. When ingestion completes, the status changes to Ready to sync.

{% hint style="info" %}
**Tip:** Large files may take a few minutes to process. Refresh the page if the status does not update after a minute or two. Preparing for discovery is normal — it means the Platform is processing the file. Do not navigate away or re-upload the file while it is processing.
{% endhint %}

{% hint style="info" %}
**Concept:** Ready to sync means the file has been processed and is in the dataset, but has not yet been added to a knowledge base. The agent cannot use this file until it is synced into a knowledge base. You will do that in Lesson 3.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 3 — Connect Google Drive and Add Rate Sheet Files

{% stepper %}
{% step %}
**Open the Cloud Storage tab**

Select the Cloud Storage tab in the Create Dataset form (or in the dataset view if you have already saved the dataset).

You should see options for Google Drive, OneDrive, and SharePoint.

{% hint style="info" %}
**Concept:** The Cloud Storage tab lets you connect files from cloud storage providers. Google Drive uses Google OAuth for authentication. OneDrive and SharePoint use Microsoft OAuth. You authenticate once per provider per session.
{% endhint %}

{% hint style="success" %}
**Best practice:** Google Drive uploads are no longer limited to PDFs — you can now upload any supported file format from Google Drive. This is a recent platform change. If you have previously worked with an older version of the Platform, you may have encountered the PDF-only restriction; it no longer applies.
{% endhint %}
{% endstep %}

{% step %}
**Select Google Drive and authenticate**

Select Google Drive. A Google OAuth authentication window opens.

Sign in with the Google account that has access to the pre-populated rate sheet folder. Grant the requested permissions.

You should be returned to the Cloud Storage tab with your Google Drive accessible.

{% hint style="info" %}
**Checkpoint:** Confirm you can browse your Google Drive folders. If the OAuth window closes without granting access, or if you see an authentication error, verify you are using the correct Google account. See the Troubleshooting Quick Reference for OAuth error steps.
{% endhint %}
{% endstep %}

{% step %}
**Select the rate sheet folder**

Browse to the pre-populated rate sheet folder (your instructor will provide the folder name or path). Select the folder to add its contents to the dataset.

You should see the rate sheet files appear in the dataset file list alongside the bank policy document you uploaded in Procedure 2.

{% hint style="info" %}
**Checkpoint:** Confirm at least one rate sheet file appears in the file list. If the folder appears empty, verify with your instructor that the correct Google account has access to the pre-populated folder.
{% endhint %}

*The Knowledge dataset file list showing both the uploaded bank policy PDF and at least one Google Drive rate sheet file*
{% endstep %}

{% step %}
**Monitor all files to Ready to sync**

Wait for all files in the dataset — the uploaded bank policy document and all Google Drive rate sheet files — to show Ready to sync status.

You should see every file in the list showing Ready to sync with no files remaining in Preparing for discovery or Processing status.

{% hint style="info" %}
**Checkpoint:** All files must show Ready to sync before you proceed. This is the success criterion for Procedures 1–3. If any file shows Sync failed, see the Troubleshooting Quick Reference.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 4 — Configure a Website Crawl (Independent Variation)

Complete this procedure independently using the success criteria below. Step-by-step guidance is intentionally limited — use what you have learned in Procedures 1–3 and the configuration values in Section 3.

{% stepper %}
{% step %}
**Open the Website Crawl tab**

In your dataset, select the Website Crawl tab.

You should see fields for Website URL, Maximum pages, and Link depth.

*The Knowledge Add from website dialog showing Website URL, Maximum pages, and Link depth fields*
{% endstep %}

{% step %}
**Configure the crawl settings**

Enter the sample URL provided by your instructor in the Website URL field.

Set Maximum pages to `10`.

Confirm Link depth is set to `2` (this is the default value — no change needed unless it shows a different value).

{% hint style="warning" %}
Set the Maximum pages value to `10` before selecting Start crawl. You cannot change the page limit after a crawl has started.
{% endhint %}
{% endstep %}

{% step %}
**Start the crawl and confirm the result**

Select Start crawl.

You should see the crawled site appear as a single combined data source in the dataset file list. All crawled pages are combined into one entry — this is the expected behavior as of the October 2026 platform update.

{% hint style="info" %}
**Checkpoint:** Confirm the crawled website appears as a single data source in the file list. If you see multiple separate entries for the same site, contact your instructor — this may indicate the crawl ran against an older platform version.
{% endhint %}

{% hint style="info" %}
**Concept:** When you provide a single website URL, the Platform creates one dataset entry combining all crawled pages. If you provide multiple URLs, the Platform creates a separate dataset entry for each URL.
{% endhint %}
{% endstep %}
{% endstepper %}

**Success criteria for this lab:**

* ✅ At least one uploaded bank policy document showing **Ready to sync**
* ✅ At least one Google Drive rate sheet file showing **Ready to sync**
* ✅ One crawled website data source in the file list

## Troubleshooting

<details>

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

| **Symptom**                                                                                | **Cause**                                                                                                          | **Fix**                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Google OAuth window closes without granting access, or you see "Authentication failed"** | Wrong Google account selected, or the Google Drive folder is not shared with the account you authenticated with    | Close the OAuth window, select Google Drive again, and sign in with the Google account your instructor specified. Verify the pre-populated folder is shared with that account.                  |
| **File upload fails immediately with a size error**                                        | File exceeds the 15 MB per-file limit for dataset uploads                                                          | Replace the file with a version under 15 MB. Contact your instructor if the exercise file itself exceeds the limit.                                                                             |
| **File shows Preparing for discovery for more than 5 minutes**                             | Normal for large files; may also indicate platform-wide processing delay                                           | Wait and refresh the page. If the status persists across many files simultaneously, it may be a platform-wide issue — escalate to your instructor or administrator. Do not re-upload the file.  |
| **File shows Sync failed immediately after upload**                                        | File format may be unsupported, or the file may be corrupted                                                       | Check that the file is a supported format (`.pdf`, `.png`, `.jpg`, `.jpeg`, `.webp`, `.tiff`, `.bmp`). Replace with a clean copy of the file. If the failure persists, contact your instructor. |
| **Google Drive folder appears empty after authentication**                                 | The pre-populated folder is not shared with the authenticated Google account, or you navigated to the wrong folder | Verify with your instructor which Google account should be used and which folder to select. Sign out of the OAuth session and re-authenticate with the correct account.                         |
| **Crawled website appears as multiple separate entries instead of one combined source**    | Crawl ran against a platform version prior to the October 2026 update                                              | Contact your instructor. On the current platform version, all pages from a single URL crawl are combined into one data source.                                                                  |
| **Website crawl returns fewer pages than expected**                                        | Maximum pages limit was reached before the full site was crawled                                                   | The crawl is working as configured. If you need more pages, delete the crawl source and start a new crawl with a higher Maximum pages value (up to 200).                                        |
| **Create Dataset button is not visible on the All Datasets page**                          | Your account does not have the **Build a data source** capability                                                  | Contact your instructor to verify your role assignment. The capability requires Developer, Governance Manager, Account Admin, or Org Admin role.                                                |

</details>

## Checkpoints and validation

### Embedded Checkpoints (Formative)

These checkpoints confirm your work at each stage. Complete each one before moving to the next procedure.

#### Checkpoint 1 — Dataset created

Confirm your dataset named Bank Policy and Rate Sheets appears in the All Datasets list.

**How to confirm:** Navigate to `Console → Knowledge → All Datasets`. Your dataset should appear in the list.

**If it does not appear:** Verify you are in the correct project. Datasets are project-scoped — if you switched projects after creating the dataset, navigate back to the project where you created it.

#### Checkpoint 2 — Bank policy document ingested

Confirm the sample bank policy PDF appears in your dataset file list with Ready to sync status.

**How to confirm:** Open your dataset. The file list shows the bank policy document with a green Ready to sync status indicator.

**If the file shows a different status:** See the Troubleshooting Quick Reference for Preparing for discovery (wait and refresh) or Sync failed (replace the file).

#### Checkpoint 3 — Google Drive rate sheet files ingested

Confirm at least one rate sheet file from Google Drive appears in your dataset file list with Ready to sync status.

**How to confirm:** Open your dataset. At least one rate sheet file (sourced from Google Drive) shows Ready to sync status.

**If no Google Drive files appear:** Verify the OAuth authentication completed successfully and that you selected the correct folder. See the Troubleshooting Quick Reference for Google Drive issues.

#### Checkpoint 4 — All files Ready to sync

Confirm every file in the dataset shows Ready to sync status — no files in Preparing for discovery, Processing, or Sync failed state.

**How to confirm:** Scan the full file list. All status indicators should read Ready to sync.

**If any file shows Sync failed:** See the Troubleshooting Quick Reference.

#### Checkpoint 5 — Website crawl complete

Confirm the crawled website appears as a single combined data source in the dataset file list.

**How to confirm:** The file list includes one entry representing the crawled site (not multiple separate page entries).

**If the crawl has not finished:** Crawling runs in the background. Wait a moment and refresh the page.

**Assessment Component:** No summative assessment is included in this lesson. Formative assessment for EO-1 is embedded in Lesson 1 (comprehension check) and covered in the Lesson 3 knowledge check and the Lesson 8 summative. The success criteria above (all files showing **Ready to sync** plus a crawled website data source) serve as the performance checkpoint for this lesson.

## Solution reference

<details>

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

The following describes the completed state of your dataset when all procedures have been executed successfully.

**Dataset name:** `Bank Policy and Rate Sheets`

**Dataset description:** `Sample bank policy document and Google Drive rate sheets for the M04 loan agent exercise`

### File list — expected contents and statuses

| **File**                                                | **Source method**                               | **Expected status** |
| ------------------------------------------------------- | ----------------------------------------------- | ------------------- |
| **Sample bank policy document (PDF)**                   | Upload tab — local file                         | Ready to sync       |
| **Rate sheet file(s) from Google Drive**                | Cloud Storage tab — Google Drive (Google OAuth) | Ready to sync       |
| **Crawled website (sample URL provided by instructor)** | Website Crawl tab — single combined data source | Ready to sync       |

### Website crawl settings used

| **Setting**       | **Value**                         |
| ----------------- | --------------------------------- |
| **Website URL**   | Sample URL provided by instructor |
| **Maximum pages** | 10                                |
| **Link depth**    | 2                                 |

### What the completed environment looks like

* Navigating to `Console → Knowledge → All Datasets` shows your **Bank Policy and Rate Sheets** dataset in the list.
* Opening the dataset shows a file list with at least three entries: the bank policy PDF, at least one Google Drive rate sheet file, and the crawled website combined data source.
* Every entry in the file list shows **Ready to sync** status.
* No files are in **Preparing for discovery**, **Processing**, or **Sync failed** state.

### What Ready to sync means at this stage

Your files are processed and waiting. They are in the dataset but not yet in a knowledge base. Agents cannot retrieve from them yet. In Lesson 3, you will build a knowledge base from this dataset, sync these files into it, and verify retrieval quality using Try Knowledge.

{% hint style="info" %}
**Concept — Dataset vs. Knowledge Base:** A dataset tracks ingestion. A knowledge base is what agents query. The relationship: one dataset can feed several knowledge bases; one knowledge base can draw from multiple datasets. You attach a knowledge base to an agent — not a dataset. Uploading files to a dataset and reaching Ready to sync is the prerequisite for building a knowledge base, which is the next lesson.
{% 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-2-create-a-dataset-and-ingest-source.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.
