Commit Graph

1292 Commits

Author SHA1 Message Date
Wenjie Zhang
f5fedb4dec fix(knowledge-tool): 修复使用的 ID 而不是知识库的 bug 2026-01-24 10:56:31 +08:00
Wenjie Zhang
e585f796d2 refactor(task): 重构任务服务并迁移到postgres 数据库
将任务服务从server/services移动到src/services
添加TaskRepository实现数据库持久化
更新所有相关导入路径
2026-01-24 10:56:31 +08:00
Wenjie Zhang
63fed0dfd6 refactor: 移除基于 SQLite 的遗留问题 2026-01-24 10:56:31 +08:00
Wenjie Zhang
a5d55d6c37 refactor(storage): 重构对话数据库模型与存储管理
将业务数据模型从SQLite迁移至PostgreSQL,统一使用models_business.py
删除旧的SQLite模型和ConversationManager,新增repository和服务层
优化时间处理工具函数,增加utc_now_naive和format_utc_datetime
重构前端组件代码格式,统一多行导入和长字符串的换行风格
2026-01-24 10:56:31 +08:00
Wenjie Zhang
3da0d57c1c refactor: 重构数据库访问层,用户/对话/消息都统一迁移至PostgreSQL并添加业务模型支持 2026-01-24 10:56:31 +08:00
Wenjie Zhang
a1812f2e97 feat(知识库): 重构知识库元数据存储为PostgreSQL数据库
- 新增知识库、知识文件、评估基准、评估结果等数据模型
- 实现知识库相关Repository类提供CRUD操作
- 修改知识库实现类使用PostgreSQL存储元数据
- 添加PostgreSQL数据库管理器和初始化逻辑
- 更新相关路由和工具类适配新的存储方式
- 添加数据库迁移脚本和测试工具
- 在docker-compose中配置PostgreSQL服务
2026-01-24 10:56:31 +08:00
Wenjie Zhang
431f06f211 feat(auth): 添加超级管理员用户切换功能和相关日志记录 2026-01-24 10:56:31 +08:00
Wenjie Zhang
f3da61b10a 功能:增强知识库访问控制和共享配置 #480
- 在save_agent_config中实现了基于用户角色的知识库访问控制。
- 添加了新端点以检索当前用户可访问的数据库。
- 在数据库创建和更新过程中引入了share_config以管理共享设置。
- 创建了ShareConfigForm组件用于在UI中管理共享设置。
- 更新了部门和知识API以支持新的访问控制功能。
- 增强了用户管理组件以显示用户角色和部门名称。
- 重构了数据库视图以包含共享配置设置。
2026-01-24 10:56:31 +08:00
Wenjie Zhang
e7684ad9c4 feat(DataBaseInfoView): 添加待处理文件提示条和批量解析/入库功能 2026-01-23 22:50:00 +08:00
Wenjie Zhang
e0adda65fc fix(lightrag): 修复 lightrag 知识库 embedding dim 的错误 Fixes: Error: 知识库上传PDF检索测试失败
Fixes #498 Error: ValueError: Embedding dimension mismatch detected: total elements (1024) cannot be evenly divided by expected dimension (1536)
Fixes #491
2026-01-23 22:29:24 +08:00
Wenjie Zhang
0a8606b71f
Revise knowledge base documentation and processes
Updated the knowledge base documentation to clarify the knowledge base introduction, file upload process, and differences between LightRAG and global knowledge graphs. Added common issues and solutions related to the LightRAG knowledge base.
2026-01-20 22:48:30 +08:00
Wenjie Zhang
a7d4814931 fix(lightrag-milvus): 添加默认的 MILVUS_DB_NAME 环境变量(不知道为啥突然有这个 bug) 2026-01-20 15:25:50 +08:00
Wenjie Zhang
08573a6de4 fix(kb_utils): 从 content_hashes 映射中获取 content_hash,添加缺失时的异常处理 #486 2026-01-20 13:05:44 +08:00
Wenjie Zhang
c587091cbd feat(roadmap): 更新 Roadmap 2026-01-20 10:58:15 +08:00
Wenjie Zhang
2836ff09cf fix(auth): 添加检查以防止删除部门唯一管理员账户 2026-01-19 20:49:29 +08:00
Wenjie Zhang
67bcd26565 fix(lightrag): 过滤掉引用不存在节点的边以确保查询结果的有效性 #477 2026-01-19 16:01:27 +08:00
Wenjie Zhang
f686c2873c style: 代码格式化,优化导入和组件结构 2026-01-18 23:07:21 +08:00
GitHub Actions
0f684851bc style: auto-format with ruff [skip ci] 2026-01-18 14:55:37 +00:00
Wenjie Zhang
5b3703ac1c feat(account): 添加部门基础管理功能 #480
- 实现数据库迁移,创建部门表并向用户表添加department_id字段。
- 创建Department模型并与User模型建立关联关系。
- 开发部门管理API以支持增删改查操作。
- 添加DepartmentManagementComponent用于在UI中管理部门。
- 在UserManagementComponent中集成部门选择功能以进行用户分配。
- 更新用户存储以处理部门数据。
- 增强UI组件以改善样式和用户体验。
2026-01-18 22:54:43 +08:00
Wenjie Zhang
62af84eea9 fix(graph-minio): 修复未配置 HOST_IP 的情况下导致的错误 Fixes: Question: 不允许的外部 URL: localhost:通过图谱功能上传jsonl文件后无法解析
Fixes #479
2026-01-18 15:17:27 +08:00
Wenjie Zhang
7fb5639408 docs: 更新开发路线图 2026-01-17 11:37:45 +08:00
humeng
8c2c77a043 更新文档 2026-01-16 15:49:58 +08:00
humeng
d90c716775 fix: 修改评论描述 2026-01-16 15:49:58 +08:00
Wenjie Zhang
59f8a9da73 chore(docker): 优化镜像体积 #428
- 移除未使用的 langchain-huggingface 和 mineru[core] 依赖
  - 使用 pytorch-cpu 镜像源替代默认 PyPI(docling 需要)
