朱潮
653ee4af13
add logs
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-12-19 11:15:50 +08:00
朱潮
18068f76ff
音视频支持分段
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-12-19 00:14:30 +08:00
朱潮
cefac6399d
音视频支持分段
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-12-19 00:03:46 +08:00
朱潮
e509a078a4
音视频支持分段
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-12-18 23:57:04 +08:00
朱潮
77de4f6315
音视频支持分段
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-12-18 23:49:25 +08:00
朱潮
5ea9262eab
音视频支持分段
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-12-18 23:42:12 +08:00
朱潮
8a183dd5cf
音视频支持分段
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-12-18 23:34:28 +08:00
朱潮
8b85ad33f0
音视频支持分段
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-12-18 23:12:18 +08:00
朱潮
3b143448a6
transaction.on_commit 是 Django 提供的机制,它注册的回调函数只会在当前事务成功提交到数据库后执行。这样确保了:
...
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
- 事务成功时:文档已保存在数据库中,异步任务可以正常查询
- 事务失败时:回调不会执行,避免了处理不存在的数据
2025-12-18 22:02:49 +08:00
朱潮
356856def4
修复报错
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled
2025-11-10 00:00:05 +08:00
朱潮
5f9f2a9325
modify file status
2025-08-31 11:16:33 +08:00
朱潮
5da36659c2
修复音视频处理的关键问题
...
1. 修复Paragraph模型构造错误:
- 将meta参数改为status_meta
- 添加必需的knowledge_id参数
2. 修复使用demo数据的问题:
- 移除所有demo数据生成代码
- 改为调用实际的音频处理逻辑
- 通过MediaSplitHandle进行实际处理
3. 增强MediaSplitHandle功能:
- 支持实际处理和默认文本两种模式
- 根据use_actual_processing参数选择处理方式
- 保持向后兼容性
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 01:44:54 +08:00
朱潮
c4eaeb6499
修复Celery递归调用错误
...
- 移除Django应用配置中的手动任务注册
- 使用Celery的imports配置确保任务模块被导入
- 避免在ready()方法中访问Celery应用
- 使用Celery的自动发现机制处理任务注册
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 01:33:18 +08:00
朱潮
dea3454011
修复Django应用启动时的导入错误
...
- 在knowledge/apps.py的ready()方法中注册Celery任务
- 移除ops/__init__.py中的直接导入,避免循环依赖
- 简化tasks/__init__.py,使用延迟导入
- 解决"Apps aren't loaded yet"错误
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 01:25:16 +08:00
朱潮
638bf0dd1b
修复Celery任务注册问题
...
- 在tasks/__init__.py中导入media_learning任务
- 在ops/__init__.py中注册media_learning任务到Celery应用
- 修复KeyError: 'media_learning_by_document'错误
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 01:09:19 +08:00
朱潮
459b0c8307
参考高级学习处理流程修改音视频文档处理
...
- 修改批量插入段落逻辑,跳过音视频文档的段落插入
- 音视频文档段落由异步任务处理,不在此处插入
- 保持与高级学习文档相同的处理模式
- 添加详细的日志记录用于调试
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 01:01:51 +08:00
朱潮
b05f42259e
Fix File model import in media_learning.py
...
- Fixed import error by changing from 'oss.models' to 'knowledge.models'
- File model is correctly imported from knowledge.models module
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 00:55:34 +08:00
朱潮
dd0360fb6f
modify file status
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled
2025-08-29 09:29:02 +08:00
朱潮
9d65e181eb
add log
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-08-27 01:41:47 +08:00
朱潮
788491db61
add log
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-08-27 01:23:26 +08:00
朱潮
4930ef71f7
midyf model_id
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-08-27 00:38:41 +08:00
朱潮
541369d343
midyf model_id
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-08-26 18:43:44 +08:00
朱潮
575b04c10f
midyf model_id
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-08-26 16:35:29 +08:00
朱潮
71fe9c5e9a
modify status
2025-08-25 01:49:28 +08:00
朱潮
f1494fedea
modify status parsing
2025-08-25 01:20:33 +08:00
朱潮
35f9a4dbfe
add mineru
2025-08-24 00:56:02 +08:00
CaptainB
4847eba4bf
fix: add check for existing problem-paragraph mapping before processing
...
--bug=1060558 --user=刘瑞斌 【github#3868】知识库分段,重复添加同一个问题,问题会重复多次关联分段 https://www.tapd.cn/62980211/s/1756889
2025-08-18 17:08:22 +08:00
CaptainB
f1356e9b61
feat: add MCP tool support with new form and dropdown options
2025-08-12 10:41:42 +08:00
CaptainB
f668daa902
fix: refactor delete method in DocumentSerializers for improved clarity
...
--bug=1060005 --user=刘瑞斌 【资源管理】知识库-删除文档报错 https://www.tapd.cn/62980211/s/1749123
2025-08-05 15:08:12 +08:00
CaptainB
d635cc24b4
fix: add validation checks in page and list methods of KnowledgeFolder
2025-08-04 11:10:30 +08:00
CaptainB
39ac62745e
feat: enhance SystemKnowledgeSerializer and related components to support workspace and folder IDs
...
--bug=1059926 --user=刘瑞斌 【资源管理】知识库文档迁移时,可选择的目标知识库展示了系统所有的知识库 https://www.tapd.cn/62980211/s/1747947
2025-08-04 11:08:44 +08:00
zhangzhanwei
6660552618
fix: Problem related
2025-08-01 17:31:45 +08:00
CaptainB
4e6d19235b
fix: remove unnecessary validation checks for query sets in paragraph handling
2025-07-31 15:41:28 +08:00
CaptainB
7fc0bd2396
fix: simplify validation checks in document and paragraph retrieval methods
2025-07-31 15:37:38 +08:00
CaptainB
a3a124d581
feat: update permission checks to remove row.id dependency and add workspace_id to knowledge retrieval
2025-07-30 09:56:33 +08:00
CaptainB
4d18b78d29
fix: update SQL queries to improve similarity calculations and indexing
2025-07-24 16:18:53 +08:00
CaptainB
6ce1eb7116
feat: add create and drop knowledge index functions for improved database management
2025-07-23 21:42:33 +08:00
CaptainB
2ec98d9c3b
fix: update request data handling to use request.data instead of request.query_params
2025-07-21 12:25:17 +08:00
CaptainB
7eeb42c9fd
refactor: replace Status with State for consistent status handling
2025-07-17 16:59:12 +08:00
CaptainB
b85ba190db
feat: add compression for file storage and retrieval in knowledge.py
2025-07-16 20:54:55 +08:00
zhangzhanwei
1ea86202b8
fix: Application debug
2025-07-16 19:10:20 +08:00
wxg0103
e5397af848
feat: enhance file handling in serializers and models for improved upload functionality
2025-07-16 11:37:12 +08:00
zhangzhanwei
b044554559
fix: Knowledge document paragraph permission
2025-07-16 10:27:38 +08:00
zhangzhanwei
922ecb983c
fix: Knowledge document problem related permission
2025-07-15 17:28:01 +08:00
CaptainB
949c6d5ce1
fix: remove unnecessary db_index from content field in models
2025-07-15 16:59:00 +08:00
CaptainB
b352e495a1
fix: update knowledge_id reference in problem mapping queries
...
--bug=1058790 --user=刘瑞斌 【知识库】导出知识库没导出关联问题 https://www.tapd.cn/62980211/s/1731826
2025-07-15 15:20:39 +08:00
CaptainB
dc960d1628
fix: correct select_one parameter default value in edit method of KnowledgeSerializer
...
--bug=1058784 --user=刘瑞斌 【知识库】编辑知识库,保存失败 https://www.tapd.cn/62980211/s/1731590
2025-07-15 14:01:39 +08:00
CaptainB
05409b8f90
fix: update error message for non-existent files in document handling
2025-07-15 12:20:32 +08:00
CaptainB
7ee7a51200
feat: enhance edit method to support select_one parameter in KnowledgeSerializer
...
--bug=1058726 --user=刘瑞斌 【共享知识库】编辑非本人创建的共享知识库报错 https://www.tapd.cn/62980211/s/1731246
2025-07-15 10:56:59 +08:00
CaptainB
ea56fd6212
feat: add db_index to various fields for improved query performance
2025-07-14 11:54:19 +08:00