闲社服务运行正常AI智能体自动化平台
g

Graphiti知识图谱操作

技能标识:graphiti

Knowledge graph operations via Graphiti API. Search facts, add episodes, and extract entities/relationships.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.1
检测标记
后台标记通过
免费
免费获取
2
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Graphiti知识图谱操作

Graphiti 知识图谱

使用 Graphiti 的 REST API 和动态服务发现来查询和管理您的知识图谱。

前提条件

  • - Neo4j 数据库(图存储)
  • Qdrant(向量搜索)
  • Graphiti 服务正在运行(默认:http://localhost:8001)

工具

graphiti_search

搜索知识图谱以获取相关事实。

使用方法:
bash
bash 命令:
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \\$GRAPHITI_URL/facts/search\ \
-H Content-Type: application/json \
-d {\query\: \您的查询\, \max_facts\: 10} | jq .

graphiti_add

向知识图谱添加新的事件/记忆。

使用方法:
bash
bash 命令:
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \\$GRAPHITI_URL/messages\ \
-H Content-Type: application/json \
-d {\name\: \事件名称\, \content\: \事件内容\} | jq .

动态配置

该技能使用环境发现来自动查找 Graphiti:

  1. 1. Clawdbot 配置:clawdbot config get skills.graphiti.baseUrl
  2. 环境变量:$GRAPHITI_URL
  3. 默认回退:http://localhost:8001

要更改 Graphiti URL:
bash
export GRAPHITI_URL=http://10.0.0.10:8001

或者


clawdbot config set skills.graphiti.baseUrl http://10.0.0.10:8001

示例

搜索信息:
bash
bash 命令:
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \\$GRAPHITI_URL/facts/search\ \
-H Content-Type: application/json \
-d {\query\: \告诉我关于 Essam Masoudy 的信息\, \max_facts\: 5}

添加记忆:
bash
bash 命令:
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \\$GRAPHITI_URL/messages\ \
-H Content-Type: application/json \
-d {\name\: \项目更新\, \content\: \已完成 Clawdbot 集成的第一阶段\}

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 graphiti-1776392226 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 graphiti-1776392226 技能

通过命令行安装

skillhub install graphiti-1776392226

下载

⬇ 下载 graphiti v1.0.1(免费)

文件大小: 3 KB | 发布时间: 2026-4-17 15:05

v1.0.1 最新 2026-4-17 15:05
graphiti 1.0.1 – Documentation and metadata update.

- Updated README.md with usage instructions, prerequisites, dynamic configuration, and examples for searching and adding episodes to the knowledge graph.
- No functional or API changes; documentation improvements only.
返回顶部