weaviate-python-client icon indicating copy to clipboard operation
weaviate-python-client copied to clipboard

Feature Request: Retry

Open gokturkDev opened this issue 1 year ago • 0 comments

Issue: Implement Retry Strategy for Weaviate Search Functions

Description

We've noticed that Weaviate sometimes fails due to connection issues with OpenAI or because of stale connections. This has been causing reliability problems for our application.

To address this, we implemented a retry strategy in our production environment, which has resolved these issues. However, doing this manually is not ideal. It would be great if Weaviate could support retries natively within its search functions.

Steps to Reproduce

  1. Execute a search query in Weaviate.
  2. Occasionally, the query fails due to OpenAI connection issues or stale connections.

Expected Behavior

Weaviate should automatically retry the search query a few times before giving up

Proposed Solution

  1. Add a retry mechanism to Weaviate's search functions.
  2. Allow configuration of the number of retry attempts and the delay between retries.
  3. Include logging for retry attempts and failures to help with debugging.

gokturkDev avatar Jun 07 '24 00:06 gokturkDev