浏览代码

Fix field missing issue. (#3931)

### What problem does this PR solve?

#3905
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.15.0
Kevin Hu 10 个月前
父节点
当前提交
215e9361ea
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      rag/svr/task_executor.py

+ 1
- 1
rag/svr/task_executor.py 查看文件

@@ -273,7 +273,7 @@ def embedding(docs, mdl, parser_config=None, callback=None):
batch_size = 16
tts, cnts = [], []
for d in docs:
tts.append(rmSpace(d["title_tks"]))
tts.append(rmSpace(d.get("docnm_kwd", "Title")))
c = "\n".join(d.get("question_kwd", []))
if not c:
c = d["content_with_weight"]

正在加载...
取消
保存