Context manager to automatically run span evaluators #4882
omrihar
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks @omrihar! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have seen the examples of how to run span evaluations in a cron job, or alternatively from a notebook and these seem to be a bit less robust (e.g. if a job fails to run in a cron-job, the time-dependent logic might break). That's why I thought of creating a context manager that runs the evaluations in a thread. I'm sharing it here to get feedback and in case anyone finds it useful :)
All you need to do to use it in your code is:
Any comments or suggestions would be very welcome!
Beta Was this translation helpful? Give feedback.
All reactions