refine the message of queuing a task (#3437)

### What problem does this PR solve?



### Type of change

- [x] Refactoring
This commit is contained in:
Kevin Hu 2024-11-15 15:59:54 +08:00 committed by GitHub
parent ca9e97d2f2
commit cb3b9d7ada
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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()
})

View File

@ -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