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

# Add knowledge to an agent

> Choose a source type, understand indexing, and keep agent knowledge up to date.

Open an agent and select **Knowledge** to provide the information it should use. ReyGrid supports text, question-and-answer entries, files, and website sources.

## Choose a source type

| Source | Use it for |
| - | - |
| Text | Focused reference material entered directly. |
| Q\&A | A known question with its preferred answer. |
| File | Documents such as PDF, TXT, DOC, and DOCX. |
| Website | Pages on a website that should be available to the agent. |

Prefer clear, current material. Remove duplicate or outdated content when it could conflict with the information you want the agent to use.

## Saving and indexing are separate steps

Adding a source saves it to the agent, then indexing prepares its content for retrieval. A saved source can still be processing. Check its status in the Knowledge list and wait for indexing to complete before evaluating questions that depend on it.

If indexing fails, inspect the source status for the available error or retry action. Correct the source when needed, then retry indexing. Removing a source from the agent and removing it from the retrieval index are distinct parts of the operation; if a network or service error interrupts deletion, refresh the list and check the source state before repeating the action.

## Verify the result

After indexing completes, ask specific questions in the agent's [Playground](https://docs.reygrid.com/platform/test-improve.md). If relevant content is not retrieved, check that the detail is present, unambiguous, and not contradicted elsewhere. For programmatic source management, see the [Knowledge API guides](https://docs.reygrid.com/rest-api/knowledge.md).


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