# Knowledge base (/luso8/knowledge-base)

> Upload the documents your AI agents search to answer customers accurately, organized in folders and indexed for semantic search.

The knowledge base is the library your AI agents read from when they answer on chat, in support conversations and on the phone. Good knowledge means accurate answers: when a customer asks a question, the agent searches the relevant folders, finds the closest passages and grounds its reply in them. If nothing matches, it says it does not have that information instead of guessing.

Find it under **Data → Knowledge**.

## Folders and documents [#folders-and-documents]

Knowledge is organized into **folders**, such as *Product*, *Pricing* or *Policies*. Inside a folder you add **documents**. You choose which folders each [AI agent](/luso8/agents) can search, so a sales agent and a support agent can read different material.

## Add documents [#add-documents]

1. Open **Data → Knowledge** and pick a folder, or create a new one.
2. Choose **Add knowledge** and upload one or more files.
3. Wait until the document shows **Ready**. From then on, agents can use it.

Supported file types: **PDF**, **DOC**, **DOCX**, **TXT**, **MD**, **CSV** and **XLSX**.

### Processing stages [#processing-stages]

Each document goes through these stages before it is searchable:

| Stage | What happens |
| --- | --- |
| **Upload** | The file is received. |
| **Validation** | The file type and contents are checked. |
| **Metadata** | Title and other details are extracted. |
| **Governance** | The document is checked before it is made available to agents. |
| **Processing** | Text is extracted and split into passages (chunks). |
| **Indexing** | Passages are indexed for semantic search. |
| **Ready** | Agents can search the document. |

The knowledge page shows how many chunks each document produced and how much storage your workspace uses.

## Test what agents will find [#test-what-agents-will-find]

Use the search box on the knowledge page to run a semantic search, the same kind of search your agents run. If the right passage does not come back for a question your customers ask, improve the document or split it up.

## Write knowledge that answers well [#write-knowledge-that-answers-well]

- **One topic per document.** Focused documents search better than one large file.
- **Use clear headings and plain language.** Agents quote passages, so write the way you want to be quoted.
- **Tidy spreadsheets.** Spreadsheets are read row by row, so a table with clear column headers lets an agent find the exact line a caller asks about.
- **Keep it current.** When prices or policies change, replace the document so agents do not repeat old information.

<Callout type="info">
Agents also use your published help center articles, which visitors can read themselves in the chat widget. See [Web chat widget](/luso8/inbox/web-chat-widget#help-articles).
</Callout>

## Related [#related]

<LinkGrid>
<LinkItem href="/luso8/agents" title="AI agents">
Choose which folders each agent can read.
</LinkItem>

<LinkItem href="/luso8/guides/website-ai-agent" title="Put an AI agent on your website">
Knowledge, agent and widget, end to end.
</LinkItem>

<LinkItem href="/developers/api-reference" title="API reference">
Upload documents and search from your own code.
</LinkItem>
</LinkGrid>