weaviate-python-client
weaviate-python-client copied to clipboard
Feature Request: Retry
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
- Execute a search query in Weaviate.
- 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
- Add a retry mechanism to Weaviate's search functions.
- Allow configuration of the number of retry attempts and the delay between retries.
- Include logging for retry attempts and failures to help with debugging.