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

Fix two likely causes of infinitely running evaluations #1840

Merged
merged 10 commits into from
Jul 5, 2024

Conversation

jp-agenta
Copy link
Contributor

Description
Handles uncaught exceptions with try-except in def aggregate_ai_critique() and in evaluate().

Related Issues
Not linked yet.

Copy link

vercel bot commented Jul 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agenta ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 5, 2024 3:32pm

Copy link
Member

@mmabrouk mmabrouk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jp-agenta ! Great work.

I've added a couple of minor comments here and there.

Standardizes stacktrace to traceback.format_exc() (in all three files)  and message to str(exc) (in aggregation_service.py)
@jp-agenta jp-agenta marked this pull request as ready for review July 5, 2024 12:39
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Backend bug Something isn't working Frontend labels Jul 5, 2024
@jp-agenta
Copy link
Contributor Author

QA tests

  • Making the AI Critique fail
  • Mocking an exception in evaluation.py directly.

Copy link
Member

@mmabrouk mmabrouk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jp-agenta and @bekossy
From my side, lgtm, there are the minor comments from @jp-agenta that I agree with (added a comment there). As soon as we have this you go ahead and merge @jp-agenta

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 5, 2024
Copy link
Member

@mmabrouk mmabrouk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks guys, great work!

@mmabrouk mmabrouk merged commit 32f3a99 into main Jul 5, 2024
12 checks passed
@mmabrouk mmabrouk deleted the fix/infinitely-running-evaluations branch July 5, 2024 15:45
@mmabrouk
Copy link
Member

mmabrouk commented Jul 5, 2024

@all-contributors please add @jp-agenta for code and bugs

Copy link
Contributor

@mmabrouk

I've put up a pull request to add @jp-agenta! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend bug Something isn't working Frontend lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants