Commit 0ecec82
authored
Fix conversational metrics and metrics page pagination (#1421)
* fix(frontend): increase metrics fetch limit to prevent missing backend types
Metrics page only fetched 100 items, causing orgs with many metrics to
miss older DeepEval, Rhesis, and Ragas entries in the backend type tabs.
* fix(frontend): paginate metrics fetch to show all backend type tabs
The metrics page fetched only the first 100 metrics, but the backend
caps at 100 per request. Orgs with 100+ metrics lost DeepEval, Rhesis,
and Ragas tabs since older metrics were outside the first page. Added
getAllMetrics() that paginates through all pages.
* feat(frontend): add client-side pagination to metrics grid
* fix(metrics): thread conversation_history through evaluator pipeline
Conversational metrics require conversation_history in evaluate() but
the evaluator only passed single-turn params, causing TypeError. Add
conversation_history param to MetricEvaluator.evaluate(), introspect
for conversation_history and goal in _call_metric_with_introspection(),
build ConversationHistory from conversation_summary in multi-turn
evaluation, and register ConversationalJudge in native factory.
Add introspection completeness guard test that scans all metric classes
to ensure every required evaluate() param is handled by the evaluator.
* style(frontend): fix indentation in metrics grid map callback
* fix(frontend): add pagination robustness guards
- Break getAllMetrics loop on empty response to prevent infinite fetch
- Clamp page index when filtered list shrinks (e.g. after delete)
* fix(metrics): initialize _conversation_history in MetricEvaluator.__init__1 parent 52a95cb commit 0ecec82
File tree
8 files changed
+492
-129
lines changed- apps
- backend/src/rhesis/backend
- metrics
- tasks/execution
- frontend/src
- app/(protected)/metrics/components
- utils/api-client
- sdk/src/rhesis/sdk/metrics/providers/native
- tests
- backend/metrics
- sdk/metrics/providers/native
8 files changed
+492
-129
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| 146 | + | |
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| |||
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
179 | 185 | | |
180 | 186 | | |
181 | 187 | | |
| |||
892 | 898 | | |
893 | 899 | | |
894 | 900 | | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
895 | 905 | | |
896 | 906 | | |
897 | 907 | | |
| |||
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 138 | | |
141 | 139 | | |
142 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
| 154 | + | |
| 155 | + | |
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| 163 | + | |
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 139 | + | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| |||
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
151 | | - | |
| 149 | + | |
152 | 150 | | |
153 | 151 | | |
154 | 152 | | |
| |||
0 commit comments