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

# Attach knowledge

Attach existing knowledge to an agent, or add flash knowledge from files and connected drives, so the agent can use it at run time.

Attached knowledge lets an agent use your organization's documents when it answers, instead of relying only on the model's general training. You attach knowledge from the Builder Canvas, in the **Use Existing Knowledge** dialog. It has two tabs: **Knowledge**, for knowledge the account already has, and **Flash Knowledge**, for files that belong to this agent only.

Open the canvas and select **Add Knowledge** in the Knowledge card. A card with nothing attached shows No knowledge added yet.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-11b974a1248903904f06926928edb9f4be2b4b9d%2Fqore_agent-builder_canvas-knowledge-empty_rounded_shadow.png?alt=media" alt="The Builder Canvas with the agent in the center. The Knowledge card on the left shows No knowledge added yet and has an Add Knowledge button. Triggers, Skills and Integrations cards sit around it."><figcaption><p>The <strong>Knowledge</strong> card on the Builder Canvas.</p></figcaption></figure>

The dialog is titled **Use Existing Knowledge**. Its subtitle shows Attach existing knowledge to this agent, or upload knowledge for this agent only.

## Attach existing knowledge

The **Knowledge** tab lists the knowledge the account has, so you can attach it without uploading anything again.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-a00e48cd1c92575c979fbb03bcef894c6b98f816%2Fqore_agent-builder_use-existing-knowledge-knowledge-tab_rounded_shadow.png?alt=media" alt="The Use Existing Knowledge dialog on the Knowledge tab, with a filter button, a Search box and a Create Knowledge button above a table of knowledge with Name, Status and Version columns."><figcaption><p>The <strong>Knowledge</strong> tab.</p></figcaption></figure>

| Part of the tab              | What it does                                                                                                 |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------ |
| Filter button and **Search** | Narrow the list. **Search** matches by name.                                                                 |
| **Create Knowledge**         | Opens the Knowledge page in a new tab, so you can create knowledge without leaving your place on the canvas. |
| **Name**                     | The knowledge's name, with its description under it.                                                         |
| **Status**                   | **Processing**, **Completed**, **Failed**, or **Partially failed**.                                          |
| **Version**                  | A menu that starts on **Latest**. Choose a saved version to pin the agent to it.                             |

Knowledge that is already attached to the agent isn't listed.

1. Select **Add Knowledge** in the Knowledge card.
2. On the **Knowledge** tab, find the knowledge. Use **Search** if the list is long.
3. Tick the row. Choosing a version in its **Version** menu ticks the row too.
4. Select **Add**. With rows ticked, the button shows **Add** and the number ticked, such as **Add (2)**.

A message confirms how many items were added. Each one appears in the Knowledge card.

