Creating knowledge bases
Knowledge bases provide the unstructured data that assistants use to generate responses to user questions.
A knowledge base comprises one or more data sources. Data sources added to a knowledge base are indexed for use in assistants. You can reindex sources that have been updated, either manually or by scheduling a synchronization with the data source. For more information, see Indexing knowledge base data sources.
You can have five knowledge bases per assistant.
Supported file types and data sources
A knowledge base has the following data source limitations:
-
Maximum file size: 50 MB
-
Maximum number of files per knowledge base: 10,000
The following file types are supported as knowledge sources for Qlik Answers knowledge bases:
-
TXT
-
PDF
-
DOC, DOCX
-
PPTX
-
HTM, HTML
-
MD
-
ODT
-
RTF
The following connections are supported for accessing supported file types:
- Amazon S3
- Amazon S3 V2
- Azure Storage
- Dropbox
- Google Cloud Storage
- Office 365 Sharepoint
- SFTP
Creating new knowledge bases
You can add data sources for the knowledge base during creation or add them later.
When adding data sources from connections, you can add files manually or select them dynamically. Dynamically selecting files allows you to select the folder within the connection to take files from. You can then use filter rules and regular expressions. Filter rules include:
-
Folder depth
-
Max files count
-
Max files per folder
-
Max file size
-
Modified after date
Do the following:
-
Go to the Create page of the Analytics activity center and select Knowledge base.
You can also create knowledge bases from Answer in Analytics or by clicking Create new > Knowledge base in Catalog.
-
After Name, enter a name for your knowledge base.
-
Optionally, after Description, enter a description for the knowledge base.
-
After Space, select the destination space for the knowledge base.
-
Optionally, after Tag, enter any tags you want to apply to the knowledge base.
-
Click Create.
-
Add data files to the knowledge base. You can:
-
Add files from a connection.
Do the following:
-
Click Use data connection.
-
Select a data connection and click Next.
-
To select files manually:
-
Click Manual selection.
-
Select the files to add and click Select.
-
-
To select files dynamically:
-
Click Dynamic rules.
-
After Folder, select the folder.
-
Either use the filter rules or add regular expression patterns to select which files to include.
-
Click Select.
-
-
-
Add files from the catalog.
Do the following:
-
Click Choose from catalog.
-
Select the files to add and click Select.
-
-
Upload files from your computer.
Do the following:
-
Click Browse and upload files.
-
In Add new files to knowledge base, click Browse and import files.
-
Drag and drop your data files into the dialog.
Alternatively, click Browse and navigate to your data files.
-
Select a destination space for the files.
-
Click Upload.
-
If you want to add data files later, close Add new files to knowledge base.
-
The files added to the knowledge base are ready to be indexed. For more information, see Indexing knowledge base data sources.
You can add additional data sources to the knowledge base. For more information, see Adding data sources to knowledge bases.