# Knowledge base

> Let AI answer from your workspace documents and company context, without ever showing anyone a document they cannot open.

Source: https://docs.deerapp.co/en/ai/knowledge_base/

The knowledge base lets AI search the documents in your workspace and answer with links to its sources. It is part of the (Pro) plan, together with AI.

File storage itself is available on every plan. On Free and Plus, your files stay in **Files** as usual. Only AI indexing and search need Pro.

![Workspace documents in Files that AI can search on Pro](https://deerapp.co/assets/shots2/ai_scene_library_en_dark.png)

## What gets indexed

On Pro, Deer indexes two kinds of files:

- Files in **Files**: private, team and workspace files alike.
- Files sent in channels and direct messages, including files you attach in your conversations with AI.

Deer looks for new and changed files every 30 seconds and indexes them in the background. When a file changes, it is indexed again. When a file is deleted, its passages leave the index.

Indexing does not count toward your workspace's monthly AI tokens.

### Formats

| Format | How it is read |
| --- | --- |
| PDF with a text layer | Page by page. |
| Word (DOCX, DOCM, DOTX) and OpenDocument text | Paragraph by paragraph. |
| Excel (XLSX, XLSM, XLTX) and OpenDocument sheets | Row by row, keeping the row numbers. |
| PowerPoint (PPTX, PPTM, POTX, PPSX) and OpenDocument slides | Slide by slide, with speaker notes. |
| EPUB, RTF and HTML | Section by section, or as one text. |
| Plain text such as CSV, TSV, JSON, Markdown, XML or YAML | As text. |

Files larger than 10 MB, scanned PDFs without a text layer, images, audio, video, archives and encrypted or damaged files are not indexed. Older formats (DOC, XLS, PPT, Pages, Numbers, Keynote) are not read: save them as DOCX, XLSX or PPTX.

You can still attach a scanned PDF or an image to a message, and AI can look at it with that request when your workspace's AI reads images. See [Read attached files](https://docs.deerapp.co/en/ai/overview/#attached-files).

## Company knowledge

Company knowledge is a short shared text that AI reads with every request in the workspace. Use it for facts people would otherwise repeat: what the company does, which team owns what, the terms you use and your approved procedures.

#### Open the setting
Go to **Settings**, then **General**. Workspace owners and admins see **Company knowledge for AI**.

#### Write it
Fill in **Company information and procedures**, up to 60,000 characters.

#### Save
Select **Save company context**.

Everyone in the workspace benefits from this text through AI, so do not put anything in it that some members should not see. AI treats it as reference facts. It cannot change permissions or approvals.

## How AI finds answers

When a question needs your documents, AI searches the knowledge base by meaning, not only by exact words.

- **Passages, not whole libraries.** Each search returns up to 12 matching passages, and AI can read a whole indexed document when it needs more.
- **Answers cite their sources.** AI links each fact to the document it came from, with the page, paragraph, row or slide where it can. Opening a link downloads the original file after Deer checks your access again.
- **A file name narrows the search.** Write the exact file name, such as `pricing_2026.pdf`, to search only that file. If you cannot open a file with that name, AI finds nothing rather than searching other files.
- **Live records are read live.** Tasks, teams, meetings and messages are read directly from Deer when AI needs them, so they are always current.

## Permissions are respected

AI never uses a document to answer someone who cannot open it.

| Where you ask | What AI can use |
| --- | --- |
| Your private conversation with AI or an agent | Documents and conversations you can open. |
| A channel or direct message | Only what everyone in that conversation can open, plus the conversation's own history and attachments. |

Deer checks access to every source at each stage: before searching, before AI uses a passage, before it writes generated content anywhere and before it publishes its reply.

- **Links do not grant access.** Posting a link to a private file in a channel does not let anyone else open it, and AI will not use it there.
- **Private content stays private.** Before AI writes into a channel, team or shared file, Deer checks that everyone who can read the destination can also read every source AI used.
- **Answers follow their sources.** If a source is later deleted or its sharing narrows, answers built on it are hidden and show that the source's access changed.

## Limits

| Limit | Value |
| --- | --- |
| Plan | Pro |
| Largest file AI reads | 10 MB |
| Passages per search | Up to 12 |
| Company knowledge | 60,000 characters |
| New and changed files | Picked up every 30 seconds |

Indexing pauses while AI is paused for the workspace or the monthly token limit is reached, and resumes on its own afterwards. If a workspace leaves Pro, AI stops searching and indexing. Your files stay in **Files**. See [Usage and limits](https://docs.deerapp.co/en/ai/usage/).
