浏览代码

refine the message of queuing a task (#3437)

### What problem does this PR solve?



### Type of change

- [x] Refactoring
tags/v0.14.0
Kevin Hu 11 个月前
父节点
当前提交
cb3b9d7ada
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      api/db/services/document_service.py
  2. 1
    1
      rag/nlp/rag_tokenizer.py

+ 1
- 1
api/db/services/document_service.py 查看文件

@@ -334,7 +334,7 @@ class DocumentService(CommonService):
def begin2parse(cls, docid):
cls.update_by_id(
docid, {"progress": random.random() * 1 / 100.,
"progress_msg": "Task dispatched...",
"progress_msg": "Task is queued...",
"process_begin_at": get_format_time()
})


+ 1
- 1
rag/nlp/rag_tokenizer.py 查看文件

@@ -171,7 +171,7 @@ class RagTokenizer:
F += freq
L += 0 if len(tk) < 2 else 1
tks.append(tk)
F /= len(tks)
#F /= len(tks)
L /= len(tks)
logging.debug("[SC] {} {} {} {} {}".format(tks, len(tks), L, F, B / len(tks) + L + F))
return tks, B / len(tks) + L + F

正在加载...
取消
保存