Commit
·
c57f28e
1
Parent(s):
376c8b6
Refactor message output format (#772)
Browse files### What problem does this PR solve?
_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._
### Type of change
- [x] Refactoring
Signed-off-by: Jin Hai <[email protected]>
rag/svr/task_executor.py
CHANGED
@@ -281,7 +281,7 @@ def main():
|
|
281 |
tk_count = 0
|
282 |
cron_logger.info("Embedding elapsed({}): {}".format(r["name"], timer()-st))
|
283 |
|
284 |
-
callback(msg="Finished embedding({})! Start to build index!".format(timer()-st))
|
285 |
init_kb(r)
|
286 |
chunk_count = len(set([c["_id"] for c in cks]))
|
287 |
st = timer()
|
|
|
281 |
tk_count = 0
|
282 |
cron_logger.info("Embedding elapsed({}): {}".format(r["name"], timer()-st))
|
283 |
|
284 |
+
callback(msg="Finished embedding({:.2f})! Start to build index!".format(timer()-st))
|
285 |
init_kb(r)
|
286 |
chunk_count = len(set([c["_id"] for c in cks]))
|
287 |
st = timer()
|
web/src/pages/add-knowledge/components/knowledge-file/parsing-status-cell/index.tsx
CHANGED
@@ -55,7 +55,7 @@ const PopoverContent = ({ record }: IProps) => {
|
|
55 |
{
|
56 |
key: 'process_duation',
|
57 |
label: t('processDuration'),
|
58 |
-
children: `${record.process_duation} s`,
|
59 |
},
|
60 |
{
|
61 |
key: 'progress_msg',
|
|
|
55 |
{
|
56 |
key: 'process_duation',
|
57 |
label: t('processDuration'),
|
58 |
+
children: `${record.process_duation.toFixed(2)} s`,
|
59 |
},
|
60 |
{
|
61 |
key: 'progress_msg',
|