Setup knowledge bases
In this section, we will walk you through how to setup knowledge bases using the Hub interface.
Add a knowledge base
Section titled âAdd a knowledge baseâOn the Knowledge Bases, click on âAdd Knowledge Baseâ button.

Knowledge base fields
Section titled âKnowledge base fieldsâThe interface below displays the knowledge base details that need to be filled out.

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
File formats
Section titled âFile formatsâJSON/JSONL format requirements:
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 contenttopic(optional): The topic classification for the document
Validation rules
Section titled âValidation rulesâGeneral rules for all formats:
- If the
texthas a value but thetopicis blank, thetopicwill be set to âOthersâ. However, if all topics are blank, thetopicwill be automatically generated. - If both the
textandtopicare blank, or if thetextis blank but thetopichas a value, the entry will not be imported.
The interface below displays information about the knowledge base and its content with corresponding topics. As mentioned above, if no topics were uploaded with the knowledge base, Giskard Hub will also identify and generate them for you. In the example below, the knowledge base is ready to be used with over 1200 documents and 7 topics.

Next steps
Section titled âNext stepsâNow that you have created a project, you can start setting up your agents and knowledge bases.
- Setup agents - Setup agents
- Manage users and groups - Manage users and groups
- Create test cases and datasets - Create test cases and datasets
- Launch vulnerability scans - Launch vulnerability scans