Skip to main content

Overview

Knowledge Graph is a unified knowledge structure that connects glossaries, databases, and Knowledge Bases into a single graph. It lets AI agents automatically understand which table column maps to a business term, and which document context relates to it.

Problems Knowledge Graph Solves

When you use glossaries, databases, and Knowledge Bases separately, the agent can’t connect meanings.

Use Case

Three Information Sources


Creating a Knowledge Graph

1

Create a new Knowledge Graph

In Workspace → Knowledge Graph list, click ”+ New Knowledge Graph”.
Knowledge Graph list

Knowledge Graph list

2

Enter name and description

Use the access control options to set read/write permissions per group, organization, or user.
3

Open the detail page

After creation you’re auto-redirected to the Knowledge Graph detail page. Now connect information sources.

Knowledge Graph Detail Page

Knowledge Graph detail page

Knowledge Graph detail page

The Knowledge Graph detail page consists of a left node list and a right config/exploration area.

Statistics Cards

Three statistics cards appear at the top.

LLM Model Setting

Use the “LLM Model” dropdown at the bottom right of the card area to pick the LLM model used to build the Knowledge Graph. It’s used for category definition generation, Knowledge Base document matching, AI tool description auto-generation, and more.
A Knowledge Link is the core structure of a Knowledge Graph. Bundles 1 glossary + N Knowledge Bases into one link to automatically connect meanings between terms and documents.
When extraction sources are configured on a glossary’s category, the corresponding DB schema is automatically included in the Knowledge Link. No need to add the DB separately.
1

Click Add Knowledge Link

In the Knowledge Links section of the Knowledge Graph detail page, click ”+ Add knowledge link”.
2

Pick a glossary

Select the glossary to connect. Already-connected glossaries are excluded from the list.
3

Pick Database / Knowledge Bases

With checkboxes, select the sources to actually sync to this Knowledge Link. Choose only some of the auto-detected candidates, or add additional ones.
Unchecked sources are not included in this Knowledge Link even if auto-detected. Unlike older versions, sources aren’t force-connected automatically — explicitly select only what you need to control sync cost and time.
4

Pick Knowledge Base filter slots to extract (optional)

If you selected a Knowledge Base, you can choose whether to promote its dynamic filters (department/year/document-type) into Knowledge Graph nodes. For details, see the Promoting Knowledge Base Filters to Knowledge Graph Nodes section below.
5

Sync after creation

After creation, click the “Sync entities” button to sync the link. Only the selected databases and Knowledge Bases are processed, and the sync target list is auto-updated.
Performs only structural transformation without LLM calls — completes quickly.

Promoting Knowledge Base Filters to Knowledge Graph Nodes

Knowledge Base filter values (country, category, department, etc.) can be lifted directly into the graph as nodes for use in retrieval, exploration, and agent routing. Because no LLM call is made, structured metadata flows into the graph at zero cost.
Example: if your Knowledge Base has a “department” filter and you promote it to a Knowledge Graph node, the agent automatically translates queries like “find from finance team docs” into a department filter.
1

Open Node Settings on the Knowledge Graph Link card

In the Knowledge Links on the right side of the screen, click the “Node Settings” button on a connected Knowledge Base card to open the modal.
2

Select filters to promote

The connected Knowledge Base’s filter values are shown. Pick the filters to promote into nodes via checkboxes.
3

Save → applied on next sync

Saving stores the selected slots on the Knowledge Graph link. On the next sync, the selected slots’ values become Doc Attribute nodes, and each document is connected to the values it holds via edges.

How It Works

The connecting edge name uses the filter name directly (e.g., department, country). If a more natural name is suggested during routing, that name is used instead.
Doc Attribute is a lightweight path that brings Knowledge Base filters into the graph without LLM calls. If chunk-level entity extraction (Doc Entity) is cost-prohibitive, start with Doc Attribute only, then enable LLM extraction selectively on Knowledge Bases that warrant it.
Expand each Knowledge Link card to see column-mapping status per DB table.
  • Table groups: Grouped by table within the connected DB
  • Column mappings: Column name, data type, PK/FK indicators, mapped category, term count
  • Matched documents: Count of documents matched with the Knowledge Base

