Knowledge source
This section outlines how users can review and manage their file content within the knowledge base. The Knowledge Source feature allows users to edit metadata, view technical details such as chunking strategy and embedding time, and manage document chunks by editing, disabling, or adding new ones. Users can also generate summaries of their files using available models, with options to download or delete the content as needed.
How to review file content?
From the ‘Knowledge’, click on any knowledge base you created.

You will be directed to the ‘Knowledge Source’ tab. There, click on the file name again.

You can view the total number of paragraphs divided into chunks. In addition, you will see the character count of each chunk, along with its ID and retrieval count.


You can view additional details of the data, including technical parameters such as file name, size, update and modification date details, source, chunking strategy, total number of chunks, average paragraph length, and embedding time.

Updating metadata
Select the appropriate option from the ‘Document Type’ dropdown, edit the metadata, and click ‘Save’ on the right-side panel titled ‘Document Metadata’

Once you save the updated metadata, it will be applied to all chunks. Click on any chunk to view the updated metadata.

How to check the semantic relationships of the entities in a knowledge graph?
When you create a Knowledge Base with the RAG definition set to Knowledge Graph, ZBrain automatically processes every document, extracts entities and the semantic relationships between them, and saves them as a property graph, a network of nodes (the extracted entities) linked by edges (the relationships between those entities). To explore that graph:
a. From the ‘Knowledge’, click on any knowledge base you created using the knowledge graph option.

b. You will be directed to the ‘Knowledge Source’ tab. There, click on the file name to view the file content and its associated knowledge graph.
c. Click Knowledge Graph on the left-hand side bar.

The centre panel renders an interactive force-directed graph:
Nodes (coloured circles): Individual entities, people, products, APIs, components, dates, etc. You can hover to see the canonical name, type, source sentence and chunk ID.
Edges (grey lines): Represent which entities (nodes) are linked.
How to update an existing knowledge base?
You can update an existing knowledge base created with either vector store or the knowledge graph option by adding/deleting chunks.
To add a new chunk, click the ‘+Add Chunk’ button. Enter the content in the provided text box, then click the ‘Save’ button to finalize.

The chunk is saved immediately and becomes part of the existing knowledge base.
You can also update the existing chunk. Click the ‘pencil' icon at the rightmost corner and edit the chunk, and click 'Save’.

Once you edit or add a chunk, you can track the status in the dashboard.

You can also delete a chunk from the knowledge base. Click on the delete button at the right end of the chunk and confirm.


Once confirmed, the chunk will be deleted from the knowledge base.
Click on the three dots next to ‘+Add Chunk’ to access three options:
Download File: Click this option to download the file.
Review File: Select this to review the file and examine the chunks created.
Delete File: Choose this option to delete the file. A confirmation pop-up will appear asking if you are sure you want to proceed.

If the knowledge base was created using the Knowledge Graph option, any newly added or edited chunk will automatically update the graph to include the new entities and their relationships. You can find the updated knowledge graph, which now includes the new entity.

To disable a chunk, select the specific chunk and toggle the Active switch to the off position. The chunk will be deactivated immediately.

Last updated