Search and use DataWiki knowledge
DataWiki organizes data objects, business definitions, and relationship graphs into searchable knowledge to help agents select the right tables and interpret business metrics. This topic describes how to browse published knowledge and relationship graphs in the Agent Data Gateway console and use that knowledge in an Agent IDE.
Prerequisites
You have enabled Agent Data Gateway and can log on to the console. For access instructions, see Quick access to Agent Data Gateway.
Your target data source appears under Connection Management in the console, and your account can access DataWiki.
Open DataWiki
Log on to the Agent Data Gateway console and select a region in the upper-left corner.
In the left-side navigation pane, click DataWiki.
The page opens to Knowledge map > Knowledge Directory by default.
Browse the knowledge directory
The knowledge directory displays published knowledge only. The directory tree is on the left, and the knowledge list is on the right.
Select By object or By business on the left.
By object: Choose this mode to find knowledge by the data source or object it describes. The tree contains All knowledge and data source nodes. If trial data is enabled for your account, nodes such as Built-in Trial Data Source are available.
By business: Choose this mode to find knowledge by business directory. The tree contains All knowledge and business directories. Knowledge without a generated business directory appears under Uncategorized.
Use the appropriate search box.
Search by title, summary, or physical name in the search box on the right.
Search for a directory name in the search box above the directory tree.
Click Type to filter by knowledge type. To clear the selected filters, click × Filter on the toolbar.
Review the knowledge cards. Each card shows the title, type label, Published status, summary, source object, and time. The action icons are View, Edit, and Disable. The knowledge list displays 20 entries per page by default.
Click View to open the knowledge details, which include the knowledge UUID, type, publication status, version, title, summary, source, and associated objects. The details page also provides options to lock or disable knowledge. For detailed steps, see Build and manage DataWiki knowledge.
Disabling published knowledge changes whether agents can use it. Check the affected scope before you disable knowledge.
View the relationship graph
Under Knowledge map, switch to Relationship Graph.
In the Entities area on the left, select the entity types to display. Set the maximum number of returned entities as needed. The default is 300.
In the Relationships area on the left, select the relationship types to display. Set the maximum number of returned relationships as needed. The default is 900.
Search for an entity name in the search box at the top.
Use the canvas on the right to zoom in, zoom out, fit the graph to the canvas, or enable Snapping.
The graph displays entities and relationships that have been built. Built-in entity types include DATABASE and TABLE. Built-in relationship types include HAS_TABLE and JOINS_ON_TABLE_TABLE. The types available in your tenant depend on the results that have been built.
Use DataWiki in an agent
Agents can consume only published DataWiki knowledge.
Follow Quick Access on the Get Started page in the console to connect Agent Data Gateway to your Agent IDE. You can use a command-line interface (CLI) or MCP. For installation and configuration instructions, see Quick access to Agent Data Gateway and Use the MCP service.
After you install the CLI or MCP, ask the agent a business question in natural language. For example:
Help me find the right table and field to calculate the order transaction amount or payment amount for an e-commerce business by using DataWiki.
A typical interaction proceeds as follows:
The agent searches published DataWiki knowledge to locate the target instance and database, such as
olist_demoin the built-in trial data source, and the relevant tables and fields.The agent reports only facts from published Wiki knowledge. If terms such as transaction amount or payment amount have no authoritative definition, the agent lists the published fields and asks you to choose the appropriate field instead of selecting a definition on its own.
For the built-in trial database olist_demo, the response can take the following form:
Table | Field | Wiki definition |
|
| The actual amount paid for an order. An order can have multiple payments. |
|
| The transaction unit price of an individual item, excluding shipping. |
|
| The shipping cost allocated to the item in this row. |
References
DataWiki overview
Build and manage DataWiki knowledge
DataWiki knowledge permissions