docs: add custom non-LLM feedback functions cookbook notebook#2458
Open
nuthalapativarun wants to merge 1 commit into
Open
docs: add custom non-LLM feedback functions cookbook notebook#2458nuthalapativarun wants to merge 1 commit into
nuthalapativarun wants to merge 1 commit into
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
| @@ -0,0 +1,496 @@ | |||
| { | |||
Contributor
| @@ -0,0 +1,496 @@ | |||
| { | |||
Contributor
There was a problem hiding this comment.
Line #11. def no_pii(response: str) -> float:
use out of the box pii detection here instead via huggingface provider:
Reply via ReviewNB
| @@ -0,0 +1,496 @@ | |||
| { | |||
Contributor
There was a problem hiding this comment.
Line #4. Feedback(json_schema_check, name="JSON Schema Check")
use Metric api & selectors instead of .on()
you can read more here about the change: https://www.trulens.org/blog/2026/04/14/trulens-27-unified-metric-api-mlflow-integration-and-more/#unified-metric-api
Reply via ReviewNB
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.
Description
Creates
examples/cookbooks/custom_programmatic_feedback.ipynb— a cookbook showing how to write non-LLM feedback functions. Closes #2416.The existing custom feedback function docs only showed LLM-based custom functions. Many users want deterministic, zero-cost programmatic checks.
The notebook demonstrates 4 non-LLM feedback functions:
Each function includes:
FeedbackviaSelect.RecordOutputThe notebook ends with a full run against 4 test queries, leaderboard view, and dashboard launch.
Type of change