graphiti
Knowledge graph operations via Graphiti API. Search facts, add episodes, and extract entities/relationships.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Graphiti Knowledge Graph
Query and manage your knowledge graph using Graphiti's REST API with dynamic service discovery.
Prerequisites
- Neo4j database (graph storage)
- Qdrant (vector search)
- Graphiti service running (default: http://localhost:8001)
Tools
graphiti_search
Search the knowledge graph for relevant facts.
Usage:
bash command:"
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \"\$GRAPHITI_URL/facts/search\" \
-H 'Content-Type: application/json' \
-d '{\"query\": \"YOUR_QUERY\", \"max_facts\": 10}' | jq .
"
graphiti_add
Add a new episode/memory to the knowledge graph.
Usage:
bash command:"
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \"\$GRAPHITI_URL/messages\" \
-H 'Content-Type: application/json' \
-d '{\"name\": \"EPISODE_NAME\", \"content\": \"EPISODE_CONTENT\"}' | jq .
"
Dynamic Configuration
The skill uses environment discovery to find Graphiti automatically:
-
Clawdbot config:
clawdbot config get skills.graphiti.baseUrl -
Environment variable:
$GRAPHITI_URL -
Default fallback:
http://localhost:8001
To change the Graphiti URL:
export GRAPHITI_URL="http://10.0.0.10:8001"
# OR
clawdbot config set skills.graphiti.baseUrl "http://10.0.0.10:8001"
Examples
Search for information:
bash command:"
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \"\$GRAPHITI_URL/facts/search\" \
-H 'Content-Type: application/json' \
-d '{\"query\": \"Tell me about Essam Masoudy\", \"max_facts\": 5}'
"
Add a memory:
bash command:"
GRAPHITI_URL=\$({baseDir}/references/env-check.sh)
curl -s -X POST \"\$GRAPHITI_URL/messages\" \
-H 'Content-Type: application/json' \
-d '{\"name\": \"Project Update\", \"content\": \"Completed Phase 1 of Clawdbot integration\"}'
"
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-30
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!