Geval redundancy
GEval Redundancy Metric.
This metric is used to evaluate the redundancy of the generated output using GEval.
GEvalRedundancyMetric(*args, threshold=0.5, **kwargs)
Bases: DeepEvalGEvalMetric
GEval Redundancy Metric.
This metric is used to evaluate the redundancy of the generated output.
Available Fields
- query (str): The query to evaluate the redundancy of the model's output.
- generated_response (str): The generated response to evaluate the redundancy of the model's output.
Scoring
- [0, 1] (Continuous): Normalized score range. Stored native 1-3 rubric value in rubric_score field. Lower score is better (higher_is_better=False).
Cookbook Example
Please refer to example_geval_redundancy.py in the gen-ai-sdk-cookbook repository.
Initializes GEvalRedundancyMetric.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args
|
Positional arguments passed to :class: |
()
|
|
threshold
|
float
|
The threshold to use for the metric. Defaults to 0.5. |
0.5
|
**kwargs
|
Keyword arguments passed to :class: |
{}
|