Browse Source

Refactor message output format (#772)

### 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 <haijin.chn@gmail.com>
tags/v0.6.0
Jin Hai 1 year ago
parent
commit
77b1520b66
No account linked to committer's email address

+ 1
- 1
rag/svr/task_executor.py View File

tk_count = 0 tk_count = 0
cron_logger.info("Embedding elapsed({}): {}".format(r["name"], timer()-st)) cron_logger.info("Embedding elapsed({}): {}".format(r["name"], timer()-st))


callback(msg="Finished embedding({})! Start to build index!".format(timer()-st))
callback(msg="Finished embedding({:.2f})! Start to build index!".format(timer()-st))
init_kb(r) init_kb(r)
chunk_count = len(set([c["_id"] for c in cks])) chunk_count = len(set([c["_id"] for c in cks]))
st = timer() st = timer()

+ 1
- 1
web/src/pages/add-knowledge/components/knowledge-file/parsing-status-cell/index.tsx View File

{ {
key: 'process_duation', key: 'process_duation',
label: t('processDuration'), label: t('processDuration'),
children: `${record.process_duation} s`,
children: `${record.process_duation.toFixed(2)} s`,
}, },
{ {
key: 'progress_msg', key: 'progress_msg',

Loading…
Cancel
Save