-
Notifications
You must be signed in to change notification settings - Fork 9
feat!: Add AI online evaluations (Judge, Evaluator, IRunner) #301
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
Open
mattrmc1
wants to merge
14
commits into
main
Choose a base branch
from
mmccarthy/AIC-2660/aievals-core-judge
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a625933
[AIC-2660] Implement AIEVALS (first pass)
mattrmc1 db62ad3
Merge branch 'main' of github.com:launchdarkly/dotnet-core into mmcca…
mattrmc1 a680fb4
fix: AIEVALS spec compliance — JudgeResult defaults, null safety, sam…
mattrmc1 f920e9d
fix: set errorMessage on out-of-range score for JS/Python parity
mattrmc1 aa959ce
Merge branch 'main' into mmccarthy/AIC-2660/aievals-core-judge
mattrmc1 b814097
Merge branch 'main' into mmccarthy/AIC-2660/aievals-core-judge
mattrmc1 66e2c31
fix: robust judge score parsing, fallback evaluator wiring, filtered …
mattrmc1 f5f064e
fix: forward caller variables to embedded judge message interpolation
mattrmc1 3bea03d
Merge branch 'main' into mmccarthy/AIC-2660/aievals-core-judge
mattrmc1 b3bad64
fix: NaN/Infinity score rejection, nullable judge samplingRate, graph…
mattrmc1 c06c4b9
Merge branch 'main' of github.com:launchdarkly/dotnet-core into mmcca…
mattrmc1 6f7d88d
Merge branch 'mmccarthy/AIC-2660/aievals-core-judge' of github.com:la…
mattrmc1 fae8b52
Merge branch 'main' into mmccarthy/AIC-2660/aievals-core-judge
mattrmc1 2562911
fix: use shared Random instance in Evaluator to prevent correlated ju…
mattrmc1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Judge sampling ignores interpolate flag
Medium Severity
BuildEvaluatoralways callsBuildJudgeConfigwith the defaultinterpolate: true, even when the parent config was built withinterpolate: false(template APIs). Nested judge configs then run Mustache interpolation (includingldctx) while completion/agent instructions and messages stay as raw templates, so template configs andrunnerFactoryoutput can disagree with the documented template behavior.Additional Locations (2)
pkgs/sdk/server-ai/src/Config/ConfigFactory.cs#L267-L308pkgs/sdk/server-ai/src/LdAiClient.cs#L156-L165Reviewed by Cursor Bugbot for commit 6f7d88d. Configure here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a bug. Attached judges are operational -- they execute against a model provider via IRunner.RunAsync and require interpolated prompts to function. A judge receiving raw {{variable}} tokens would produce nonsense. When fetching a judge directly with
interpolation: false, the raw {{variable}} tokens will return correctlyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Messages when fetching toxicity judge as template:
[ { "content": "You are a business information accuracy and safety expert. Evaluate....", "role": "system" }, { "content": "MESSAGE HISTORY:\n{{message_history}}\n", "role": "assistant" }, { "content": "RESPONSE TO EVALUATE:\n{{response_to_evaluate}}\n", "role": "user" } ]