Skip to content
GitHubDiscord

Setup knowledge bases

To import a knowledge base, open Knowledge Bases and click “Add Knowledge Base”.

Knowledge base list with add knowledge base button

Fill in the knowledge base details:

Knowledge base import form for JSON and JSONL files

  • Name: The name of the knowledge base.
  • File: The document to upload, containing the knowledge base content. Supported formats are:
    • JSON: A JSON file containing an array of objects
    • JSONL: A JSON Lines file with one object per line

Each object in your JSON or JSONL file should have the following structure:

{
"text": "Your document content here",
"topic": "Optional topic classification"
}
  • text (required): The document content
  • topic (optional): The topic classification for the document
  • If the text has a value but the topic is blank, the topic will be set to ‘Others’. However, if all topics are blank, the topic will be automatically generated.
  • If both the text and topic are blank, or if the text is blank but the topic has a value, the entry will not be imported.

Once imported, the knowledge base shows its documents and topics. If no topics were uploaded, Giskard Hub identifies and generates them. In the example below, the knowledge base is ready with 206 documents and 5 topics.

Imported knowledge base showing document count and topics