rag-web-ui — RAG 知识库工具中文文档 是 AI Skill Hub 本期精选AI工具之一。已获得 3.0k 颗 GitHub Star,综合评分 8.8 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
rag-web-ui — RAG 知识库工具中文文档 是一款基于 TypeScript 开发的开源工具,专注于 ai、deepseek、langchain 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
rag-web-ui — RAG 知识库工具中文文档 是一款基于 TypeScript 开发的开源工具,专注于 ai、deepseek、langchain 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g rag-web-ui # 方式二:npx 直接运行(无需安装) npx rag-web-ui --help # 方式三:项目依赖安装 npm install rag-web-ui # 方式四:从源码运行 git clone https://github.com/rag-web-ui/rag-web-ui cd rag-web-ui npm install npm start
# 命令行使用
rag-web-ui --help
# 基本用法
rag-web-ui [options] <input>
# Node.js 代码中使用
const rag_web_ui = require('rag-web-ui');
const result = await rag_web_ui.run(options);
console.log(result);
# rag-web-ui 配置说明 # 查看配置选项 rag-web-ui --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export RAG_WEB_UI_CONFIG="/path/to/config.yml"
Knowledge Base Management Based on RAG (Retrieval-Augmented Generation)
<p> <a href="https://github.com/rag-web-ui/rag-web-ui/blob/main/LICENSE"><img src="https://img.shields.io/github/license/rag-web-ui/rag-web-ui" alt="License"></a> <a href="#"><img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="Python"></a> <a href="#"><img src="https://img.shields.io/badge/node-%3E%3D18-green.svg" alt="Node"></a> <a href="#"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a> <a href="#"><img src="https://github.com/rag-web-ui/rag-web-ui/actions/workflows/test.yml/badge.svg" alt="CI"></a> </p>
<p> <a href="#features">Features</a> • <a href="#quick-start">Quick Start</a> • <a href="#deployment-guide">Deployment</a> • <a href="#architecture">Architecture</a> • <a href="#development">Development</a> • <a href="#contributing">Contributing</a> • <a href="https://deepwiki.com/rag-web-ui/rag-web-ui" target="_blank">DeepWiki</a> </p> </div>
RAG Web UI is an intelligent dialogue system based on RAG (Retrieval-Augmented Generation) technology that helps build intelligent Q&A systems based on your own knowledge base. By combining document retrieval and large language models, it achieves accurate and reliable knowledge-based question answering services.
The system supports multiple LLM deployment options, including cloud services like OpenAI, DeepSeek, and MiniMax, as well as local model deployment through Ollama, meeting privacy and cost requirements in different scenarios.
It also provides OpenAPI interfaces for convenient knowledge base access via API calls.
1. Clone the repository
git clone https://github.com/rag-web-ui/rag-web-ui.git
cd rag-web-ui
You can check the details in the configuration table below.
cp .env.example .env
3. Start services(development server)
docker compose up -d --build
docker compose -f docker-compose.dev.yml up -d --build
Knowledge Base Management Dashboard
Document Processing Dashboard
Document List
Intelligent Chat Interface with References
API Key Management
<img src="./docs/images/screenshot6.png" alt="Analytics Dashboard" width="800"> <p><em>API Reference</em></p> </div>
## Project Flowchart
| Parameter | Description | Default | Required |
|---|---|---|---|
| MYSQL_SERVER | MySQL Server Address | localhost | ✅ |
| MYSQL_USER | MySQL Username | postgres | ✅ |
| MYSQL_PASSWORD | MySQL Password | postgres | ✅ |
| MYSQL_DATABASE | MySQL Database Name | ragwebui | ✅ |
| SECRET_KEY | JWT Secret Key | - | ✅ |
| ACCESS_TOKEN_EXPIRE_MINUTES | JWT Token Expiry (minutes) | 30 | ✅ |
| Parameter | Description | Default | Applicable |
|---|---|---|---|
| CHAT_PROVIDER | LLM Service Provider | openai | ✅ |
| OPENAI_API_KEY | OpenAI API Key | - | Required for OpenAI |
| OPENAI_API_BASE | OpenAI API Base URL | https://api.openai.com/v1 | Optional for OpenAI |
| OPENAI_MODEL | OpenAI Model Name | gpt-4 | Required for OpenAI |
| DEEPSEEK_API_KEY | DeepSeek API Key | - | Required for DeepSeek |
| DEEPSEEK_API_BASE | DeepSeek API Base URL | - | Required for DeepSeek |
| DEEPSEEK_MODEL | DeepSeek Model Name | - | Required for DeepSeek |
| OLLAMA_API_BASE | Ollama API Base URL | http://localhost:11434 | Required for Ollama |
| OLLAMA_MODEL | Ollama Model Name | llama2 | Required for Ollama |
| MINIMAX_API_KEY | MiniMax API Key | - | Required for MiniMax |
| MINIMAX_API_BASE | MiniMax API Base URL | https://api.minimax.io/v1 | Optional for MiniMax |
| MINIMAX_MODEL | MiniMax Model Name | MiniMax-M2.7 | Required for MiniMax |
| Parameter | Description | Default | Applicable |
|---|---|---|---|
| EMBEDDINGS_PROVIDER | Embedding Service Provider | openai | ✅ |
| OPENAI_API_KEY | OpenAI API Key | - | Required for OpenAI Embedding |
| OPENAI_EMBEDDINGS_MODEL | OpenAI Embedding Model | text-embedding-ada-002 | Required for OpenAI Embedding |
| DASH_SCOPE_API_KEY | DashScope API Key | - | Required for DashScope |
| DASH_SCOPE_EMBEDDINGS_MODEL | DashScope Embedding Model | - | Required for DashScope |
| OLLAMA_EMBEDDINGS_MODEL | Ollama Embedding Model | deepseek-r1:7b | Required for Ollama Embedding |
| Parameter | Description | Default | Applicable |
|---|---|---|---|
| VECTOR_STORE_TYPE | Vector Store Type | chroma | ✅ |
| CHROMA_DB_HOST | ChromaDB Server Address | localhost | Required for ChromaDB |
| CHROMA_DB_PORT | ChromaDB Port | 8000 | Required for ChromaDB |
| QDRANT_URL | Qdrant Vector Store URL | http://localhost:6333 | Required for Qdrant |
| QDRANT_PREFER_GRPC | Prefer gRPC Connection for Qdrant | true | Optional for Qdrant |
| Parameter | Description | Default | Required |
|---|---|---|---|
| MINIO_ENDPOINT | MinIO Server Address | localhost:9000 | ✅ |
| MINIO_ACCESS_KEY | MinIO Access Key | minioadmin | ✅ |
| MINIO_SECRET_KEY | MinIO Secret Key | minioadmin | ✅ |
| MINIO_BUCKET_NAME | MinIO Bucket Name | documents | ✅ |
| Parameter | Description | Default | Required |
|---|---|---|---|
| TZ | Timezone Setting | Asia/Shanghai | ❌ |
For common issues and solutions, please refer to our Troubleshooting Guide.
RAG Web UI 是一个基于 RAG (Retrieval-Augmented Generation) 技术的智能对话系统,帮助您基于自己的知识库构建智能问答系统。通过结合文档检索和大规模语言模型,它实现了准确和可靠的知识库问答服务。该系统支持多种 LLM 部署选项,包括云服务等。
RAG Web UI 的功能包括智能文档管理、进阶对话引擎等。智能文档管理支持多种文档格式(PDF、DOCX、Markdown、Text),自动文档切割和向量化,支持异步文档处理和增量更新。进阶对话引擎支持精确检索和生成基于 RAG,支持多轮上下文对话,支持引用引用在对话中。
安装步骤包括:克隆仓库,配置环境变量,启动服务(开发服务器)。
快速启动步骤包括:克隆仓库,配置环境变量,启动服务(开发服务器)。
配置说明包括核心配置和 LLM 配置两部分。核心配置包括 MySQL 服务器地址、用户名、密码等。LLM 配置包括 LLM 服务提供商、OpenAI API 密钥等。
常见问题解答包括:常见问题和解决方案,请参阅我们的[故障排除指南](docs/troubleshooting.md)。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,rag-web-ui — RAG 知识库工具中文文档 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | rag-web-ui |
| 原始描述 | RAG Web UI is an intelligent dialogue system based on RAG (Retrieval-Augmented Generation) technology. |
| Topics | aideepseeklangchainollamarag |
| GitHub | https://github.com/rag-web-ui/rag-web-ui |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-05-22 · 更新时间:2026-05-22 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。