edgequake

raphaelmansuyApache-2.0活跃维护

用 Rust 写的高性能 GraphRAG 引擎,灵感来自 LightRAG,把文档转成知识图谱,让检索和生成效果更好。

EdegQuake 🌋 High-performance GraphRAG inspired from LightRag written in Rust; Transform documents into intelligent knowledge graphs for superior retrieval and generation

v0.40.12发布于 2026-11-09 06:54 UTC2,300star +3 / 7 天275fork同步于 2026-11-10 11:44 UTC

怎么上手

由 README 提炼,执行前请确认
curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/quickstart.sh | sh
硬件要求按 README 说明

README 未给出显存或 GPU 型号要求;可接 OpenAI、Anthropic 等云端 LLM,也可用 Ollama、LM Studio、llama.cpp 等本地服务,本地模型首次拉取需数 GB 磁盘空间。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 Rust 实现的 GraphRAG,把文档转成知识图谱,让检索能沿着实体关系走,而不只靠相似文本块

用 Rust 写的高性能 GraphRAG 引擎,灵感来自 LightRAG,把文档转成知识图谱,让检索和生成效果更好。

核心能力

  • 用 Rust 实现 LightRAG 算法,把文档抽取成实体与关系图
  • 查询时结合 pgvector 向量检索与 Apache AGE 图遍历
  • 提供 naive、local、global、hybrid、mix、bypass 六种检索模式
  • 以单个 Postgres 同时承担向量库与图库,无需另起数据库
  • 内置多租户隔离、认证、SSO 与审计日志,并提供 Web UI 和 MCP

容易踩的坑

