feat: excel清理优化
This commit is contained in:
1 parent
87ac58c394
commit
ca5782b6cd
16 files changed
+132
-27
No files matched your search
@@ -160,6 +160,12 @@ PDF 证据锚定优先使用现有 `pypdfium2` 逐字文本坐标定位,并由
|
||||
|
||||
## 1. 架构目标
|
||||
|
||||
### 1.x Excel/CSV 清洗与 Dify 分段参数
|
||||
|
||||
- `table_linearize` 对 Excel/CSV 按完整数据行装箱,默认 `table_segment_max_chars=1000`;超限时移动整行到下一段,段间使用 `\n\n`。
|
||||
- Dify 同步区分普通文档 `KB_DIFY_SEGMENT_MAX_TOKENS`(默认 600)和 Excel/CSV `KB_DIFY_SEGMENT_MAX_TOKENS_EXCEL`(默认 1200)。
|
||||
- 两个上限均通过管理端 Dify 设置维护;Dify 仍可能对文本做二次分段,`04_chunks.jsonl` 仅为本地调试产物,不代表 Dify 最终 Segment。
|
||||
|
||||
### 1.x 培训资料级别与知识库边界
|
||||
|
||||
`training_config_resources.training_level` 通过独立 Alembic 迁移新增,非题目资源必须绑定 `company`、`department` 或 `team`。候选查询使用 `KbGroup.name = 员工培训`、分组启用、文档未软删除和版本 `is_current = true` 四项条件;员工端发布配置按 `safetyStage` 只消费当前级别资料。
|
||||
|
||||
Reference in new issue
Block a user