-
Notifications
You must be signed in to change notification settings - Fork 5
feat: human evaluator options #98
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
Conversation
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.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method 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.
Caution
Changes requested β
Reviewed everything up to f109744 in 1 minute and 55 seconds. Click for details.
- Reviewed
72lines of code in2files - Skipped
0files when reviewing. - Skipped posting
3draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with π or π to teach Ellipsis.
1. src/evaluations.ts:149
- Draft comment:
Consider defining a dedicated type alias for human evaluator options (e.g. HumanEvaluatorOption) to improve clarity and maintainability. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The type is relatively simple and only used twice in adjacent lines within the same class. It's not used elsewhere in the file. While a type alias could make it slightly more maintainable if the type structure changes, the benefit seems minimal given the limited usage. The current inline type is clear and readable. The comment does identify a valid opportunity for DRY (Don't Repeat Yourself) code. If this type is used elsewhere or becomes more complex, a type alias would be valuable. However, for this specific case, the type is simple and localized. Creating a type alias would add complexity (another named type to track) without providing significant maintainability benefits. The comment should be deleted as the suggested change would add unnecessary complexity for minimal benefit given the current simple and localized usage of the type.
2. src/evaluations.ts:490
- Draft comment:
Maintain consistent string quoting style. Here double quotes are used whereas elsewhere single quotes appear. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
3. src/opentelemetry-lib/tracing/attributes.ts:14
- Draft comment:
Add inline documentation for the HUMAN_EVALUATOR_OPTIONS attribute to clarify its intended use in tracing. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
Workflow ID: wflow_Kd7tjXVmVUL4Z09W
You can customize by changing your verbosity settings, reacting with π or π, replying to comments, or adding code review rules.
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.
Important
Looks good to me! π
Reviewed a765273 in 36 seconds. Click for details.
- Reviewed
25lines of code in1files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with π or π to teach Ellipsis.
1. src/evaluations.ts:150
- Draft comment:
Consistent use of semicolon added to the 'options' property declaration for style clarity. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
2. src/evaluations.ts:469
- Draft comment:
Multiline formatting for 'activeSpan.setAttribute' improves readability. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
Workflow ID: wflow_Wz6ONI5ICkRPaFj5
You can customize by changing your verbosity settings, reacting with π or π, replying to comments, or adding code review rules.
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.
Important
Looks good to me! π
Reviewed bc0b788 in 34 seconds. Click for details.
- Reviewed
13lines of code in1files - Skipped
0files when reviewing. - Skipped posting
1draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with π or π to teach Ellipsis.
1. src/evaluations.ts:470
- Draft comment:
Trailing comma added in setAttribute call. Review consistency with project style; this is a no-op change if your target env supports trailing commas. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
Workflow ID: wflow_XJEpah9rP7NgfbWA
You can customize by changing your verbosity settings, reacting with π or π, replying to comments, or adding code review rules.
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.
If you don't mind adding a quick unit test?
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.
Important
Looks good to me! π
Reviewed 5625276 in 58 seconds. Click for details.
- Reviewed
26lines of code in1files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with π or π to teach Ellipsis.
1. test/evaluate.test.ts:137
- Draft comment:
Ensure that the 'human_relevance' evaluator is instantiated with the correct options; the provided array [{ value: 1, label: 'label' }] should match the expected API schema. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
2. test/evaluate.test.ts:181
- Draft comment:
The new assertions properly verify that evaluator options are serialized in the span attributes. Consider if an explicit type or schema check might be clearer than using !! and JSON.parse for future maintainability. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
Workflow ID: wflow_QTh5aHBvMSKJFeS5
You can customize by changing your verbosity settings, reacting with π or π, replying to comments, or adding code review rules.
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.
Important
Looks good to me! π
Reviewed 0aae620 in 44 seconds. Click for details.
- Reviewed
21lines of code in1files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with π or π to teach Ellipsis.
1. test/evaluate.test.ts:185
- Draft comment:
Multi-line arrow function formatting added for readability. Ensure this style is consistent throughout the codebase. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
2. test/evaluate.test.ts:189
- Draft comment:
Added missing semicolons for consistent code style. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
Workflow ID: wflow_tbXYMawcuboUpsOh
You can customize by changing your verbosity settings, reacting with π or π, replying to comments, or adding code review rules.
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.
Important
Looks good to me! π
Reviewed 97e38fe in 44 seconds. Click for details.
- Reviewed
19lines of code in1files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with π or π to teach Ellipsis.
1. test/evaluate.test.ts:185
- Draft comment:
Trailing comma added in the arrow function; ensure this style aligns with your project's linting rules. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
2. test/evaluate.test.ts:189
- Draft comment:
Reformatted the assignment for 'options' to improve readability; functionality remains unchanged. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
Workflow ID: wflow_Dx103NizIpwZqayR
You can customize by changing your verbosity settings, reacting with π or π, replying to comments, or adding code review rules.
Important
Add support for human evaluator options in evaluations, updating
HumanEvaluatorand tracing attributes, with tests verifying the new functionality.HumanEvaluatorclass inevaluations.tsnow acceptsoptionsparameter in constructor.Evaluationclass, ifHumanEvaluatorhas options, they are set asHUMAN_EVALUATOR_OPTIONSattribute in active span.HUMAN_EVALUATOR_OPTIONStoattributes.tsfor tracing human evaluator options.evaluate.test.tsto test human evaluator options, ensuring spans includeHUMAN_EVALUATOR_OPTIONSwhen options are provided.This description was created by
for 97e38fe. You can customize this summary. It will automatically update as commits are pushed.