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

# Data sources

> Attach organization documents to an agent, in the prompt or through RAG

Data sources are the documents an agent is allowed to read. The organization holds the documents. This tab decides which of those documents this agent can use, and how they are retrieved.

Open the agent, then Data Sources. To upload or edit the files themselves, use Manage, which opens the organization Data Sources page.

![Data Sources tab with retrieval settings and the 1 MB meter](https://mintcdn.com/devpro-38b0cd42/hdbCFLBnzC5gA6Ir/images/configure/datasources-tab.jpg?fit=max\&auto=format\&n=hdbCFLBnzC5gA6Ir\&q=85\&s=b89c788ebbbe439e8bf89bba3e89c4b8)

Data Sources tab. Retrieval is prompt context only, no documents are assigned, and the meter is 0 B of 1 MB.

## What a document can be

On the organization page, a document is one of:

| Type | What you give it |
| - | - |
| URL | A page to fetch. |
| Text | Text you paste in. |
| File | A PDF or a TXT file. |

Documents are split into chunks. Assigning a document to an agent is what makes those chunks available to that agent.

## Retrieval

| Mode | What the agent sees |
| - | - |
| RAG off | The assigned documents are appended to the agent's context. |
| RAG on | The agent gets the chunks that match the conversation, not the whole corpus. With Agentic RAG off, every transcript entry runs a search for those chunks. |

Turn RAG on once the knowledge base is large. RAG is required when the assigned documents pass 100 KB. The agent can hold 1 MB of assigned documents.

![Data source settings drawer with Use RAG switched off](https://mintcdn.com/devpro-38b0cd42/hdbCFLBnzC5gA6Ir/images/configure/datasources-rag.jpg?fit=max\&auto=format\&n=hdbCFLBnzC5gA6Ir\&q=85\&s=895bda7a9667e57c5f5f6b53f8b2bb63)

Retrieval settings with Use RAG off. Off prepends documents to the system prompt.

### When RAG is on

These fields appear after you turn **Use RAG** on.

| Setting | What the form says |
| - | - |
| Similarity threshold | Minimum similarity (0 to 1) to include a chunk. Default is 0.3. The placeholder is `0.7`. |
| Agentic RAG | Let the model decide when and how to query the knowledge base. Off means every transcript entry runs the search. |
| Tool name override | Shown only when Agentic RAG is on. Leave it empty for the default `search_knowledge_base`. |
| Max results | Maximum chunks to return. Leave it empty for the default. The field does not print that number. |

The meter tooltip says RAG is required above 100 KB. When the assigned documents force RAG, the drawer says RAG is required because the knowledge base exceeds 100 KB.

## Assigning documents

Under the retrieval settings, assign any document from the organization to this agent. Unassign removes it from this agent only. The organization copy stays.

The meter on the tab is this agent's 1 MB budget. Assigning a document that would pass 1 MB is blocked. The document is not truncated. The "RAG required above 100 KB" line is the same budget: under 100 KB you may append the text to the prompt, over 100 KB you have to use RAG.

The tab shows how many organization documents are assigned, and **Assign** opens the list. **Manage** opens the organization Data Sources page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.