LightningRAG Dify应用 是 AI Skill Hub 本期精选Dify应用之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
LightningRAG是一款开源的全栈Vue + Gin启动器,具有分离的前端和后端,适合AI和深度学习项目的开发。它提供了一个强大的框架,帮助开发者快速构建和部署AI和深度学习项目。
LightningRAG Dify应用 是一款基于 Go 开发的开源工具,专注于 agent、ai、deepseek 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
LightningRAG是一款开源的全栈Vue + Gin启动器,具有分离的前端和后端,适合AI和深度学习项目的开发。它提供了一个强大的框架,帮助开发者快速构建和部署AI和深度学习项目。
LightningRAG Dify应用 是一款基于 Go 开发的开源工具,专注于 agent、ai、deepseek 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:go install(推荐) go install github.com/LightningRAG/LightningRAG@latest # 方式二:从源码编译 git clone https://github.com/LightningRAG/LightningRAG cd LightningRAG go build -o lightningrag . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/LightningRAG/LightningRAG/releases
# 查看帮助 lightningrag --help # 基本运行 lightningrag [options] <input> # 详细使用说明请查阅文档 # https://github.com/LightningRAG/LightningRAG
# lightningrag 配置说明 # 查看配置选项 lightningrag --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export LIGHTNINGRAG_CONFIG="/path/to/config.yml"
English | 简体中文
GitHub: https://github.com/LightningRAG/LightningRAG
LightningRAG is built around RAG: knowledge bases (ingest, parse, chunk, vector retrieval), pluggable LLMs, embeddings, vector stores, and rerankers, and Agent orchestration on a canvas (retrieval, LLM, tools, control flow)—with optional webhook channel connectors (Feishu, DingTalk, Slack, etc.). It ships as a Vue + Gin full-stack starter with JWT, dynamic routes/menus, Casbin, a form builder, and code generation.
Online Demo: https://demo.LightningRAG.com
username:admin
password:123456
Public preview is not deployed yet; remove the strikethrough and turn the demo link back on when the server is ready.
references; pluggable LLMs, embeddings, rerankers, and rag: defaults in config.yaml (Section 3 below; server/rag/README.md).server/rag/tools/README.md).docs/THIRD_PARTY_CHANNEL_CONNECTORS.md).jwt and casbin.Qiniuyun', Aliyun 'and Tencent Cloud (please develop your own application for each platform corresponding to token or key ).mixins to encapsulate paging, and the paging method can call mixins .use-multipoint to true under system in config.yaml (configure Redis accordingly; report bugs if any).go generate
npm install
- node version > v18.16.0
- golang version >= v1.22
- IDE recommendation: GoLand
Hi! Thank you for choosing LightningRAG.
LightningRAG is a full-stack (frontend and backend separation) framework for developers, designers and product managers.
We are excited that you are interested in contributing to LightningRAG. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines.
[file]: description, e.g. README.md: fix typo.rag_llm_providers, rag_embedding_providers, rag_vector_store_configs (and the admin UI where exposed).rag_user_llms).enableRerank when a rerank provider is configured.To ship one binary with the built Vue app embedded:
make build-server-embed-local
or bash scripts/build-server-with-embed.sh (runs yarn build, scripts/sync-web-dist.sh, then go build in server/).
system.embed-web-ui: true in config.yaml (default is false for the usual Nginx + API split).router-prefix empty and embed enabled, /api/... is rewritten to /... before Gin routing (HTTP handler wrapper), matching VITE_BASE_API=/api and the Nginx rewrite in this repo. Plain Engine.Use middleware cannot fix this because Gin matches routes before global middleware runs on 404. If router-prefix is set, no automatic /api strip is applied.See also scripts/sync-web-dist.sh and server/webui/.
Official release builds use GoReleaser with .goreleaser.yaml at the repo root.
npm install + npm run build in web/, then scripts/sync-web-dist.sh — same embedding path as above (server/webui/webdist → go:embed).go.mod lives in server/; the config sets gomod.dir: server so module detection works from the monorepo root.CGO_ENABLED=0 cross-builds for Linux / Windows / macOS / FreeBSD (amd64, arm64, 386 where applicable, plus Linux armv7 and Windows arm64). See .goreleaser.yaml for the exact matrix.lightningrag binary, config.yaml (copied from server/config.docker.yaml), and the resource/ tree from server/resource.v* tag runs .github/workflows/goreleaser.yml and publishes to GitHub Releases (needs contents: write via GITHUB_TOKEN).Local dry run (no upload):
goreleaser release --snapshot --clean --skip=publish
Publish: create and push a semver tag, e.g. git tag v2.9.1 && git push origin v2.9.1.
go install github.com/swaggo/swag/cmd/swag@latest
cd server
swag init
After running the commands above,docs.go,swagger.json, andswagger.yamlunderserver/docsare updated. Start the Go server and open http://localhost:8888/swagger/index.html to view the Swagger UI.
Open LightningRAG.code-workspace at the repo root in VS Code. The sidebar shows three virtual folders: backend, frontend, and root.
Use the tasks Backend, Frontend, or Both (Backend & Frontend). The last one starts backend and frontend together.
The workspace file may define go.toolsEnvVars for Go tools in VS Code. On machines with multiple Go versions, set go.gopath and go.goroot as needed.
"go.gopath": null,
"go.goroot": null,
LightningRAG 是一个基于 RAG(检索增强生成)架构构建的全栈框架。它集成了知识库管理功能,支持文档摄取、解析、分块及向量检索。系统设计高度模块化,允许开发者灵活插拔不同的 LLMs、embeddings、vector stores 和 rerankers。此外,它还具备强大的 Agent orchestration 能力,支持在画布上进行检索、工具调用及控制流管理,并可通过 webhook 连接 Feishu、DingTalk、Slack 等外部渠道。前端采用 Vue 构建,后端基于 Gin 框架,旨在为开发者和产品经理提供完整的 RAG 应用解决方案。
LightningRAG 提供完善的知识库与 RAG 能力,支持文档的自动化解析与分块,并能将数据嵌入至多种可插拔的 vector stores 中。系统支持混合检索与多路径检索模式(包括 vector、keyword、PageIndex 等检索器类型),并提供支持 streaming chat 的 API,且可选择性地返回 references 以增强可信度。核心组件如 LLMs、embeddings 和 rerankers 均可通过 config.yaml 进行灵活配置,确保了系统的高度可扩展性与定制化能力。
在开始使用 LightningRAG 之前,请确保您的开发环境已安装以下依赖:Node.js 版本需大于 v18.16.0,Golang 版本需大于等于 v1.22。对于后端开发,建议使用 GoLand 作为 IDE 以获得最佳的开发体验。此外,项目构建过程需要使用 go mod 管理依赖,并需通过 npm 安装前端相关的依赖包。
本项目支持源码编译安装。首先,请确保已安装符合要求的 Go 和 Node.js 环境。在项目根目录下,通过 go mod 下载并安装 Go 依赖,并运行 go generate 进行代码生成。随后,进入前端目录执行 npm install 安装依赖。若需构建包含嵌入式 Web UI 的单二进制文件,请在根目录运行 make build-server-embed-local 或执行相应的 shell 脚本,该过程会自动完成 yarn build、资源同步及 Go 编译。
LightningRAG 采用前后端分离的架构设计,适用于开发者、设计师及产品经理。用户可以通过内置的 Web UI 进行交互式操作,也可以通过 API 进行集成。对于需要将前端应用打包进后端的场景,可以通过配置 system.embed-web-ui: true 来实现单二进制文件交付。开发者可以通过提交 Issue 来反馈问题或参与社区贡献,建议在提交贡献前详细阅读项目指南以确保符合规范。
LightningRAG 提供了灵活的配置机制。通过修改 config.yaml 文件,用户可以定义 rag: 默认参数,并配置各类 LLM、embedding、rerank 及 vector store 的 Provider。系统支持 Admin DB 配置,允许在管理界面或配置文件中管理 rag_llm_providers 等参数。此外,系统支持 User models 模式,允许终端用户通过 rag_user_llms 自行添加 API keys,从而实现多租户或个性化的模型调用能力。
LightningRAG 提供了完善的 Swagger API 文档,方便开发者进行集成开发。您可以通过安装 swag 工具(go install github.com/swaggo/swag/cmd/swag@latest)并在 server 目录下运行 swag init 来自动生成最新的 docs.go、swagger.json 和 swagger.yaml 文件。启动 Go server 后,即可通过浏览器访问 Swagger UI 界面,直观地查看、测试所有可用的 API 接口。
LightningRAG是一个强大的开源Dify应用,提供了一个全栈的Vue + Gin启动器,适合AI和深度学习项目的开发。它的框架和工具非常强大,帮助开发者快速构建和部署项目。但是,项目的文档和示例代码可能需要进一步完善。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,LightningRAG Dify应用 在Dify应用赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | LightningRAG |
| 原始描述 | 开源Dify应用:LightningRAG is a full-stack Vue + Gin starter with a decoupled frontend and bac。⭐221 · Go |
| Topics | agentaideepseekdifygingo |
| GitHub | https://github.com/LightningRAG/LightningRAG |
| License | Apache-2.0 |
| 语言 | Go |
收录时间:2026-05-13 · 更新时间:2026-05-16 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端