langflow-ai/openrag

GitHub: langflow-ai/openrag

一站式RAG平台,整合Langflow、OpenSearch和Docling,提供智能文档摄取、语义搜索和AI驱动的对话式问答能力。

Stars: 1108 | Forks: 106

# OpenRAG

智能 Agent 驱动的文档搜索

[![Langflow](https://img.shields.io/badge/Langflow-1C1C1E?style=for-the-badge&logo=langflow)](https://github.com/langflow-ai/langflow) [![OpenSearch](https://img.shields.io/badge/OpenSearch-005EB8?style=for-the-badge&logo=opensearch&logoColor=white)](https://github.com/opensearch-project/OpenSearch) [![Docling](https://img.shields.io/badge/Docling-000000?style=for-the-badge)](https://github.com/docling-project/docling) [![YouTube Channel](https://img.shields.io/youtube/channel/subscribers/UCn2bInQrjdDYKEEmbpwblLQ?label=Subscribe&style=social)](https://www.youtube.com/@OpenRAG/) [![GitHub stars](https://img.shields.io/github/stars/langflow-ai/openrag?style=social)](https://github.com/langflow-ai/openrag/stargazers) [![GitHub forks](https://img.shields.io/github/forks/langflow-ai/openrag?style=social)](https://github.com/langflow-ai/openrag/network/members) [![Documentation](https://img.shields.io/badge/Documentation-773eff)](https://docs.openr.ag) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/langflow-ai/openrag)
OpenRAG 是一个综合性的检索增强生成(RAG)平台,支持智能文档搜索和 AI 驱动的对话。 用户可以通过由大语言模型和语义搜索功能支持的聊天界面上传、处理和查询文档。该系统利用 Langflow 进行文档摄取、检索工作流和智能引导,提供无缝的 RAG 体验。 查看[文档](https://docs.openr.ag/)或通过[快速入门](https://docs.openr.ag/quickstart)开始使用。 基于 [FastAPI](https://fastapi.tiangolo.com/) 和 [Next.js](https://github.com/vercel/next.js) 构建。 由 [OpenSearch](https://github.com/opensearch-project/OpenSearch)、[Langflow](https://github.com/langflow-ai/langflow) 和 [Docling](https://github.com/docling-project/docling) 提供支持。
OpenRAG Demo
## ✨ 核心功能 - **预打包且即刻运行** - 所有关键工具均已配置完毕,只需安装并运行 - **Agent RAG 工作流** - 具备重排序和多 Agent 协调的高级编排 - **文档摄取** - 通过智能解析处理杂乱的现实世界数据 - **拖拽式工作流构建器** - 由 Langflow 驱动的可视化界面,助力快速迭代 - **模块化企业附加组件** - 按需扩展功能 - **任意规模的企业级搜索** - 由 OpenSearch 驱动,提供生产级性能 ## 🔄 OpenRAG 工作原理 OpenRAG 遵循精简的工作流程,将您的文档转化为智能、可搜索的知识:
OpenRAG Workflow Diagram
## 🚀 安装 OpenRAG 要开始使用 OpenRAG,请参阅 OpenRAG 文档中的安装指南: * [快速入门](https://docs.openr.ag/quickstart) * [安装 OpenRAG Python 包](https://docs.openr.ag/install-options) * [使用 Docker 或 Podman 部署自管服务](https://docs.openr.ag/docker) ## ✨ 快速开始工作流
Use uv run openrag to start **1. 启动 OpenRAG** ↓ Add files or folders as knowledge **2. 添加知识库** ↓ Start Chatting with your knowledge **3. 开始聊天**
## 📦 SDK 使用我们的官方 SDK 将 OpenRAG 集成到您的应用程序中: ### Python SDK ``` pip install openrag-sdk ``` **快速示例:** ``` import asyncio from openrag_sdk import OpenRAGClient async def main(): async with OpenRAGClient() as client: response = await client.chat.create(message="What is RAG?") print(response.response) if __name__ == "__main__": asyncio.run(main()) ``` 📖 [完整 Python SDK 文档](https://pypi.org/project/openrag-sdk/) ### TypeScript/JavaScript SDK ``` npm install openrag-sdk ``` **快速示例:** ``` import { OpenRAGClient } from "openrag-sdk"; const client = new OpenRAGClient(); const response = await client.chat.create({ message: "What is RAG?" }); console.log(response.response); ``` 📖 [完整 TypeScript/JavaScript SDK 文档](https://www.npmjs.com/package/openrag-sdk) ## 🔌 模型上下文协议 (MCP) 将 Cursor 和 Claude Desktop 等 AI 助手连接到您的 OpenRAG 知识库: ``` pip install openrag-mcp ``` **快速示例 (Cursor/Claude Desktop 配置):** ``` { "mcpServers": { "openrag": { "command": "uvx", "args": ["openrag-mcp"], "env": { "OPENRAG_URL": "http://localhost:3000", "OPENRAG_API_KEY": "your_api_key_here" } } } } ``` MCP 服务器提供用于 RAG 增强聊天、语义搜索和设置管理的工具。 📖 [完整 MCP 文档](https://pypi.org/project/openrag-mcp/) ## 🛠️ 开发 对于想要[为 OpenRAG 做贡献](https://docs.openr.ag/support/contribute)或搭建开发环境的开发者,请参阅 [CONTRIBUTING.md](CONTRIBUTING.md)。 ## 🛟 故障排除 如需 OpenRAG 相关帮助,请参阅 [OpenRAG 故障排除](https://docs.openr.ag/support/troubleshoot)并访问[讨论页面](https://github.com/langflow-ai/openrag/discussions)。 如需报告错误或提交功能请求,请访问[问题页面](https://github.com/langflow-ai/openrag/issues)。
标签:AV绕过, DLL 劫持, DNS解析, Docling, FastAPI, Langflow, Python, RAG, 企业搜索, 分布式搜索, 向量数据库, 大语言模型, 对话系统, 开源项目, 文档搜索, 文档解析, 无后门, 智能问答, 检索增强生成, 知识库管理, 语义检索, 请求拦截, 逆向工具