Skip to main content

Add metadata to optimize knowledge base search

Introduction

Metadata is a descriptive information added to files in the Knowledge Base to improve the search. It functions like tags that tell the AI agent what the file contains to search and filter content.

Metadata helps the AI agent to identify and retrieve the most relevant files during a Knowledge search. It allows the AI agent to understand the context and structure of each file, enabling it to retrieve the most relevant results based on user queries.

To improve search efficiency, always provide clear and specific descriptions when configuring metadata. These descriptions help the AI agent interpret the purpose and usage of each field accurately.

For example, metadata like "Department", "Status", or "Version" helps segment files and support contextual responses like:

  • Show me HR policies
  • List all published documents
  • Display onboarding files for IT and finance departments

Types of Metadata

There are two types of metadata supported in the platform:

  1. Custom metadata: You need to manually create name, data type, and description.
  2. System metadata: Automatically fetched from third-party sources like ServiceNow during file sync. You cannot edit the key name and data type, but descriptions can be added or modified.

Metadata data types

Data typeDescription
StringYou can use when values are a combination of text and numbers. Example, Product ID, Version Name).
IntegerYou can use for numeric values only. Example: Score, Count.
BooleanYou can use for binary values: true or false.
PickListYou can use for selecting one value from a predefined list. Example, Status: Draft, Published.
MultiselectYou can use for selecting multiple values from a list. Example, Categories: Finance, HR.
Date & TimeYou can use for storing both date and time. Example, Publish Date, Scheduled Sync Time.

Add metadata for KB content

To add metadata, follow these steps:

  1. Navigate to Knowledge base > Files > Metadata.

    image

  2. Select Custom or System tabs to view or manage metadata.

  3. To add new custom or system metadata, click + Add custom key.

    image

  4. In Add custom key pop-up, enter the following details:

    • Key name: Enter a unique name for the metadata field.

    • Data type: Select the appropriate data type.

    • Description: Provide a clear explanation of the key’s purpose.

      drawing
  5. Click Add key to save it.

Refer to the following gif to see how the metadata works:

Metadat

Set metadata for each file

You can update metadata for any file in the Knowledge Base to help the AI agent better understand, filter, and retrieve content during search. Metadata provides context that improves the accuracy and relevance of search results.

To update metadata, go to the file management interface, select a file, and open the metadata panel. You can enter or modify values for each metadata field. Changes are saved automatically and do not require republishing the file.

Update metadta