---
title: "Set Up a Custom Knowledge Graph"
---

<Info>
This page has moved to [Context Engineering > Custom Knowledge Graphs](/context-engineering/custom-knowledge-graphs). For automatic entity extraction during ingestion (Graph RAG), see [Knowledge Graph Extraction](/context-engineering/knowledge-graph-extraction).
</Info>

Build and manage your own custom Knowledge Graphs within the platform to dynamically capture, query, and chat with your data.

### Create a Knowledge Graph

1.  Navigate to the **Knowledge Graphs** tab in your project.
2.  Click the **New Graph** button.
3.  Enter a descriptive **Name** for your graph.
4.  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.
5.  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.

1.  Go to the **Tools** tab.
2.  Click the **New tool** button.
3.  Search for and select the **Query Graph DB** tool template.
4.  Give your tool a unique **Name**.
5.  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.
6.  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:

1.  Go to the **Knowledge Graphs** tab.
2.  Locate your graph and click **See Graph Info** to view its contents.
