← 返回 Skills 市场
tree-graph-rag
作者
h4444433333
· GitHub ↗
· v1.0.0
· MIT-0
141
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install tree-graph-rag
功能描述
Guide for designing and implementing a PostgreSQL database that fuses PageIndex-style document trees with LightRAG-style entity-relationship anchors. Use thi...
安全使用建议
This skill appears coherent and implements the promised tree↔graph persistence and retrieval patterns. Before installing or running in production: 1) Review and control the db_pool credentials you supply (use a least-privilege DB role that can INSERT/SELECT on the pageindex_* tables but not superuser). 2) Review or provide a trusted llm_extract_func — the skill calls that function for each content row (do not pass an extract function that exfiltrates data). 3) For large datasets, implement batching/pagination and rate-limiting when calling the extractor and when writing to the DB. 4) Test on non-production data first and verify workspace filtering is enforced in your deployment. If you want, provide details of the DB driver and deployment topology and I can point out additional hardening steps.
功能分析
Type: OpenClaw Skill
Name: tree-graph-rag
Version: 1.0.0
The skill provides a legitimate framework for implementing a hybrid Tree-Graph RAG system using PostgreSQL. It includes well-structured schema definitions (schema.sql), ingestion scripts (ingestion_core.py), and retrieval logic (retrieval_core.py) that correctly use parameterized queries and enforce multi-tenancy. No indicators of malicious intent, data exfiltration, or unauthorized execution were found.
能力评估
Purpose & Capability
Name/description match the included artifacts: schema.sql, ingestion/retrieval Python scripts, query docs, and a smoke test. All requested resources and operations (DB inserts, selects, LLM-extraction hook) are coherent with building a hybrid tree/graph RAG persistence layer.
Instruction Scope
SKILL.md and scripts focus on schema, ingestion, anchoring and retrieval as promised. One operational note: extract_and_insert_graph fetches all node_contents for a workspace in a single query and then calls the provided llm_extract_func for each row — this is expected functionality but can consume large amounts of data in production and should be batched/rate-limited at runtime. The skill does not read env vars or files outside its scope.
Install Mechanism
Instruction-only install (no install spec) and included code files only operate on a DB pool object and do not download or execute external artifacts. No remote code/URL downloads are present.
Credentials
No environment variables, credentials, or config paths are requested by the skill. The only external dependency is a db_pool and an llm_extract_func provided by the integrator, which is proportionate to the skill's purpose.
Persistence & Privilege
Skill is not always-enabled and does not attempt to modify agent-wide configuration. It performs database writes/reads as expected for an ingestion/retrieval layer; privilege implications depend on the DB credentials you supply at integration time (not embedded in the skill).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install tree-graph-rag - 安装完成后,直接呼叫该 Skill 的名称或使用
/tree-graph-rag触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of tree-graph-rag skill.
- Provides a guide for designing and implementing a PostgreSQL database fusing tree (hierarchical) and graph (entity/relationship) structures for RAG systems.
- Includes schema definitions, ingestion and retrieval logic, and integration patterns for a hybrid tree-graph knowledge base.
- Emphasizes anchoring graph details to tree nodes for flexible contextual retrieval.
- Supplies example code for ingestion, retrieval, and minimal smoke testing of the end-to-end data flow.
- Outlines standard workflows and developer guidelines for schema design and SQL usage.
元数据
常见问题
tree-graph-rag 是什么?
Guide for designing and implementing a PostgreSQL database that fuses PageIndex-style document trees with LightRAG-style entity-relationship anchors. Use thi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 141 次。
如何安装 tree-graph-rag?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install tree-graph-rag」即可一键安装,无需额外配置。
tree-graph-rag 是免费的吗?
是的,tree-graph-rag 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
tree-graph-rag 支持哪些平台?
tree-graph-rag 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 tree-graph-rag?
由 h4444433333(@h4444433333)开发并维护,当前版本 v1.0.0。
推荐 Skills