Skip to Content
Assistant Core

Knowledge Base best practices

Prepare and organize knowledge base documents so your assistant finds the right passage and answers accurately.

The assistant does not read a whole document for every question. It searches for the few passages that best match the question and answers from those. Write and organize documents so the right passage is easy to find and makes sense on its own.

How documents are split

  • Each document is split into passages of about 4,000 characters, with some overlap between neighbors.
  • A search returns the 5 best-matching passages by default, and at most 10.
  • Search works by meaning, so a question in English can find a passage in Vietnamese, but matching words still help.

Structure each document

  • Use clear headings and keep each section about one topic.
  • Put the key fact in the same section as its context. "Shipping is free" in one place and "for orders over 500,000 VND" three pages later may end up in different passages.
  • Repeat the product or policy name in each section instead of writing "it" or "this plan".
  • Prefer several focused documents to one very large file. A file named for its subject (return-policy.pdf) also helps the assistant find it by name.

Choose the right format

ContentRecommended format
FAQs, policies, guides.docx, .md, or a text-based .pdf with headings
Price lists, catalogs, specifications.xlsx or .csv with one header row and one item per row
Help-center or product pagesAdd the web pages
Scanned paper documentsConvert to a text PDF first. Only part of a scan is read; see the limits

Images inside Word files and slides are not read. Put important information in text.

Keep the knowledge base current

  • Delete outdated documents. If an old and a new price list are both present, the assistant may quote either.
  • Remove duplicates and near-duplicates; they take up search results without adding information.
  • After a change, ask the assistant a question about it to check the answer.

What not to upload

  • Passwords, API keys, or internal credentials.
  • Personal data about customers or staff.
  • Anything you would not want the assistant to repeat to every user: all users of the assistant share the same knowledge base.

Last updated on