# Source: https://docs.agent.ai/builder/kb-and-files.md

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

# Knowledge Base & Files

[Knowledge bases in ](https://agent.ai/builder/files)[Agent.ai](http://Agent.ai) are organized collections of documents that your agents can reference in their workflows. Think of them as specialized folders containing information that you want your agents to know and use. You could have separate knowledge bases for product documentation, internal policies, and more.

Knowledge bases and files can be used in certain agent actions like:

[Get User KBs and Files](https://docs.agent.ai/actions/get_user_knowledge_base_and_files)

[Get Data from Builder’s Knowledge Base](https://docs.agent.ai/actions/get_data_from_builders_knowledgebase)

<img src="https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files.png?fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=730204d9290bf377707a3ab0072881f0" alt="Kb Files Pn" data-og-width="2664" width="2664" data-og-height="754" height="754" data-path="images/kb-files.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files.png?w=280&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=a5b891ee317f6ba5a16ee9b27b46d0ee 280w, https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files.png?w=560&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=e2a9e11070102606ff5dd5097a790ac1 560w, https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files.png?w=840&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=b97b500d38305e802608585e0a3a5f44 840w, https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files.png?w=1100&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=702b08dd5bc3b019ce919d453bc7a83e 1100w, https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files.png?w=1650&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=1c554607a1f6dcd81024a1a8113bc030 1650w, https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files.png?w=2500&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=aca9743abff6c295486536ca865baa9f 2500w" />

On this page, you can see how many files and vectors are in each knowledge base. Vectors are small chunks of text from your uploaded files that have been converted into a format the AI can search and understand. They help the agent find and respond with the right information.

You can edit the name or description by clicking the **Edit** icon. You can also delete a knowledge base by clicking the **trash** icon.

<Warning>
  Deleting a knowledge base will also delete all files within the knowledge base.
</Warning>

## Upload Files to Knowledge Bases

In the “Files” section, you can upload files directly to a knowledge base. You can also click on a file name to preview its contents or click the **trash** icon next to a file to delete it.

<img src="https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files2.png?fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=f4f5d95282f94f0221428a3b460f765a" alt="Kb Files2 Pn" data-og-width="2668" width="2668" data-og-height="1008" height="1008" data-path="images/kb-files2.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files2.png?w=280&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=d29d8cb68ff5d05d4f434f083627a78c 280w, https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files2.png?w=560&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=48a15e0ad069899e2170192203f712b4 560w, https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files2.png?w=840&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=e3d81b444c35d5fb3ef58f69d968d828 840w, https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files2.png?w=1100&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=c72338f19f115233eb83ab38bb1c92d8 1100w, https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files2.png?w=1650&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=72aa218950d65035c768015c4256e0eb 1650w, https://mintcdn.com/agentai/124P12t85CIi-2hH/images/kb-files2.png?w=2500&fit=max&auto=format&n=124P12t85CIi-2hH&q=85&s=4da0de5d76393258905c4bcb6a9d57d5 2500w" />

If you have any questions about setting up Knowledge Bases or managing your files in [Agent.ai](http://Agent.ai), please reach out to our [support team](https://agent.ai/feedback).