Find answers from the community

Updated 3 months ago

Hi Team LlamaIndex!

Hi Team LlamaIndex!

We are having increase load on our application, and notice that sometimes our database (weaviate) connections times out. We are using the simple chat engine streaming method. This then sometimes result in an error like this: ''''HTTPSConnectionPool(host='xxxxxxxxx.europe-west3.gcp.weaviate.cloud', port=443): Read timed out. (read timeout=60)''' is there any way into gracefully retrying a chat when this happens? Or any other recommended ways in handling this?
L
P
3 comments
try/except and retry? πŸ‘€
haha yea fair, the case seemed to be that connections in the pool were dying, and that weaviate client does nothing in the way of refreshing/checking the connections. It's a bit hard to troubleshoot but our two options were indeed try/except with a retry counter or instantiating the client as a transient instead of a singleton
thanks for your time πŸ™‚
Add a reply
Sign up and join the conversation on Discord