Description
Currently, the application makes requests to the Ollama server without any timeout, retry logic, or structured error handling. This can cause the process to hang indefinitely if the server is unresponsive and lacks resilience against transient network anomalies.
This issue implements production-critical reliability improvements to the textToJSON generation loop by introducing:
- A configurable request timeout (default 30s)
- A retry mechanism with a backoff/limit (default 3 retries)
- Proper exception handling using
requests.exceptions.Timeout and RequestException
- Graceful error messaging to debug networking and resilience issues
Making this change ensures defensive programming patterns are established without altering the overall architecture.
Description
Currently, the application makes requests to the Ollama server without any timeout, retry logic, or structured error handling. This can cause the process to hang indefinitely if the server is unresponsive and lacks resilience against transient network anomalies.
This issue implements production-critical reliability improvements to the textToJSON generation loop by introducing:
requests.exceptions.TimeoutandRequestExceptionMaking this change ensures defensive programming patterns are established without altering the overall architecture.