Knowledge base: Best practices when creating knowledge sources
What is it?
The quality of the sources decides the quality of the answers. This article covers how to write, organize, and maintain sources so the Knowledge Base retrieves the right text.
Keep sources up to date
- When a web page changes, open the source and click Sync. Check important URL sources on a regular schedule.
- When a document changes, click the file name on the card and upload the new file. Do not leave the old and new versions as two active sources unless you want the bot to use both. Conflicting text produces inconsistent answers.
- Open Version history when you need to see when a source last changed.
Organize sources by topic
Create a separate source for each topic, such as shipping, returns, payments, product information, troubleshooting, or opening hours. Separate sources are easier to update and easier to select on a Specialist.
Inside a long document, use clear headings, short sections, descriptive titles, and the same terms throughout. Keep one topic in each section.
Write sections that stand on their own
Each section should make sense without the rest of the document. Instead of "The standard period applies," write "Customers can return unused products within 30 days of delivery."
Repeat the important details. Do not expect the bot to connect two distant sections. Include the subject of the rule, the conditions and exceptions, time limits, the country or market, relevant links, and how to reach a person when the source is not enough.

Use clear language
Short sentences work better. "Customers can cancel an order before it is shipped" is clearer than a sentence that says cancellation may potentially be possible depending on the circumstances.
Avoid unexplained abbreviations, internal jargon, rules that contradict each other, and phrases such as "as mentioned above."
Do not add conflicting sources
Do not add two sources that answer the same question differently, such as a 14-day return window in one source and a 30-day window in another. If the rule changes by country, product, or customer type, write that condition in the same section.
Be careful with tables
Tables are less reliable than sentences. Where you can, rewrite the important cells as sentences or a list. Instead of a Region and Delivery time table, write "Deliveries to Spain usually take 2 days" and "Deliveries to France usually take 4 days." If you keep a table, repeat the key facts in the text around it.

Review content copied from a website
Before you save exported website text, check that links still work, remove menus and repeated headers and footers, confirm that important sentences were not dropped, and include any condition that applies only to a country or a type of customer.

Choose a file or a URL
Use a URL when the page is kept up to date, you want to click Sync later, and the page is public.
Use a file when the content is an internal document, the page is not public, you need a fixed version, or the content already lives in a PDF, Word, Excel, or text file.
Test the source
After you add or update a source:
- Open Test query.
- Select the source under Sources to query from.
- Enter a question a customer would actually ask.
- Click Test and read the chunks.
- If the right answer is missing or unclear, improve the source and test again.
Also try the same question in different words, in another language, with a missing detail, and with an exception.
A simple maintenance routine
- Remove sources you no longer want the bot to use.
- Click Sync on URL sources.
- Replace outdated files.
- Open Show extracted chunks on important sources.
- Run Test query on common questions, then test the Specialist that uses those sources.
Select the sources on a Specialist
The Specialist searches only the sources you add on its Knowledge tab. Open the Specialist, click Add sources, select the sources for that Specialist, and click Add. Do not add sources that answer the same question differently.