Usage

Learn how to use knowledge bases effectively

First step: Prepare your documents

Before uploading files to your knowledge base, it's crucial to understand how the AI will process them. The quality of your documents directly determines how well the LLM can answer questions.

Understanding how AI processes your documents

When someone asks a question, the AI doesn't read your entire knowledge base from start to finish. That would take a lot of time and resources. Instead, when documents are uploaded to the knowledge base, they are automatically organised in a way that LLMs can understand. This happens through a process called 'chunking'.

The files are converted to text and cut into bite-sized 'chunks'. The chunks are organised by topic, making it possible for the LLM to quickly find and compare relevant information with incoming queries. In short:

  1. Break documents into chunks - Like tearing pages out of a book and organising them by topic

  2. Search for relevant chunks - Like looking through index cards to find the right information

  3. Use the most relevant chunks - Like pulling out the most helpful pages to answer the question

Important to note is that when a question is asked, the LLM doesn't read the entire 'library', but only the chunks that its filing system deems the most relevant. As you can probably imagine, it is crucial that the right chunks are selected. Without them, the LLM doesn't have the information it needs and won't be able to answer the request properly. Because chunking happens automatically and uses simple rules (like cutting every x words), it doesn't always split documents at logical points. This means context can get lost and related information might end up in different chunks. You can help the LLM by creating documents that work well with this automatic chunking process.

Document guidelines

Avoid complex PDFs

PDFs can be problematic for knowledge bases because they often contain complex formatting that doesn't translate well when chunked.

Structure and formatting

Use clear headings and sections to break up your content.

Use bullet points and lists to make information scannable.

Write concise and focused text

Keep paragraphs short and focused on one topic.

Ensure each section covers only one topic.

Write context-rich content

Include relevant details that provide complete information.

Explain terminology and add synonyms

Define technical terms, jargon and acronyms.

Include alternative terms and synonyms.

Managing your knowledge base

Edit the knowledge base details

Click on the Edit button in the top right corner to edit the details of the knowledge base. The most important detail is the description. The description is used to generate an LLM intent that can be used in your App to recognize if a user talks about the contents of your knowledge base or not. Carefully tweak this description when you need to use an intent trigger based on this LLM intent.

Edit knowledge base

Upload files to your knowledge base

On the knowledge base page you can add files by dragging files on the page or simply clicking the button "Upload files". The knowledge base supports the file types defined in the limitations section.

If the upload is successful, a green checkmark icon is displayed in front of the file name. It might take a minute or so before it appears. If an explanation mark appears that means that the upload was not successful. You can click on the icon to review the explanation of the failure so you can take corrective measures.

Knowledge base files

Remove files from your knowledge base

Right click on the file name of one of your files in the knowledge base to open the context menu. Click on the delete button to remove the file from your knowledge base.

Removing files from your knowledge base

Rename files

Files can be renamed for the sake of keeping track and organising your knowledge base. Use descriptive names that help you identify the content quickly.

Metadata

Each file can contain one or more metadata items. These are used for the platform to keep track of the files on the Azure services that are used to provide the knowledge base services.

Don't change or remove the metadata of your knowledge base files since they are used to keep track of your files in the storage facility at Azure

Folders

Using the context menu by right clicking on a file you can create and manage folders. Files can be organised in folders. Folders don't have an effect on the workings of the knowledge bases. They are simply for you to organise and keep track of your files.

Best practices

  1. Start with your most important information - Upload the documents that answer the most common questions first

  2. Test with real questions - Ask the types of questions your customers would ask and see if the LLM finds the right information

  3. Keep documents updated - Remove outdated information and add new content regularly

  4. Use descriptive file names - Make it easy to find and manage your files

  5. Organise with folders - Group related documents together for easier management

Last updated

Was this helpful?