Skip to main content
Updated in 2026.3 Knowledge Source Tags, also known as Source Tags, are labels that you can add to your Knowledge Sources to improve how your AI Agents reply to your customers. With Source Tags, Knowledge AI’s search engine can focus on specific Knowledge Sources and provide AI Agents targeted results. Source Tags have the following benefits:
  • Increased search accuracy. Source Tags direct the search engine to specific Knowledge Sources, ensuring that only the most relevant results are included, which is useful with a large number of Knowledge Sources.
  • Flexible tag filtering. Using AND and OR operators for Source Tags refine searches and improve results.
  • Faster search performance. Limiting the queried Knowledge Sources speeds up Knowledge Queries.
  • Enhanced content organization. Categorizing Knowledge Sources improves information management and retrieval.

Prerequisites

Limitations

  • You can add up to 50 Source Tags per Knowledge Source.
  • You can add up to 5 Source Tags per Search Extract Output Node.

Naming Guidelines

  • Include only lowercase and alpha-numerical (a-z, 0-9) characters, underscores, and hyphens.
  • You can include CognigyScript in Source Tag names. In this case, make sure the CognigyScript input is lowercase with the .toLowerCase() method, for example, {{input.text.toLowerCase()}}. Using CognigyScript as a Source Tag name allows your AI Agent to filter Knowledge Sources dynamically according to the user input.

Working with Source Tags

To configure Source Tags, you need to first add them to a Knowledge Source in Build > Knowledge or directly to the CTXT file. Then, you need to add the Source Tag to the Search Extract Output Node in the Flow editor. You can test the knowledge query results in the Interaction Panel.

Examples

To reproduce the results presented later in this section, follow these steps:
  1. Create a new Knowledge Store.
  2. Upload the following files as Knowledge Sources:
    • CTXT — the Source Tags are already in the CTXT file.
    • DOCX — add the following Source Tags: endpoint, webchat, and text-based.
    • PDF — add the following Source Tags: endpoint, voice, and voice-gateway.
    After uploading the files, the Knowledge Sources have the following Source Tags:
  3. Navigate to the Flow and add the Search Extract Output Node. Test the following examples to retrieve information based on the Source Tags you add to the Search Extract Output Node. To track how the output changes with different Source Tag combinations, use the input Could you share a list of native endpoints for Cognigy? for each Knowledge Source in the Interaction Panel. To check the output results in the Interaction Panel, use the input.knowledgeSearch.topK Input object in INFO > Input.

Example 1

Source Tags in the Search Extract Output Node: endpoint Top-3 Key Results for:

Example 2

Source Tags in the Search Extract Output Node: endpoint, voice Top-3 Key Results for:

Example 3

Source Tags in the Search Extract Output Node: voice, text-base Top-3 Key Results for:

More Information

Last modified on April 21, 2026