Skip to content

Commit

Permalink
refine the message of queuing a task (infiniflow#3437)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?



### Type of change

- [x] Refactoring
  • Loading branch information
KevinHuSh authored Nov 15, 2024
1 parent ca9e97d commit cb3b9d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/db/services/document_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def get_doc_count(cls, tenant_id):
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()
})

Expand Down
2 changes: 1 addition & 1 deletion rag/nlp/rag_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def score_(self, tfts):
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
Expand Down

0 comments on commit cb3b9d7

Please sign in to comment.