# AI knowledge sources

Give your AI agents the price lists, policies and FAQs they need to answer customers accurately.

Source: https://support.rework.com/article/prospect-ai-sources

An AI agent only knows what you give it. Knowledge sources are that material (your price list, your policies, your FAQ), broken into passages the agent can look up while it writes a reply.

## Before you start

Sources live under **Settings** › **AI Sources**, in the **AI (beta)** group, and are admin-only. The **AI Knowledge Sources** page lists every source with its status tabs **(1)**, your storage use **(2)**, the **Add Source** button **(3)**, the **Services** that may use each source **(4)** and its **Active** toggle **(5)**. The **All services** filter next to the storage figure narrows the list to one service.

![AI Knowledge Sources page: (1) the All, Pending, Embedded and Error tabs, (2) storage used out of 20 MB, (3) the Add Source button, (4) the Services column showing Support and Sales, (5) the Active toggles](https://storage.googleapis.com/reworkv3-public/success/260928/peO2TcPApdSCdQYVwBRa1cZzseKm7akM42ERqUbVxdAuQAMMDSQjfcxWUpjQO85M/img.V8bjEJn4JGXMF2mvEn23mMg8pob1U8xDMDGiCNemwsReTjWh8IjW2jyzNMi4I622.png)

Adding a source is only half the job: an agent reads from the knowledge base only when its **Search Knowledge** tool is switched on. See [AI agents](https://support.rework.com/article/prospect-ai-agents).

## Add a source

1. Go to **Settings** › **AI Sources** and click **Add Source**. The **Add AI Source** dialog opens.
   
2. Pick a **Source Type** **(1)**: **File**, **Text** or **Q&A**.
   
3. Give it a **Name** **(2)**. This is what you'll recognise it by in the list.
   
4. Add the **Content** **(3)**. **File** takes one file. **Text** and **Q&A** take pasted content.
   
5. Under **Services** **(4)**, pick the services whose AI agents may retrieve this source. Leave every service picked to share it with all of them, including services added later.
   
6. Click **Add Source** **(5)**.
   

![Add AI Source dialog: (1) Source Type, (2) Name, (3) Content, (4) Services with its note on which AI agents can retrieve the source, (5) the Add Source button](https://storage.googleapis.com/reworkv3-public/success/260928/ePzXu0pEf33F1SYcadFMBRk40HIdCCxFDy4GZ1hMQ1HISQAioMy5piU2uIByc4PL/img.6ZedrBWtmKVoXieIDPimNGb6vak9Dfktfun8gz19DgjLh2JqvVdRenqXXgFFuHdB.png)

The source is saved immediately and processing starts in the background. The page confirms _Source added — embedding started._ ☕

## What formats work

**File** accepts **PDF, DOCX, TXT, MD**, one file per source.

> **Warning:** Only the text in a file is read. A scanned or image-only PDF produces nothing, and the source ends up marked **No text**.

**Text** is for pasted prose: a policy, a product description, a page of notes.

**Q&A** is for question-and-answer pairs, written as blocks separated by a blank line, for example _Q: What are your hours? A: Mon–Fri, 9am–6pm._ Each block is kept together, which makes Q&A the most reliable format for short, factual answers.

## How the content is used

Each source is split into passages. Long text is cut at its headings and sections, so a passage keeps the heading it sat under; a Q&A source is cut at the blank lines, giving one passage per pair.

When a customer asks something, the agent searches the passages rather than the whole document, matching both on meaning and on the words used, and pulls the few most relevant ones into its answer. That's why a well-titled, well-sectioned document answers better than one long wall of text.

Click the **⋯** menu on a row **(1)** for **View content**, **Change services** and **Re-embed** **(2)**, plus **Remove**. **View content** shows the original content next to the passages that were produced from it (its embedded chunks), so you can see exactly what the agent will find.

![Row menu of the Pricing and plans source: (1) the more-actions button, (2) View content, Change services and Re-embed, with Remove below](https://storage.googleapis.com/reworkv3-public/success/260928/7PoxK2gocNe1z1DeTaX3YH8IRcq6mavIu5YZ9iw764DYvuN8sYN1isQtyAyZtDxh/img.ATwiNqqOXIRerEfrCtVEs1AtmaPxw2ojmOQ49Xz5PrgVbTlxTS6JdyvqMy9Rs44e.png)

## Scoping a source to inboxes

The **Services** column says who can use a source. **All services** means every inbox; otherwise only the inboxes listed may retrieve it.

**Change services** in the row menu changes that later. As the dialog notes, changing the scope doesn't re-process the content: it takes effect immediately.

## Statuses

The list's tabs (**All**, **Pending**, **Embedded**, **Error**) filter by processing state.

| Status | What it means |
| --- | --- |
| **Pending** | Queued or being processed. It isn't searchable yet. |
| **Embedded** | Ready. The agent can find it. |
| **Error** | Processing failed; the reason is shown under the name. |
| **No text** | Nothing could be extracted, typically a scanned PDF. |
| **Unsupported** | The file type can't be read. |

**Re-embed** in the row menu processes a source again. Use it after you replace a file, or to retry an **Error**.

The **Active** toggle takes a source out of use without deleting it: _Enabled — used in search_ versus _Disabled — excluded from search_.

## Storage

The header shows how much of your knowledge-base storage is used, as _used / total_. The allowance is 20 MB per workspace across all active sources. Removing a source frees its share again.

## Troubleshooting

- **The agent ignores a source.** Check its status is **Embedded**, its **Active** toggle is on, and its **Services** include the inbox the conversation belongs to. Then check the agent has **Search Knowledge** enabled.
  
- **A PDF shows No text.** It's an image of a document, not a document. Paste the text as a **Text** source instead.
  
- **Adding a source fails with _Knowledge base is full (20 MB)_.** Remove a source you no longer need, or disable and delete an outdated one, and try again.
  
- **The answer quotes old content.** Update the source and use **Re-embed**; editing the file elsewhere changes nothing on its own.
