# Knowledge base

Add curated text and documents to a call service so any AI voice agent routed to that service can answer callers from them.

Source: https://support.rework.com/article/call-knowledge-base

The knowledge base is what an AI voice agent answers from. It belongs to the **call service**: whichever agent a router sends a call to, the agent searches the knowledge of the service that call was routed to. This lets you reuse one agent across several lines, each with its own facts.

## Who can do this

- **Add and remove** knowledge: people who can manage the call service.
- **See** the list of sources: people who can view the call service.

## Before you start

Have the content ready: FAQs, price lists, opening hours, policies, product descriptions. Text-based PDF, Word (DOCX) or plain-text (TXT) files work best.

## Steps

### Open the service's knowledge

1. Go to **Settings → Services**.
2. Click the service (or open the row's menu and choose **Service settings**).
3. In the settings sidebar, select **Knowledge** — "Sources this service answers from. Any AI agent routed to this service uses them."

### Add curated text

Use this for short, precise answers you write yourself.

1. Under **Curated text**, enter a **Source name** (e.g. "Opening hours").
2. Choose a **Language**: **Both / unspecified**, **Vietnamese** or **English**.
3. Paste or type the **Content**.
4. Click **Add knowledge**. When it's done you see **Knowledge indexed**.

Both the name and the content are required.

### Upload a document

1. Under **Upload a document**, choose a file — **PDF, DOCX or TXT · up to 20 MB**.
2. If the document is in one language only, first pick that language in the **Language** field of the **Curated text** panel — the upload uses the same setting.
3. Click **Upload and index**. The text is extracted from the file and indexed; when it's done you see **Knowledge file indexed**.

The source is named after the file.

### Remove a source

1. Click the bin icon next to the source.
2. Confirm **Remove this knowledge source? Indexed content is dropped.**

The agent stops using it on the next question it answers. To change a source, remove it and add the corrected version.

## How it works

- **Chunking.** Each source is split into overlapping passages of roughly a paragraph or two. When the caller asks something, the agent searches the service's passages and uses the best matches (up to five) to compose its spoken answer.
- **Keyword matching.** Search matches the words in the caller's question against the words in your passages. Write knowledge using the words your callers actually say ("refund", "opening hours", product names), and add brand names to the agent's **Company terminology** so they are heard correctly.
- **Relevance threshold.** Passages that match only weakly are ignored. If nothing is relevant enough, the agent says "I could not find reliable information to answer that…" instead of guessing.
- **Language.** A source marked **Vietnamese** is only used when the caller is speaking Vietnamese, and **English** only for English. **Both / unspecified** is used for every call.
- **Status.** Each source in the list shows its type (**text** or **file**), its file name or language, and its status: **indexing**, **complete** or **failed**. Only **complete** sources are searched.
- **Citations.** Every answer the agent gives records which sources it used, so you can trace an answer back to its source.

## Good to know

- A single source can hold up to about one million characters of text.
- Scanned PDFs (images of pages) usually contain no extractable text. The upload then fails with "No extractable text was found in the file" — use a text-based PDF or paste the content as curated text.
- Only PDF, DOCX and TXT are accepted. Other formats are rejected with "Provide a PDF, DOCX or TXT file".
- The agent answers in short spoken sentences built from your passages. If the AI language service is briefly unavailable, it reads out the best-matching passage directly — another reason to write knowledge in clear, speakable sentences.
- Knowledge does not move with the agent. If you route a call service to a different agent, the new agent answers from the same service knowledge.

## Related articles

- [AI voice agent overview](https://support.rework.com/article/call-ai-voice-agent-overview)
- [Create a voice agent](https://support.rework.com/article/call-create-a-voice-agent)
- [Review voice agent calls](https://support.rework.com/article/call-review-voice-agent-calls)
- [Create and configure a call service](https://support.rework.com/article/call-create-and-configure-a-call-service)
