Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Fix return_all_scores in evaluate again to return all (#625)

Quajak0c1d1b1b2c9b
diff --git a/dspy/evaluate/evaluate.py b/dspy/evaluate/evaluate.py
index 1099ede89..486e4b68e 100644
--- a/dspy/evaluate/evaluate.py
+++ b/dspy/evaluate/evaluate.py
@@ -219,7 +219,7 @@ class Evaluate:
ipython_display(HTML(message))
if return_all_scores and return_outputs:
- return round(100 * ncorrect / ntotal, 2), results
+ return round(100 * ncorrect / ntotal, 2), results, [score for *_, score in reordered_devset]
elif return_all_scores:
return round(100 * ncorrect / ntotal, 2), [score for *_, score in reordered_devset]
elif return_outputs: