feat: 发布 UltimateRAG V2 文档智能版本 - #4
Merged
Merged
Conversation
本次提交实现V2版本的异步文档智能摄取完整能力: - 新增PostgreSQL持久化任务队列,支持多Worker并行领取、租约回收与有限重试,解决同步上传超时与API进程资源占用问题 - 新增Alembic数据库迁移脚本,初始化异步摄取任务表并迁移旧版未完成任务 - 引入Docling本地PDF版面与表格分析,支持分栏阅读顺序、表格结构还原与元素BBox定位,减少对外OCR调用成本 - 新增百炼视觉理解适配器,提取图表、架构图等视觉内容的语义文本 - 调整API上传接口返回202 Accepted,文件可靠落库后立即返回,不再同步等待完整处理流程 - 新增后台Worker进程,异步执行解析、切块、向量化与索引链路 - 重构切块器为Token感知的结构感知切块,优化表格、代码等特殊内容的切分规则 - 更新前端文档列表支持自动轮询处理状态,优化上传与管理体验 - 更新依赖配置与环境变量示例,新增Docling、tiktoken等必要依赖与配置项 - 更新Docker Compose配置,新增后台Worker服务与持久化缓存卷 - 补充完整单元测试、冒烟测试脚本与架构文档,新增ADR-001记录决策背景与权衡
- 为百炼OCR客户端新增命令行调试入口,支持本地图片手动测试 - 新增两个示例图片文件到data目录用于开发验证 - 更新.gitignore以忽略macOS的.DS_Store系统文件
替换 VitePress 脚手架示例页,写入面向学习者的完整文档: RAG 入门、项目概览、架构分层、模块详解、核心流程、API 参考。 同时补充 .gitignore 忽略 docs 构建产物 cache/dist,并取消 此前误提交的 .vitepress/cache 跟踪,避免构建产物进入仓库。 Co-Authored-By: Claude Code <noreply@anthropic.com>
新增官方 Pages + VitePress 模式 workflow:push 到 V2 且涉及 apps/docs 时自动构建并发布,另支持 workflow_dispatch 手动触发。 站点地址为项目 Pages 子路径 /UltimateRAG/,config.mts 已设置 base 并在 Commit 1 中修正 socialLinks 为 leonyangdev/UltimateRAG。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
将 UltimateRAG 从 V1 Naive RAG 升级到 V2 Document Intelligence,重点交付可靠异步文档摄取、多格式统一解析、复杂 PDF 版面恢复、图片多模态理解和结构化 Token 切块。
主要变更
数据与部署说明
验证结果
V2 边界
本 PR 不包含混合检索、Reranker、Query Rewrite、认证、ACL、多租户、审计、任务管理控制台、RAGOps 或 Agent 工作流;这些能力按版本规划留给 V3/V4 及后续版本。