# Knowledge base (/docs/agent/knowledge-and-tools/knowledge-base)

> Provide your agent with domain-specific knowledge using document-based references.

Knowledge Base allows your agent to access and utilize external documents and
files, enabling it to reference specific information during conversations
with users.

With it you can:

- Provide your agent with domain-specific knowledge
- Upload documents for reference during conversations
- Ensure accurate and consistent information delivery
- Reduce the need for manual information updates

### Setup option 1: from agent configuration [#setup-option-1-from-agent-configuration]

- Go to your agent's edit page
- Select the **Knowledge Base** tab
- Upload files or select from your existing library
- Files will be automatically processed and made available to your agent

![Upload or select files from agent editor](/docs-images/guides/knowledge-base/agent-config.png)

### Setup option 2: from the main dashboard [#setup-option-2-from-the-main-dashboard]

- Go to the **Files** page in your dashboard
- Upload files or select from your existing library
- Go to your agent's edit page
- Select the **Knowledge Base** tab
- Attach files for the agent

![Dashboard file upload](/docs-images/guides/knowledge-base/dashboard-1.png)

![Link uploaded files to agent](/docs-images/guides/knowledge-base/dashboard-2.png)

### Configuration guide: uploading files [#configuration-guide-uploading-files]

- Click the **Upload File** button in the Knowledge Base section
- Select documents from your computer (supported formats: PDF, DOCX, PPTX, XLSX, CSV, TSV, TXT, MD, HTML and HTM, up to 10 MB per file)
- Total storage depends on your plan. See [Plans and pricing](/docs/pricing)
- Wait for processing to complete
- Newly uploaded files will appear in your file library

### Using with your agent [#using-with-your-agent]

- The agent will automatically reference these documents when answering user queries
- Information from these files will be used to provide accurate and relevant responses
- The agent will cite specific documents when providing information from them

### Pro tips [#pro-tips]

- Upload comprehensive documentation for best results
- Use descriptive filenames to easily identify content
- Organize information in clear, structured documents
- Regularly update your knowledge base with the latest information
- Attach only relevant files to each agent to maintain focus

  **Video tutorial: Adding Knowledge Base.** Watch this guide on how to add
  and manage knowledge base documents for your agent on
  [YouTube](https://www.youtube.com/watch?v=7FJoWB4UqRg).