mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-04 11:24:00 +08:00
Update error message (#4417)
### What problem does this PR solve? 1. Update error message 2. Remove space characters ### Type of change - [x] Refactoring --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
parent
af43cb04e8
commit
d64df4de9c
@ -58,11 +58,11 @@ You start an AI conversation by creating an assistant.
|
|||||||
:::tip NOTE
|
:::tip NOTE
|
||||||
|
|
||||||
Click the light bubble icon above the answer to view the expanded system prompt:
|
Click the light bubble icon above the answer to view the expanded system prompt:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Scroll down the expanded prompt to view the time consumed for each task:
|
Scroll down the expanded prompt to view the time consumed for each task:
|
||||||
|
|
||||||

|

|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ class ESConnection(DocStoreConnection):
|
|||||||
logger.warning(f"{str(e)}. Waiting Elasticsearch {settings.ES['hosts']} to be healthy.")
|
logger.warning(f"{str(e)}. Waiting Elasticsearch {settings.ES['hosts']} to be healthy.")
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
if not self.es.ping():
|
if not self.es.ping():
|
||||||
msg = f"Elasticsearch {settings.ES['hosts']} didn't become healthy in 120s."
|
msg = f"Elasticsearch {settings.ES['hosts']} is unhealthy in 120s."
|
||||||
logger.error(msg)
|
logger.error(msg)
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
v = self.info.get("version", {"number": "8.11.3"})
|
v = self.info.get("version", {"number": "8.11.3"})
|
||||||
|
@ -94,7 +94,7 @@ class InfinityConnection(DocStoreConnection):
|
|||||||
logger.warning(f"{str(e)}. Waiting Infinity {infinity_uri} to be healthy.")
|
logger.warning(f"{str(e)}. Waiting Infinity {infinity_uri} to be healthy.")
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
if self.connPool is None:
|
if self.connPool is None:
|
||||||
msg = f"Infinity {infinity_uri} didn't become healthy in 120s."
|
msg = f"Infinity {infinity_uri} is unhealthy in 120s."
|
||||||
logger.error(msg)
|
logger.error(msg)
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
logger.info(f"Infinity {infinity_uri} is healthy.")
|
logger.info(f"Infinity {infinity_uri} is healthy.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user