跳到主要内容Skip to main content
RAG 与知识库RAG & Knowledge Bases先试这个Start here

Graphify

Graphify-Labs / graphify

把代码、文档、SQL、PDF 等映射成可查询知识图谱,让 coding agent 用图查询替代全仓 grep。Map code, documents, SQL and PDFs into a queryable knowledge graph, so coding agents can query the graph instead of grepping the whole repository.

150.7k stars 14495 forks Python 语言Language Apache-2.0 许可License 最近推送Last push 2026-11-19

为什么选Why choose it

  • 把代码、docs、SQL schema、配置、PDF 甚至图片/视频收进一个图,按关系查询而不是反复 grep。Graph queries can replace repeated full-repo greps.
  • 在 coding assistant 里用 `/graphify` 触发,适合大仓库、跨文档与“这个东西在哪被引用”的问题。Relations between code and documents become explicit.
  • Apache-2.0,Python 包;本地跑,云服务是可选项,适合先在自己的仓库试。Useful for large or polyglot repositories.

不适合Not for

图不是编译器也不是测试;它给的是检索与关系线索,不能替代类型检查、测试和运行验证。The repository is small enough to search directly.
“省 80% token”是厂商口径;实际收益取决于仓库规模、查询质量与索引新鲜度,需自己测。You need a general-purpose graph database rather than a code mapper.

最小上手Minimum setup

  1. 先在一个中等仓库建图,检查索引耗时、磁盘占用与忽略规则(node_modules / 构建产物)。Index one repository and inspect the entity types.
  2. 问 5 个“某函数在哪被调用 / 某配置从哪来”的问题,对照 grep 结果看漏报与误报。Ask a cross-file dependency question through the graph.
  3. 再接进 coding assistant,观察查询延迟、上下文长度与增量更新是否正常。Compare the answer with a grep-based search.

依赖与成本Dependencies and cost

Python / pipx;模型 API key(用于抽取/摘要);仓库读写;大仓库要磁盘与内存。Check runtime, model weights and external service dependencies in the README.

许可与使用边界License and usage boundaries

代码 Apache-2.0;云服务与第三方模型另计。Code is Apache-2.0; model weights, training data and generated content may have separate terms — check each before commercial use.

开源不等于可商用:GPL / AGPL 有传染性;代码许可、模型许可、生成内容许可要分开看。上线前读仓库 LICENSE 与模型卡,必要时让法务确认。Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

替代与相邻Alternatives and neighbors

  • LightRAG — 轻量Lightweight,轻量 GraphRAG 实现:把文档抽成实体关系图,再做向量+图检索,成本比全文 GraphRAG 低。A lightweight GraphRAG implementation: extract entities and relations, then combine vector and graph retrieval at lower cost than full GraphRAG.
  • Docling — 先试这个Start here,文档解析工具包:PDF / HTML / Office 转结构化 Markdown / JSON,保留版面、表格与阅读顺序。A document parsing toolkit that turns PDF, HTML and Office files into structured Markdown or JSON while preserving layout, tables and reading order.
  • Marker — 特定场景Niche,PDF → Markdown / JSON 的高质量转换器,重点处理版面、表格、公式与阅读顺序。A high-quality PDF-to-Markdown and JSON converter focused on layout, tables, formulas and reading order.

下一步Next steps

  • 打开 GitHub,先读 README、LICENSE、最近 release 与 issue。Open GitHub and read the README, LICENSE, latest release and issues first.
  • 按“部署依赖 / 显存 / 数据 / 网络 / 权限”列一张上手清单。Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • 用一个小样本跑通,再决定是否进生产;不要直接上生产数据。Run a small sample first, then decide on production; never start with production data.

GitHub 仓库 ↗GitHub repository ↗ 文档 ↗Docs ↗ 加入对比Add to compare

快照口径:stars / forks / language / license / pushed_at 来自 GitHub API 2026-11-20 快照;之后的变化没有回写。标签与“适合 / 不适合”是编辑判断,不是 GitHub 元数据。Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
不背书:本站只做索引与风险提示,不审计代码、不保证安全、不替你做许可判断。仓库脚本与模型权重请自行审查。No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.