Tagging in Knowledge Graph Designer
Summarize
Summary of Tagging in Knowledge Graph Designer
Tagging in Knowledge Graph Designer allows ServiceNow customers to mark key tables that are essential for answering natural language questions in specific use cases. Tags help prioritize tables when Enterprise Graph searches data, improving response accuracy for Virtual Agent, Now Assist Panel, and AI agent scenarios.
Show less
Key Features
- Enterprise Graph Modes:
- Regular Mode: Tags provide hints to prioritize up to 30 tables to improve search accuracy.
- Enterprise Graph (Small): Searches only tagged tables, requiring a tag with a maximum of 50 tables. Referenced tables must also be tagged to enable querying referenced columns.
- Tag Creation and Management:
- Admins (kgadmins) create and edit tags in the Knowledge Graph Tags section of Knowledge Graph Designer.
- Tags must be linked to the schema selected for Virtual Agent, Now Assist Panel, or AI agent.
- Prebuilt tags exist for common use cases, including VIRTUAL AGENT DEFAULT TAG and NOW ASSIST PANEL DEFAULT TAG, which admins can customize.
- Configuration Steps:
- Use Knowledge Graph Designer to view, edit, or create tags.
- In the admin center, link the appropriate tag to the Knowledge Graph schema (Enterprise Graph or Enterprise Graph (Small)).
- By default, Enterprise Graph (regular) is hidden for Now Assist Virtual Agent and Panel; it can be enabled via a system property by an admin.
Best Practices for Tagging
- Now Assist Virtual Agent: Tag tables relevant to the expected user queries, such as employee-related tables for employee portal deployment.
- Now Assist Panel:
- Create individual tags for each workspace with key tables specific to that workspace.
- Create a general tag containing core tables for answering questions when outside any workspace.
- AI Agent: Include key tables pertinent to the AI agent’s purpose, for example, User and Asset tables for asset management agents.
Correct tagging ensures the Knowledge Graph efficiently retrieves accurate and relevant data to support natural language question answering across ServiceNow's AI-powered assistants.
Use Knowledge graph tags to mark the key tables, that are important for answering natural language questions for specific use cases.
Use Knowledge Graph Designer to create and edit tags from the Enterprise Graph Tags section.
| Name | Description |
|---|---|
| Enterprise Graph- regular mode | Provides hint to Enterprise Graph on which tables to prioritize when retrieving information, to improve the accuracy of results. It is recommended to only tag up to 30 tables for regular mode as hints to prioritize while searching. |
| Enterprise Graph (Small) |
Provides a list of tables to run the search operation. Enterprise Graph (Small) will only search on the tables provided by tags. It is mandatory to add a tag when Enterprise Graph (Small) is used with any of the prebuilt integration with AI agent, Virtual Agent or Now Assist Panel. You can tag a maximum of 50 tables. Note that to enable querying on columns of table which are references to another table, also include referenced table in tags. |
Creating tags
Tags are created by kg_admins using the Knowledge Graph Tags section and has to be linked to schema when selecting the Enterprise Graph or Enterprise Graph (Small) as the Knowledge Graph schema for your use case in Virtual Agent, Now Assist Panel or AI agent.
Knowledge graph ships the following prebuilt tags:
- VIRTUAL AGENT DEFAULT TAG: A prebuilt tag listing common to core, ITSM, and HR tables for integrating Enterprise Graph with the Virtual Agent on the employee portal. Admins can edit this tag to include additional tables relevant for answering Virtual Agent queries.
- NOW ASSIST PANEL DEFAULT TAG: A prebuilt tag listing common to core, ITSM and HR tables which can be leveraged as general tag on Now Assist panel. Admins can edit this tag to add additional important table for answering questions on Now Assist panel.
- Go to the Knowledge Graph Designer to view the existing tags and their associated tables. You can use an existing tag, edit one to fit your needs, or create a new tag for your particular use case.
- Navigate to the admin center for consuming apps.
- For the Now Assist Virtual Agent or Now Assist Panel, go to your virtual agent’s setup, select Information Sources, and open the Knowledge Graph.
- For AI agent, proceed to its setup and open the Knowledge Graph tool for the AI agent.
- Select Enterprise graph or Enterprise Graph (Small) as the KG schema and select the required tag from Tag drop down to link it to graph schema.
sn_kg.va.enable_global_graph_all_modes to true. The role required is Admin.Recommended tables for different use cases
- Now Assist Virtual Agent: For Now Assist Virtual Agent include the tables necessary to answer the expected user queries. For example if you want to deploy a new virtual agent on employee center portal, you should add a tag having tables relevant for answering employee questions.
-
Now Assist Panel: Now Assist Panel operates as a unified assistant across multiple workspaces, hence it is essential to tag tables as follows:
- An individual tag for each workspace that encompasses key tables relevant to that workspace. This ensures the Now Assist panel can deliver responses specific to queries related to the workspace tables when accessed within each workspace.
- Create a general tag that includes the most important tables required to answer users questions on Now Assist panel, allowing the Now Assist panel to provide relevant answers when used outside of any workspace.
- For more information on adding workspace tags in Now Assist Panel, see Add a Knowledge Graph schema to a chat assistant.
-
AI agent: For an AI agent use case, include key tables relevant to the agent's purpose. For example, for asset manager agents User, Asset, and other crucial tables should be included in the tag. For more information, see Add a Knowledge Graph to an AI agent.