Knowledge base
The knowledge base holds the documents a chatbot answers from: policies, product sheets, procedures, frequently asked questions. Each chatbot has its own.
Put only customer-facing material in it. Everything in a chatbot's knowledge base can end up in a reply to a customer.
Before you start
Set an embedding provider and model in the chatbot's settings. The embedding model turns text into a form that can be searched by meaning. It can be a hosted API or a local endpoint, like any other model.
Add documents
Open the chatbot and go to the Knowledge base tab.
- Upload documents: PDF, DOCX, Markdown, text or HTML files, up to 20 MB each.
- Add page: the address of a web page. Inferaz fetches it and keeps its text.
Each document is split into passages and indexed in the background. The list shows its status and the number of passages. A document is used in replies once it is ready.
Give documents clear titles. The chatbot names the document it answered from at the end of its reply, for example (Source: Warranty policy).
Keep it current
- Fetch again reloads a web page after it changed.
- To replace a file, delete the old document and upload the new one.
- Delete a document to stop the chatbot from using it.
Test what it finds
Test retrieval takes a question as a customer would ask it and shows the passages the chatbot would find, with their source. Use it after adding documents:
- If the right passage is not found, the document may say it in other words than customers use. Add the customer's wording to the document.
- If a passage from the wrong document comes first, two documents may contradict each other. Remove the outdated one.
How the chatbot uses it
For a question about policies, products, prices or procedures, the chatbot searches the knowledge base first and answers from what it finds. When nothing relevant is found and no tool answers the question either, it passes the conversation to your staff instead of guessing.