Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retries to evaluator client #306

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Add retries to evaluator client #306

merged 1 commit into from
Oct 16, 2024

Conversation

jlewi
Copy link
Owner

@jlewi jlewi commented Oct 16, 2024

  • During evaluation we are seeing ocassional timeouts on the server due to the HTTP read/write timeout occuring. It looks like this might happen because ChatGPT takes a really long time to respond occassionally.

  • Update StreamGenerate and GenerateCells to return DeadlineExceeded to indicate a server timeout

  • Implement a unaryinterceptor to automatically retry requests based on the status code.

  • The retry is pretty simplistic; its a fixed backoff.

  • Fix a bug in Agent.go where we aren't correctly logging one of the level1 assertions.

* During evaluation we are seeing ocassional timeouts on the server due to
  the HTTP read/write timeout occuring. It looks like this might happen
  because ChatGPT takes a really long time to respond occassionally.

* Update StreamGenerate and GenerateCells to return DeadlineExceeded to
  indicate a server timeout

* Implement a unaryinterceptor to automatically retry requests
  based on the status code.

* The retry is pretty simplistic; its a fixed backoff.
Copy link

netlify bot commented Oct 16, 2024

Deploy Preview for foyle canceled.

Name Link
🔨 Latest commit 8aabb0e
🔍 Latest deploy log https://app.netlify.com/sites/foyle/deploys/67102a785f4a1f00088307cc

@jlewi jlewi enabled auto-merge (squash) October 16, 2024 21:06
@jlewi jlewi merged commit 1988d6c into main Oct 16, 2024
5 checks passed
@jlewi jlewi deleted the jlewi/retries branch October 16, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant