> ## Documentation Index
> Fetch the complete documentation index at: https://docs-platform.arklex.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Knowledge

> Manage documents and websites that simulated users can reference during a simulation.

The Knowledge section manages documents and websites that simulated users can reference during a simulation. Attaching knowledge to a scenario gives the simulated user access to specific content — useful for testing whether your agent responds faithfully to its source material.

<Tip>
  Knowledge grounds what the **simulated user** knows and asks about — not the agent's answers. Attaching the same material your agent relies on is a good way to test whether the agent stays faithful to it.
</Tip>

***

## Knowledge types

Arklex supports two types of knowledge sources, both chunked and indexed so the simulated user can draw on their contents when forming conversation turns:

| Type          | Description                                                 |
| ------------- | ----------------------------------------------------------- |
| **Documents** | Uploaded files (PDFs, text documents, and similar formats). |
| **Websites**  | Web pages crawled and indexed from a URL.                   |

***

## Add documents

Navigate to **Knowledge** and select the **Documents** tab.

<Frame>
  <img src="https://mintcdn.com/arklex-06dfaf56/T15Gx3CKdjjM_ozo/images/knowledge-documents.png?fit=max&auto=format&n=T15Gx3CKdjjM_ozo&q=85&s=08402e67bf762449f4e07e635f9c3392" alt="Knowledge documents tab" width="3420" height="1958" data-path="images/knowledge-documents.png" />
</Frame>

**Upload** — Click **Upload Document** and select a file. Once uploaded, it's processed and made available to attach to scenarios. Each entry shows its name, upload date, and processing status (Pending, Processing, Ready, or Failed).

**View** — Click any row to see the document's content and metadata. A document that fails to process shows an error with guidance on supported formats.

**Delete** — Open the document's detail page and use the delete action. Scenarios that reference it lose access to its content for future simulations.

***

## Add websites

Navigate to **Knowledge** and select the **Websites** tab. Two options are available:

<CardGroup cols={2}>
  <Card title="Add Domain" icon="sitemap">
    Crawl and index a domain across linked pages. Set a domain URL and page limit (1–1,000).
  </Card>

  <Card title="Add Link" icon="link">
    Index a single URL or YouTube video. Best when you have one specific page or video to add.
  </Card>
</CardGroup>

<Frame>
  <img src="https://mintcdn.com/arklex-06dfaf56/T15Gx3CKdjjM_ozo/images/knowledge-websites.png?fit=max&auto=format&n=T15Gx3CKdjjM_ozo&q=85&s=660102ff9e90b1fb6dc072d1aa03ea65" alt="Knowledge websites tab" width="3420" height="1959" data-path="images/knowledge-websites.png" />
</Frame>

Each website entry shows its URL, when it was added, and its processing status. Click any row to view the indexed content and metadata, or open its detail page to delete it.

***

## Attach knowledge to scenarios

Once documents or websites are in the knowledge base, attach them to individual scenarios on the scenario detail page. A simulated user with attached knowledge references its contents when relevant during a conversation — which powers three kinds of testing:

* **Faithfulness testing** — verifying the agent's responses align with what a knowledgeable user would expect from documented facts.
* **Grounded evaluation** — ensuring the agent doesn't hallucinate information that contradicts the documents the user has access to.
* **Edge-case coverage** — giving simulated users specific product specs, pricing tables, or policy details that reveal gaps in agent knowledge.

***

## FAQ

<AccordionGroup>
  <Accordion title="What file formats are supported for document uploads?">
    Commonly supported formats include PDF, TXT, and DOCX. If a document fails to process, check that it isn't password-protected and is within the supported file size limit.
  </Accordion>

  <Accordion title="Does adding a website crawl linked pages?">
    It depends on the option. **Add Domain** crawls a domain and indexes multiple pages up to the maximum page count you set. **Add Link** indexes only the single URL or YouTube video you provide.
  </Accordion>

  <Accordion title="How current is the indexed website content?">
    Content is indexed when you add the URL. Arklex doesn't automatically re-crawl when the source page changes — delete and re-add the URL to refresh it.
  </Accordion>

  <Accordion title="Can I share knowledge items across multiple scenarios?">
    Yes. A single document or website can be attached to as many scenarios as needed. Updating the source document doesn't affect simulations that have already run.
  </Accordion>
</AccordionGroup>