Choose an entry marked **Completed**. An entry marked **Failed** holds no data. A new file version reaches an agent that uses **Latest** only once the knowledge shows it as synced. See [Sync & versions](https://docs.uptiq.ai/platform/console/knowledge/sync-and-versions.md).

## Add flash knowledge

The **Flash Knowledge** tab adds files for this agent only. They're for this agent only.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-05a87588ca101a804af74a30b636f570cc56bf2d%2Fqore_agent-builder_use-existing-knowledge-flash-knowledge_rounded_shadow.png?alt=media" alt="The Use Existing Knowledge dialog on the Flash Knowledge tab. Google Drive, OneDrive and SharePoint buttons sit above a drop area that shows Click to upload or drag and drop, with the supported formats and size limits underneath."><figcaption><p>The <strong>Flash Knowledge</strong> tab.</p></figcaption></figure>

1. Select **Add Knowledge** in the Knowledge card, then open the **Flash Knowledge** tab.
2. Add files. Choose **Google Drive**, **OneDrive**, or **SharePoint** under Import from Google Drive, OneDrive, or SharePoint, or select **Click to upload** or drag files into the drop area.
3. Select **Add**. It isn't available until you have added a file.

A message shows Knowledge added.

Under the drop area, the tab states what it accepts:

| Limit          | Value                                                           |
| -------------- | --------------------------------------------------------------- |
| Formats        | .png, .jpeg, .webp, .heic, .heif, .pdf, .plain, .markdown, .csv |
| Files          | Up to 10 files                                                  |
| Size of a file | 50 MB at most                                                   |
| Total size     | 50 MB per conversation                                          |

Connect Google Drive, OneDrive, or SharePoint before you import from it. For a larger set of documents, use a knowledge base instead. See [Datasets](https://docs.uptiq.ai/platform/console/knowledge/datasets.md).

## Build knowledge from the Agent Builder chat <a href="#build-knowledge-from-the-agent-builder-chat" id="build-knowledge-from-the-agent-builder-chat"></a>

The agent that builds your agent in the Agent Builder chat now has knowledge skills that follow the Knowledge Builder's process. You can set up the agent's knowledge in the same conversation where you build the agent, without switching to **Knowledge**. To find knowledge the account already has, ask the builder about it in your own words. The builder searches the account's knowledge and tells you what it found. For example, "Do we have anything on our 2026 fee schedule?" Then ask the builder to attach that knowledge to the agent. It's added to the agent as a new knowledge source, from the chat alone.

The builder can:

* **Reuse what exists.** List the account's knowledge bases and datasets, and see which knowledge the agent already has, so it reuses an existing one instead of creating a duplicate.
* **Create and organize.** Create a knowledge base or a dataset, and rename a knowledge base or rewrite its description.
* **Add files.** Add the files you attach to the chat to a dataset, list a dataset's files, and tell you why a file failed to process.
* **Make files searchable.** Sync a dataset into a knowledge base. This runs in the background, and the builder reports the result for each dataset. A dataset whose files are still processing has to wait.
* **Connect knowledge to the agent.** Attach an existing knowledge base to the agent, or detach it.
* **Add flash knowledge.** Put attached files straight into the agent's context on every run. They're usable at once, with no dataset and no wait. Use this for a few small reference files, not a large set of documents.

Some of these changes reach beyond the agent you're building:

* **Detaching** a knowledge base only removes it from this agent. The knowledge base, its datasets, and its files stay available to every other agent that uses them.
* **Deleting** a file from a dataset, or deleting a knowledge base, affects every agent that uses it. The builder asks you to confirm the item by name first.

The builder adds files that you attach to the chat.

## Attach a governed graph <a href="#attaching-a-governed-graph" id="attaching-a-governed-graph"></a>

A [governed graph](https://docs.uptiq.ai/platform/control-center/govern/governed-graph.md) is an institution's knowledge graph, uploaded in **Control Center → Govern → Governed Graph**. Once the upload completes, the graph becomes knowledge in the account, and you attach it to the agent like any existing knowledge.

{% stepper %}
{% step %}

#### Open Use Existing Knowledge

On the Builder Canvas, select **+ Add Knowledge** in the Knowledge section. The **Use Existing Knowledge** dialog opens on its **Knowledge** tab.
{% endstep %}

{% step %}

#### Select the graph

Find the graph by name, using **Search knowledge** if the list is long, and tick it. Pick the entry marked **Completed**: a graph whose upload failed is listed too, with **Failed**, but holds no data. Knowledge already attached to the agent isn't listed.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-74e47dbcea0744f3258962c72be8e6abc974def9%2Fqore_agent-builder_use-existing-knowledge-governed-graph_rounded_shadow.png?alt=media" alt="The Use Existing Knowledge dialog on the Knowledge tab, listing CCU Governed Graph as Completed above failed entries, with a search box, a Create Knowledge button and the Add button"><figcaption><p>Selecting a completed governed graph.</p></figcaption></figure>
{% endstep %}

{% step %}

#### Add it

Select **Add**. The graph appears in the canvas's Knowledge section as a **Knowledge Store** node marked **Active**.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-a5a8ad82eea9d7d7f4b0227dcf776a57256ddbcb%2Fqore_agent-builder_canvas-governed-graph-attached_rounded_shadow.png?alt=media" alt="The Builder Canvas with CCU Governed Graph attached in the Knowledge section as an active Knowledge Store, connected to the agent"><figcaption><p>The governed graph attached to the agent.</p></figcaption></figure>
{% endstep %}
{% endstepper %}

To open the graph from the canvas, select its row in the Knowledge section. The graph opens in a new tab, on the Governed Graph page with its tabs, and not on the Knowledge page, so you keep your place on the canvas. A role without the **View governed graphs** capability can't open it from here, and selecting the row does nothing.

To detach it, open the node's `⋯` menu and select **Unlink**.

* The agent queries the graph with the **Knowledge Graph Search** skill, for structured questions such as which documents a product requires, rather than searching it as text.
* Attaching the graph needs the **Attach/Detach governed graph on agent** capability: Developer, Account Admin or Org Admin.
* You can't create a governed graph by attaching its package JSON in the Agent Builder chat, or through the dialog's **Flash Knowledge** tab. Upload it in Control Center first.

## Runtime behavior

After you attach knowledge, the agent can retrieve relevant passages from it during a conversation, and its answers draw on that content. If attached knowledge doesn't answer a question, the agent can still answer from general model reasoning or ask for clarification.

## Troubleshoot attached knowledge

| Problem                                            | What to check or do                                                                                                                                                                                                         |
| -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Add** isn't available on **Flash Knowledge**     | Add a file first, by upload, drag and drop, or an import from a connected drive.                                                                                                                                            |
| A file is refused                                  | Check it against the formats, the 10-file limit, and the 50 MB limits on the tab.                                                                                                                                           |
| Knowledge you expect isn't listed on **Knowledge** | It may already be attached to this agent, which hides it from the list. Check the Knowledge card.                                                                                                                           |
| The agent isn't using attached knowledge           | Check that the knowledge retrieval skill is enabled, that the agent's instructions tell it to consult knowledge, and that the content holds the answer.                                                                     |
| A new file version doesn't reach the agent         | Agents answer from the latest synced version of a knowledge base. The new version reaches the agent once it shows **Synced**. See [Sync & versions](https://docs.uptiq.ai/platform/console/knowledge/sync-and-versions.md). |

## What's next

{% content-ref url="/pages/6GdRtv2OwNTvm0DoXDVc" %}
[Triggers](https://docs.uptiq.ai/platform/console/agent-builder/build/triggers.md)
{% endcontent-ref %}

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

{% content-ref url="/pages/d51w0Ua2mPnRTa3NWFo4" %}
[Governed Graph](https://docs.uptiq.ai/platform/control-center/govern/governed-graph.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/agent-builder/build/attach-knowledge.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.
