Skip to content

Commit 8850aec

Browse files
committed
all at front
1 parent bfce0c5 commit 8850aec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/tests/regression/search_quality/run_search_eval.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ def generate_detailed_report(self, export_path: Path) -> None:
170170
]
171171
)
172172

173-
for category, metrics in sorted(self.metrics.items()):
173+
for category, metrics in sorted(
174+
self.metrics.items(), key=lambda c: (0 if c == "all" else 1, c)
175+
):
174176
found_count = metrics.found_count
175177
total_count = metrics.total_queries
176178
accuracy = found_count / total_count * 100 if total_count > 0 else 0

0 commit comments

Comments
 (0)