Extends base fern client with eval utilities#18
Merged
Conversation
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR extends the auto-generated Humanloop client with additional utilities for running an Evaluation where the user manages their full application runtime.
Related fern docs for extending client with custom code: Augment with custom code — Fern
Specifically we add a method humanloop.evaluations.run_local(...) that takes details of a file destination on Humanloop, a user defined dataset, a user defined function to evaluator, a name for their Evaluation and details of their Evaluators.
This is invoked like so:
With resulting output:


The resulting CLI output is
If the
fileordatasetdoes not yet exist on Humanloop, they will be created automatically, otherwise they will be updated appropriately.If the Evaluation exists for the file (based on the
nameprovided) then a new run is added, otherwise a new Evaluation is automatically created.Evaluators referenced by path (or id) must already exist. However, we've also provisionally added an affordance for local (or external) Evaluators: