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

# Include data

> Load whole documents into an agent's context, most recent first, for summaries and reviews that need everything rather than the best matches.

With **Include all data**, the agent reads whole documents instead of searching for passages. It loads the most recent documents first and keeps going until it reaches the model's limit or the time range you set. Use it when the answer depends on everything in a set of documents, not only the parts that match the question.

## When to use it

Include data works well for recurring summaries and reviews, for example:

* A weekly digest of a Slack channel.
* A summary of last month's meeting notes.
* A review of every support ticket from yesterday.

For questions that only need a few relevant passages, like "What's our parental leave policy?", [search](https://docs.dust.tt/docs/user-documentation/agents/knowledge/search-data-sources.md) is faster and covers more data.

## How much data the agent sees

A model can only read a limited amount of text at once, called its [context window](https://docs.dust.tt/docs/user-documentation/agents/llm-best-practices/understanding-llms-context-windows.md). When the selected data doesn't fit, the agent keeps the most recent documents and tells you the cutoff in the answer details, for example "Only includes documents since" a given date.

To control what the agent reads, set a time range when you configure the knowledge, like the last 7 days. A shorter range keeps the agent focused on recent content and makes answers faster.

## Set up include data

**1. Add knowledge**

In the Agent Builder, in **Capabilities and knowledge**, click **Add knowledge**.

**2. Select data sources**

Pick a Space and select the folders, channels, or pages the agent needs. Click **Next**.

**3. Choose Include all data**

Pick **Include all data**, set a time range if needed, and describe what the data contains. To narrow the data with labels, click **Filters**. Save the agent.

## Limits

* Include data doesn't read tables or spreadsheets. Use [table queries](https://docs.dust.tt/docs/user-documentation/agents/knowledge/table-queries.md) for those.
* On large sources, older documents are left out, and long documents can be only partly included. Narrow the folders or the time range to make sure the agent sees what matters.
* When the agent uses several knowledge sources in the same step, like search and include data together, they share one budget, so each brings in less. For large sources, give include data its own agent.

## Related

> [card] [Knowledge](https://docs.dust.tt/docs/user-documentation/agents/knowledge)
>
> Compare the ways an agent can use your data.

> [card] [Search data sources](https://docs.dust.tt/docs/user-documentation/agents/knowledge/search-data-sources.md)
>
> Find the most relevant passages instead of loading everything.

> [card] [Extract data](https://docs.dust.tt/docs/user-documentation/agents/knowledge/extract-data.md)
>
> Pull the same fields out of many documents.

> [card] [Understanding context windows](https://docs.dust.tt/docs/user-documentation/agents/llm-best-practices/understanding-llms-context-windows.md)
>
> Learn how much text a model can read at once.


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