2026-01-16 15:43:41 +08:00
Wenjie Zhang
739a7785e9
Revise README with new sections and features
Updated README to include new features, badges, and links.
2026-01-16 01:08:52 +08:00
Wenjie Zhang
e63d09d8c3
Merge pull request #475 from jonasHanhan/fix-issue-453
fix: multiple Human in the loop approvals getting stuck
2026-01-15 20:09:35 +08:00
jonasHanhan
3a75b75bfd fix: multiple Human in the loop approvals getting stuck (#453)
Add check_and_handle_interrupts call to resume_agent_chat function
to make it consistent with the main chat flow.

Root cause:
- Main chat flow checks for pending interrupts after stream ends
- Resume flow was missing this check
- When a new interrupt was triggered after resume, frontend never
  received the new approval request

Fix:
- Add the same interrupt detection logic after stream ends in resume flow
2026-01-15 16:21:00 +08:00
Wenjie Zhang
339cd0f3b2 refactor: 重构工具获取逻辑,移除过时的工具接口,优化上下文工具管理 2026-01-15 16:04:19 +08:00
Wenjie Zhang
9d1e2b92f5 fix(agent-tools): 修复 SQL 安全检查误判的情况 2026-01-15 14:45:28 +08:00
Wenjie Zhang
beb62436fd secure(48): 验证 task_id 格式以防止路径遍历漏洞 2026-01-15 12:56:47 +08:00
Wenjie Zhang
c7a417c68b feat: 添加时间戳到上传的图片文件名,以避免文件名冲突 2026-01-15 12:29:01 +08:00
Wenjie Zhang
937355e390 feat: 添加加载状态和空内容提示,优化文件详情展示 2026-01-15 12:17:18 +08:00
Wenjie Zhang
995c6041aa lint(web): [大量改动] 格式化前端代码 2026-01-15 06:01:34 +08:00
Wenjie Zhang
370b0e4b25 feat: 添加选项卡功能以优化配置项展示,重构侧边栏布局 2026-01-15 05:59:13 +08:00
Wenjie Zhang
673a7fdd75 feat: 优化设置面板和模型提供者组件的布局与样式 2026-01-15 05:33:24 +08:00
Wenjie Zhang
62685b7ffe refactor: 重构组件和样式以改善UI/UX
- 重构FileDetailModal.vue,增加了下载选项下拉菜单并优化了布局。
- 移除部分页面的响应式媒体查询,不做响应式适配,仅适配大众尺寸
- 改进了ChunkParamsConfig.vue的布局,更好地分组参数。
- 调整了FileTable.vue,改善排序和筛选UI,包括状态筛选逻辑。
- 优化了FileUploadModal.vue的布局,提高OCR引擎配置的可见性。
- 其他  AiTextarea.vue / DataBaseView.vue / AppLayout.vue / file_utils.js / DataBaseInfoView.vue / FeedbackModalComponent.vue / FileTable.vue
2026-01-15 04:54:53 +08:00
Wenjie Zhang
55dbbf1846 feat: 优化动态 filetable 分页 #472 2026-01-15 02:38:02 +08:00
Wenjie Zhang
7fb5ba830d chore: 更新版本号至 v0.4.3,修改相关文档和配置文件 2026-01-15 01:07:41 +08:00
Wenjie Zhang
1204e9f134 fix(style): 修复任务中心硬编码颜色 2026-01-15 01:04:03 +08:00
Wenjie Zhang
22921fdec7 feat(parsing): 使用 docling 处理 docx/xlsx/pptx #439 2026-01-15 00:29:00 +08:00
Wenjie Zhang
e7c078310e docs: 更新MCP服务器管理等相关文档 2026-01-14 22:27:45 +08:00
Wenjie Zhang
9fa8ce288f feat: 添加知识库名称检查,防止重复创建相同名称的知识库 #466 2026-01-14 22:00:53 +08:00
Wenjie Zhang
386c5d5dad feat: 添加模型选择校验,确保生成模型和评估模型同时选择或同时不选择 2026-01-14 21:52:20 +08:00
Wenjie Zhang
5047cd0744 style: 调整设置模态框样式,优化布局和间距 2026-01-14 21:40:48 +08:00
Wenjie Zhang
e1825aded2 style: 点击服务器名称显示详情模态框,限制图标输入长度 2026-01-14 21:12:12 +08:00
Wenjie Zhang
9430cba037 feat: 增强LLM查询功能,lightrag 中支持选择返回内容范围(默认仅 chunk) #437 2026-01-14 21:03:11 +08:00
Wenjie Zhang
ebbb831fc0 feat: 实现MCP服务以统一业务逻辑和状态管理
- 新增 mcp_service 文件,移除原本的 src/agents/common/mcp.py,所有功能合并到mcp_service,MCP服务来处理服务器配置的增删改查操作、数据库与缓存之间的同步以及MCP客户端和工具的管理。
- 将重构的 MCP 和现有智能体做适配,引入全局缓存和状态管理机制用于MCP服务器和工具。
- 数据库表更新,在MCPServer模型中为StdIO传输类型添加了command和args字段。
- 其他代码优化、增强样式以提升用户体验和可读性。
2026-01-14 20:16:51 +08:00
hfdy2019
51b7824819 feat: make lint & make format 2026-01-14 20:16:51 +08:00
hfdy2019
c360252e56 feat: 新增支持动态配置mcp功能 2026-01-14 20:16:51 +08:00
Wenjie Zhang
59b7193762 feat: 添加任务卡片状态指示器和进度信息,优化样式 2026-01-14 18:00:54 +08:00