Sync

After connecting resources, you must run sync to actually create the nodes and edges.

Sync Methods

Full Sync Flow

Tracking Progress

  • When sync starts, the button changes to “Syncing…”
  • Real-time toast notifications appear on completion/failure
  • Duplicate runs are blocked when sync is already in progress
On re-sync, only newly added or changed documents are reprocessed. Already-processed documents are skipped, so syncs after the first are much faster.

Sync Time


Graph Exploration

Graph Visualization

On the Knowledge Graph detail page, toggle “Show graph” to display an interactive graph view.
Knowledge Graph visualization

Graph visualization

How to Interact

Node Types and Colors

When nodes exceed 500, a “Truncated” warning appears. Use type-focus to view only the area you care about.

Node Detail Panel

Click a node to show the detail panel on the right.
  • Property table: Node properties (label, type, description)
  • Connections list: Neighbor nodes connected to this node (direction arrow + edge type + neighbor info)
  • Click a neighbor node to navigate to it

Node List

Browse all nodes as a list in the left panel.
  • Search: Search by node label (server-side, fast even on large graphs)
  • Type filter: All types / Column / Concept / Database / Doc Attribute / Document / Glossary / Knowledge Base / Table / Term
  • Pagination: Navigate 20 at a time
In the Semantic Search section of the Knowledge Graph detail page, search nodes in natural language.
  • Returns the most relevant nodes by vector similarity, with scores
  • Each result shows a node-type badge and similarity score
Semantic search requires a system admin to configure the Search Engine. Without it, a warning banner appears.

Agent Integration

The real power of the Knowledge Graph comes when connected to an agent.

Connect a Knowledge Graph to an Agent

In the agent edit page’s Knowledge Graph section, pick the Knowledge Graph to use.
Knowledge Graph selection modal in the agent editor

Connect a Knowledge Graph to an agent

When you connect a Knowledge Graph, the glossaries, databases, and Knowledge Bases included in that Knowledge Graph are auto-inherited by the agent. No need to add the same resources separately.

7 Knowledge Graph Tools

Agents with a Knowledge Graph connected automatically gain access to these 7 tools.
fetch_data automatically falls back to related document search when 0 rows are returned. Combines data and document lookup into one tool.

Tool Tester

Before connecting to an agent, test each tool directly in the “Try KG Tools” section.
1

Open the tool tester

Click the “Show” toggle at the bottom of the Knowledge Graph detail page
2

Pick a tool and run

Choose a tool from the dropdown, fill in inputs, and click “Run”
3

Review results

Results appear at the bottom as JSON. Verify sync results and term-mapping accuracy.

Node Management

Node Type Summary


FAQ

A glossary manages term definitions only. Knowledge Graph connects glossaries to database columns and document entities so agents can answer with actual data.
DbSphere specializes in schema-based SQL generation. Knowledge Graph adds business terminology and document context so it understands non-schema expressions like “VIP customer”.
  • Glossary/DB sync: Seconds to minutes (fast)
  • Knowledge Base entity extraction: Minutes to hours, proportional to document count
Knowledge Bases only reprocess newly added or changed documents and skip already-processed ones. So even large Knowledge Bases only take long the first time, and later syncs are fast.
  • DB-related errors: Check that DbSphere schema extraction succeeded first
  • Knowledge Base extraction errors: Verify LLM model setting and API key
  • Duplicate runs are blocked while sync is in progress — retry shortly
Only Knowledge Base entity extraction uses the LLM. To control cost:
  • Connect only the Knowledge Bases you need
  • Even with just glossaries and DBs, resolve_term and find_related_tables work fine
Yes. With multiple Knowledge Graphs connected, tools work over the unified nodes and edges from all Knowledge Graphs. Run separate Knowledge Graphs per domain while querying them together from the agent.

Glossary

Business term definitions, synonyms, category management

Database

DB connection, schema extraction, SQL execution

Agents

AI agent configuration, tool integration, workflows