소스 검색

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>
tags/v0.16.0
Jin Hai 10 달 전
부모
커밋
d64df4de9c
No account linked to committer's email address
3개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 3
    3
      docs/guides/start_chat.md
  2. 1
    1
      rag/utils/es_conn.py
  3. 1
    1
      rag/utils/infinity_conn.py

+ 3
- 3
docs/guides/start_chat.md 파일 보기

:::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:
![](https://github.com/user-attachments/assets/515ab187-94e8-412a-82f2-aba52cd79e09) ![](https://github.com/user-attachments/assets/515ab187-94e8-412a-82f2-aba52cd79e09)
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:
![enlighten](https://github.com/user-attachments/assets/fedfa2ee-21a7-451b-be66-20125619923c) ![enlighten](https://github.com/user-attachments/assets/fedfa2ee-21a7-451b-be66-20125619923c)
::: :::



+ 1
- 1
rag/utils/es_conn.py 파일 보기

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"})

+ 1
- 1
rag/utils/infinity_conn.py 파일 보기

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…
취소
저장