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

# Knowledge

Train the AI agent on the content it uses to generate replies. Training sources are separate from the agent's persona and behaviour — those are configured in the **Agent** tab. See [Manage AI agents](/docs/modules/ai-agents/manage-ai-agents.md).

## Add a training source

Select one of the three buttons at the top of the Knowledge base table.

{% tabs %}
{% tab title="Upload file" %}
Supported file types: csv, json, pdf · Maximum file size: 5 MB

1. Select **Upload file**.
2. Enter a **Name** for the source.
3. Drag and drop a file or select **Browse files**.
4. Select **Train**.
   {% endtab %}

{% tab title="Add URL" %}

1. Select **Add URL**.
2. Enter a **Name** and the full URL (must start with `https://`).
3. Choose the scope: **URL webpage** trains only on the page at that URL. **All webpages** crawls and trains on all pages linked from that URL.
4. Optionally enable **Automatically retrain every** and select an interval: 12 hours, 1 day, 1 week, or 1 month.
5. Select **Train**.
   {% endtab %}

{% tab title="Paste snippet" %}

1. Select **Paste snippet**.
2. Enter a **Name**.
3. Paste or type the text in the **Text snippet** field.
4. Select **Train**.
   {% endtab %}
   {% endtabs %}

***

## Manage training sources

The knowledge base table lists all sources with name, last updated date, and status. Filter by **Search**, **Type**, and **Status**.

| Status  | Meaning                                |
| ------- | -------------------------------------- |
| Pending | Queued for training                    |
| Loading | Training in progress                   |
| Success | Trained and active                     |
| Fail    | Training failed — remove and try again |

To delete a source, select its row and use the delete option.

***

## Related

{% content-ref url="/pages/CPDl7PGr2ABWirxChzBX" %}
[Manage AI agents](/docs/modules/ai-agents/manage-ai-agents.md)
{% endcontent-ref %}

{% content-ref url="/pages/b0BvjBfTLQiXE86oBA4I" %}
[LLM processing](/docs/modules/ai-agents/workflows-and-actions/llm-processing.md)
{% endcontent-ref %}

{% content-ref url="/pages/YuPrI4B32HG10z1g9ZKt" %}
[Example system prompt](/docs/modules/ai-agents/knowledge/example-system-prompt.md)
{% endcontent-ref %}
