Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Criteria ¶
type Criteria struct {
// contains filtered or unexported fields
}
Criteria evaluates the relevancy of LLM responses.
type Evaluation ¶
type Evaluation struct {
Pass bool `json:"pass" jsonschema:"Indicates whether the response satisfies the evaluation criteria."`
Score float64 `json:"score" jsonschema:"LLM-judged similarity to the expected response; score in [0,1], higher is better."`
Feedback *Feedback `json:"feedback" jsonschema:"Structured feedback on the evaluation results."`
}
Evaluation represents the result of evaluating an LLM response.
type Feedback ¶
type Feedback struct {
Summary string `json:"summary" jsonschema:"Short summary of evaluation results."`
Details string `json:"details" jsonschema:"Detailed explanation of strengths, weaknesses, and reasoning."`
Suggestions []string `json:"suggestions" jsonschema:"List of recommended improvements or fixes."`
}
Feedback provides structured feedback on the evaluation results.
Click to show internal directories.
Click to hide internal directories.