Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix a string format error (#781)

KevinHuSh4d47b2b459b5
diff --git a/rag/svr/task_executor.py b/rag/svr/task_executor.py
index 62e8f905e2..700a30aae6 100644
--- a/rag/svr/task_executor.py
+++ b/rag/svr/task_executor.py
@@ -279,7 +279,7 @@ def main():
callback(-1, "Embedding error:{}".format(str(e)))
cron_logger.error(str(e))
tk_count = 0
- cron_logger.info("Embedding elapsed({:.2f}): {}".format(r["name"], timer()-st))
+ cron_logger.info("Embedding elapsed({}): {:.2f}".format(r["name"], timer()-st))
callback(msg="Finished embedding({:.2f})! Start to build index!".format(timer()-st))
init_kb(r)