mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-03 13:43:24 +00:00
Eval Error Key (#13974)
This commit is contained in:
parent
f9bef600f1
commit
60309341bd
@ -122,7 +122,7 @@ class TestResult(dict):
|
|||||||
r.update(
|
r.update(
|
||||||
{
|
{
|
||||||
**{f"feedback.{f.key}": f.score for f in feedback},
|
**{f"feedback.{f.key}": f.score for f in feedback},
|
||||||
"error": result.get("error"),
|
"error": result.get("Error"),
|
||||||
"execution_time": result["execution_time"],
|
"execution_time": result["execution_time"],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -1026,7 +1026,7 @@ def _collect_test_results(
|
|||||||
"execution_time": all_execution_time.get(str(example.id)),
|
"execution_time": all_execution_time.get(str(example.id)),
|
||||||
}
|
}
|
||||||
if isinstance(output, EvalError):
|
if isinstance(output, EvalError):
|
||||||
results[str(example.id)]["error"] = output.error
|
results[str(example.id)]["Error"] = output.error
|
||||||
else:
|
else:
|
||||||
results[str(example.id)]["output"] = output
|
results[str(example.id)]["output"] = output
|
||||||
if example.outputs:
|
if example.outputs:
|
||||||
|
Loading…
Reference in New Issue
Block a user