Commit
·
594c8a6
1
Parent(s):
4b36338
Update error message (#4417)
Browse files### What problem does this PR solve?
1. Update error message
2. Remove space characters
### Type of change
- [x] Refactoring
---------
Signed-off-by: Jin Hai <[email protected]>
- docs/guides/start_chat.md +3 -3
- rag/utils/es_conn.py +1 -1
- rag/utils/infinity_conn.py +1 -1
docs/guides/start_chat.md
CHANGED
@@ -58,11 +58,11 @@ You start an AI conversation by creating an assistant.
|
|
58 |
:::tip NOTE
|
59 |
|
60 |
Click the light bubble icon above the answer to view the expanded system prompt:
|
61 |
-
|
62 |

|
63 |
-
|
64 |
Scroll down the expanded prompt to view the time consumed for each task:
|
65 |
-
|
66 |

|
67 |
:::
|
68 |
|
|
|
58 |
:::tip NOTE
|
59 |
|
60 |
Click the light bubble icon above the answer to view the expanded system prompt:
|
61 |
+
|
62 |

|
63 |
+
|
64 |
Scroll down the expanded prompt to view the time consumed for each task:
|
65 |
+
|
66 |

|
67 |
:::
|
68 |
|
rag/utils/es_conn.py
CHANGED
@@ -41,7 +41,7 @@ class ESConnection(DocStoreConnection):
|
|
41 |
logger.warning(f"{str(e)}. Waiting Elasticsearch {settings.ES['hosts']} to be healthy.")
|
42 |
time.sleep(5)
|
43 |
if not self.es.ping():
|
44 |
-
msg = f"Elasticsearch {settings.ES['hosts']}
|
45 |
logger.error(msg)
|
46 |
raise Exception(msg)
|
47 |
v = self.info.get("version", {"number": "8.11.3"})
|
|
|
41 |
logger.warning(f"{str(e)}. Waiting Elasticsearch {settings.ES['hosts']} to be healthy.")
|
42 |
time.sleep(5)
|
43 |
if not self.es.ping():
|
44 |
+
msg = f"Elasticsearch {settings.ES['hosts']} is unhealthy in 120s."
|
45 |
logger.error(msg)
|
46 |
raise Exception(msg)
|
47 |
v = self.info.get("version", {"number": "8.11.3"})
|
rag/utils/infinity_conn.py
CHANGED
@@ -94,7 +94,7 @@ class InfinityConnection(DocStoreConnection):
|
|
94 |
logger.warning(f"{str(e)}. Waiting Infinity {infinity_uri} to be healthy.")
|
95 |
time.sleep(5)
|
96 |
if self.connPool is None:
|
97 |
-
msg = f"Infinity {infinity_uri}
|
98 |
logger.error(msg)
|
99 |
raise Exception(msg)
|
100 |
logger.info(f"Infinity {infinity_uri} is healthy.")
|
|
|
94 |
logger.warning(f"{str(e)}. Waiting Infinity {infinity_uri} to be healthy.")
|
95 |
time.sleep(5)
|
96 |
if self.connPool is None:
|
97 |
+
msg = f"Infinity {infinity_uri} is unhealthy in 120s."
|
98 |
logger.error(msg)
|
99 |
raise Exception(msg)
|
100 |
logger.info(f"Infinity {infinity_uri} is healthy.")
|