需要先装 Docker,quickstart 脚本依赖它启动整套服务;走 Ollama 路径会首次下载多个 GB 的对话与嵌入模型;Web UI 默认在 3000 端口、API 在 8080 端口,且只绑定 127.0.0.1;数据库迁移需显式执行 edgequake migrate,API 不会自动迁移。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v0.40.12
  1. v0.40.12EdgeQuake v0.40.12最新正式版2026-11-09 · 2026-11-09 06:54 UTC

    Docker Quickstart

    # Interactive one-command install (Docker only, no git clone)
    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/quickstart.sh | sh
    

    Or with plain Docker Compose:

    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/docker-compose.quickstart.yml \
      -o docker-compose.quickstart.yml
    docker compose -f docker-compose.quickstart.yml up -d
    # → Web UI:  http://localhost:3000
    # → API:     http://localhost:8080
    # → Swagger: http://localhost:8080/swagger-ui
    

    Or with the Makefile:

    make stack           # start all three services (pulls from GHCR)
    make stack-down      # stop and remove containers
    make stack-logs      # tail logs
    

    Images (v0.40.12)

    ImageArchitecture
    ghcr.io/raphaelmansuy/edgequake:0.40.12linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-frontend:0.40.12linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.12linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.12-pg16linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.12-pg17linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.12-pg18linux/amd64, linux/arm64

    Full CHANGELOG: https://github.com/raphaelmansuy/edgequake/blob/edgequake-main/CHANGELOG.md

  2. v0.40.11EdgeQuake v0.40.112026-11-07 · 2026-11-07 14:43 UTC
    查看更新说明

    Docker Quickstart

    # Interactive one-command install (Docker only, no git clone)
    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/quickstart.sh | sh
    

    Or with plain Docker Compose:

    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/docker-compose.quickstart.yml \
      -o docker-compose.quickstart.yml
    docker compose -f docker-compose.quickstart.yml up -d
    # → Web UI:  http://localhost:3000
    # → API:     http://localhost:8080
    # → Swagger: http://localhost:8080/swagger-ui
    

    Or with the Makefile:

    make stack           # start all three services (pulls from GHCR)
    make stack-down      # stop and remove containers
    make stack-logs      # tail logs
    

    Images (v0.40.11)

    ImageArchitecture
    ghcr.io/raphaelmansuy/edgequake:0.40.11linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-frontend:0.40.11linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.11linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.11-pg16linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.11-pg17linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.11-pg18linux/amd64, linux/arm64

    Full CHANGELOG: https://github.com/raphaelmansuy/edgequake/blob/edgequake-main/CHANGELOG.md

  3. v0.40.10EdgeQuake v0.40.102026-11-07 · 2026-11-07 11:33 UTC
    查看更新说明

    Docker Quickstart

    # Interactive one-command install (Docker only, no git clone)
    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/quickstart.sh | sh
    

    Or with plain Docker Compose:

    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/docker-compose.quickstart.yml \
      -o docker-compose.quickstart.yml
    docker compose -f docker-compose.quickstart.yml up -d
    # → Web UI:  http://localhost:3000
    # → API:     http://localhost:8080
    # → Swagger: http://localhost:8080/swagger-ui
    

    Or with the Makefile:

    make stack           # start all three services (pulls from GHCR)
    make stack-down      # stop and remove containers
    make stack-logs      # tail logs
    

    Images (v0.40.10)

    ImageArchitecture
    ghcr.io/raphaelmansuy/edgequake:0.40.10linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-frontend:0.40.10linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.10linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.10-pg16linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.10-pg17linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.10-pg18linux/amd64, linux/arm64

    Full CHANGELOG: https://github.com/raphaelmansuy/edgequake/blob/edgequake-main/CHANGELOG.md

  4. v0.40.8EdgeQuake v0.40.82026-11-07 · 2026-11-07 08:07 UTC
    查看更新说明

    Docker Quickstart

    # Interactive one-command install (Docker only, no git clone)
    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/quickstart.sh | sh
    

    Or with plain Docker Compose:

    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/docker-compose.quickstart.yml \
      -o docker-compose.quickstart.yml
    docker compose -f docker-compose.quickstart.yml up -d
    # → Web UI:  http://localhost:3000
    # → API:     http://localhost:8080
    # → Swagger: http://localhost:8080/swagger-ui
    

    Or with the Makefile:

    make stack           # start all three services (pulls from GHCR)
    make stack-down      # stop and remove containers
    make stack-logs      # tail logs
    

    Images (v0.40.8)

    ImageArchitecture
    ghcr.io/raphaelmansuy/edgequake:0.40.8linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-frontend:0.40.8linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.8linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.8-pg16linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.8-pg17linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.8-pg18linux/amd64, linux/arm64

    Full CHANGELOG: https://github.com/raphaelmansuy/edgequake/blob/edgequake-main/CHANGELOG.md

  5. v0.40.7EdgeQuake v0.40.72026-11-06 · 2026-11-06 15:18 UTC
    查看更新说明

    Docker Quickstart

    # Interactive one-command install (Docker only, no git clone)
    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/quickstart.sh | sh
    

    Or with plain Docker Compose:

    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/docker-compose.quickstart.yml \
      -o docker-compose.quickstart.yml
    docker compose -f docker-compose.quickstart.yml up -d
    # → Web UI:  http://localhost:3000
    # → API:     http://localhost:8080
    # → Swagger: http://localhost:8080/swagger-ui
    

    Or with the Makefile:

    make stack           # start all three services (pulls from GHCR)
    make stack-down      # stop and remove containers
    make stack-logs      # tail logs
    

    Images (v0.40.7)

    ImageArchitecture
    ghcr.io/raphaelmansuy/edgequake:0.40.7linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-frontend:0.40.7linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.7linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.7-pg16linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.7-pg17linux/amd64, linux/arm64
    ghcr.io/raphaelmansuy/edgequake-postgres:0.40.7-pg18linux/amd64, linux/arm64

    Full CHANGELOG: https://github.com/raphaelmansuy/edgequake/blob/edgequake-main/CHANGELOG.md

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    EdgeQuake

    Graph-RAG in Rust: one binary, one Postgres, any LLM — cloud or fully local.
    Turn documents into a knowledge graph and get answers with sources, not just similar chunks.

    Version CI Rust License Stars Docs

    EdgeQuake: upload documents, explore the knowledge graph, ask questions

    Quick start · Pick your LLM · How it works · Honest numbers · Docs


    Quick start

    Needs Docker. Nothing else to install: no Rust, no Node.js, no build.

    curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/quickstart.sh | sh
    

    Then open http://localhost:3000. The wizard detects local servers (Ollama, LM Studio, oMLX, MLX-LM, llama.cpp) or takes an OpenAI / Anthropic key. Ports bind to 127.0.0.1 only.

    # Headless / CI
    quickstart.sh --yes --provider ollama
    quickstart.sh --yes --provider omlx --base-url http://host.docker.internal:9050
    

    Ask your first question (after dropping a PDF into the UI, or via the API):

    curl -X POST http://localhost:8080/api/v1/documents/upload -F "[email protected]"
    
    curl -X POST http://localhost:8080/api/v1/query \
      -H "Content-Type: application/json" \
      -d '{"query": "What are the main concepts?", "mode": "hybrid"}'
    

    Heads-up: the Ollama path pulls chat and embedding models (multiple GB the first time). Use a cloud key if you want the fastest first answer.

    ServiceDocker quickstartmake dev
    Web UIhttp://localhost:3000http://localhost:3010
    REST API / Swaggerhttp://localhost:8080 · /swagger-uisee make status
    Healthhttp://localhost:8080/healthsee make status

    Pin a version: EDGEQUAKE_VERSION=0.40.7 sh quickstart.sh. More options: Docker deployment options · Enable login.


    Pick your LLM

    EdgeQuake is not tied to one vendor. Configure a Connection (URL + key, encrypted at rest) in Settings → Connections, or by environment variable.

    You wantUseGuide
    Best quality, no hardwareOpenAI, Anthropic, Gemini, Mistralproviders
    Private, runs on your Mac/PCOllama, LM Studio, oMLX, MLX-LM, llama.cpp, vLLM-MLXOllama · oMLX
    Cloud LLM + local embeddingsHybrid (EDGEQUAKE_EMBEDDING_PROVIDER)model roles
    Your own gatewayAny OpenAI- or Anthropic-shaped servergeneric

    Each workspace can assign a different model to every role (extract, query, keyword, summary, embedding, vision). POST /api/v1/providers/test and edgequake doctor tell you what is actually reachable instead of guessing.

    Connections, doctor, and encrypted keys land with v0.33.0 (schema 169, already on main). See upgrade-to-0.33.0.


    Why Graph-RAG

    Vector search finds similar text. It struggles when the answer lives in the relationships between things: "who reports to whom", "which contract affects which product", "what themes run across these 200 papers".

    EdgeQuake implements the LightRAG algorithm in Rust. Documents become entities and relationships; at query time it combines vector search with graph traversal.

    How it works

    Document ─► chunks ─► LLM entity + relation extraction ─► knowledge graph
                                                       │            │
                                              pgvector (embeddings) + Apache AGE (graph)
                                                       │            │
    Question ─► keywords ─► vector search + graph walk ─► LLM ─► answer with sources
    
    ModeBest for
    naiveKeyword-like lookups
    localSpecific entities and their neighbours
    globalThemes and high-level questions
    hybrid (default)Balanced, comprehensive answers
    mixWeighted vector + graph blend
    bypassDirect LLM, no retrieval

    Details: feature tour · LightRAG deep dive · architecture.


    Honest numbers

    We publish what we measured, including where we tie. Benchmark: GraphRAG-Bench medical-mid, EdgeQuake vs LightRAG, same corpus and models (make bench, n=200).

    MetricEdgeQuakeLightRAG (Python)Verdict
    Answer accuracy (Acc)0.7920.786Statistical tie (95% CI includes 0)
    Cold query p504447 ms4359 ms≈ tied (1.02×)
    Warm query p50 (LLM + embed cache)82 ms993 msEdgeQuake faster when cached
    Evidence recall0.9320.949LightRAG ahead

    So the pitch is not "more accurate than LightRAG". It is the same retrieval quality, productionised: a single Rust binary, Postgres as the only datastore, multi-tenant isolation, auth, a web UI, MCP, SDKs, and explicit, tested upgrades. Methodology and caveats: EQ vs LightRAG · vs GraphRAG · vs traditional RAG.


    Built for production

    • One datastore for the graph. PostgreSQL 16/17/18 with pgvector. No separate vector DB or graph DB to run. PDF bytes, uploads, page images, and extracted markdown can move to a private bucket. Text and chunks stay in Postgres. The default is still the database. See originals.
    • Safe upgrades. The API never migrates your database. edgequake migrate is explicit, progressive, and replay-tested from every published release (SPEC-150, upgrading).
    • Secure defaults. Quickstart binds to loopback; secrets are generated; connection keys are AES-256-GCM encrypted and write-only (SECURITY.md, SPEC-163).
    • Multi-tenant. Fail-closed workspace isolation for query, delete, and recovery. Built-in auth, SSO (Keycloak/OIDC), and audit logging.
    • PDF vision pipeline. Text mode by default (pdfium embedded); vision mode for tables, scans, and complex layouts, with automatic fallback.
    • Honest health. /health probes real providers; edgequake doctor checks DB, schema, roles, and security posture.
    • Multi-arch images. linux/amd64 + linux/arm64 on GHCR, every release.

    Integrations

    SDKsPython · TypeScript · Rust · Go, Java, Kotlin, C#, PHP, Ruby, Swift
    AI agentsMCP server
    AppsOpenWebUI · LangChain
    APIOpenAPI 3.0, SSE streaming, batch ingestion · REST reference

    Documentation

    I want to…Read
    Click through the appVisual tour — every screen, in plain English, with pictures from the public demo
    Get runningGetting started · First RAG app
    Choose / configure a modelProviders · Env reference
    DeployDeployment · Docker options · Configuration
    UpgradeUpgrading · What's new · CHANGELOG
    OperateMonitoring · Runtime auth · Originals · Troubleshooting
    UnderstandArchitecture · Deep dives · FAQ

    Contributing

    Contributions are welcome, from typo fixes to new providers. Start with CONTRIBUTING.md; for a local build run make install && make dev (see AGENTS.md and the pre-delivery checklist).

    Acknowledgments

    EdgeQuake implements the LightRAG algorithm by Zirui Guo, Lianghao Xia, Yanhua Yu, Tu Ao, and Chao Huang. Also inspired by Microsoft's GraphRAG.

    License

    Apache License 2.0, see LICENSE. Copyright 2024-2026 Raphaël MANSUY

    Star History

    Star History Chart