Asthenia0412
Asthenia0412
## Problem The three deterministic string scorers guard against an empty prediction, but only against the *exact empty string*: ```python # deepeval/scorer/scorer.py if not prediction: return 0 ``` A whitespace-only...
perm
perm
## Motivation `compare()` resolves each round with `ArenaGEval` and then reports **raw win counts** (`{contestant: wins}`). Raw counts can't answer the question that actually drives a shipping decision: **"Is this...
## Problem The deterministic (non-LLM) metrics are brittle for real-world LLM outputs in a few ways that surface as confusing false failures / silent passes: 1. **ExactMatchMetric** compares with raw...
## Problem `JsonCorrectnessMetric` feeds `test_case.actual_output` straight into `expected_schema.model_validate_json(...)`. LLM eval outputs are very commonly wrapped in a markdown code-fence block (````` ```json { ... } ``` `````). In that case...
### Problem `ContextualRecallMetric` measures how well a model's `expected_output` can be attributed to the provided `retrieval_context`. When either input is degenerate, the metric still round-trips through the evaluation LLM: -...
### Problem `ContextualPrecisionMetric` ranks how early *relevant* chunks appear in the retrieval context. When the inputs are degenerate, the metric still round-trips through the evaluation LLM: - **Empty `retrieval_context`**: there...
### Problem `ToolCall.input_parameters` defaults to `None` (a tool call with no arguments). When `evaluation_params` includes `INPUT_PARAMETERS`, comparing such a call against one that *does* carry arguments crashes in `ToolCorrectnessMetric._compare_dicts`: ```...
## Problem `AgentLoopDetectionMetric`'s tool-call repetition signal counts identical `(name, args)` invocations, but the argument signature is not canonical. The current implementation encodes dict arguments as `sorted((str(k), str(v)) for k, v...