Agent Basics
Set Up a Custom Knowledge Graph
Build and manage your own custom Knowledge Graphs within the platform to dynamically capture, query, and chat with your data.
Create a Knowledge Graph
- Navigate to the Knowledge Graphs tab in your project.
- Click the New Graph button.
- Enter a descriptive Name for your graph.
- Configure the graph’s accessibility:
- Scope: Choose Current Project to limit access to the current project, or All Projects to make the graph accessible across all your projects.
- User Specific: Toggle this option on if you want the graph to be available only for your user account.
- Click Create Graph.
Populate Your Knowledge Graph (Create a Graph Query Tool)
To capture data in your new Knowledge Graph, you’ll need to create a Graph Query Tool. This tool allows an LLM to write information into the graph.
- Go to the Tools tab.
- Click the New tool button.
- Search for and select the Query Graph DB tool template.
- Give your tool a unique Name.
- From the Graphs dropdown menu, select the Knowledge Graph you just created.
💡 Note: This dropdown also displays other Knowledge Graphs automatically generated from your data sources.
- Expand Advanced settings.
- Scroll down to the Body section.
- Locate the
"readonly"
value and change it tofalse
. The line should look like this: - Click Create Tool.
Use the Knowledge Graph
- To capture knowledge: Add the newly created Graph Query DB tool to an LLM and instruct it to capture information in your Knowledge Graph.
- To query the Knowledge Graph: If you are building an Agent that needs to query the graph, attach the same Graph Query DB tool to the Agent. This tool uses the same Cypher endpoint for both writing and reading operations.
View Captured Data
To inspect the nodes and relationships populated in your Knowledge Graph:
- Go to the Knowledge Graphs tab.
- Locate your graph and click See Graph Info to view its contents.