Spaces:
Running
on
Zero
Running
on
Zero
Bellok
commited on
Commit
·
d5e328f
1
Parent(s):
3919620
refactor(stats): replace separate successful retrievals and error rate with combined retrieval success rate
Browse files- Simplify system stats display by using a single "Retrieval Success Rate" metric instead of two separate fields for successful retrievals and error rate
- Improves readability and consolidates related performance data into one percentage-based indicator
app.py
CHANGED
|
@@ -352,8 +352,7 @@ def get_system_stats() -> str:
|
|
| 352 |
|
| 353 |
# Recent Activity
|
| 354 |
output += "### 📈 Recent Activity\n\n"
|
| 355 |
-
output += f"**
|
| 356 |
-
output += f"**Error Rate:** {metrics['system_health']['error_rate']:.1% if 'error_rate' in metrics['system_health'] else 'N/A'}\n\n"
|
| 357 |
|
| 358 |
return output
|
| 359 |
|
|
|
|
| 352 |
|
| 353 |
# Recent Activity
|
| 354 |
output += "### 📈 Recent Activity\n\n"
|
| 355 |
+
output += f"**Retrieval Success Rate:** {metrics['system_health']['retrieval_success_rate']:.1% if 'retrieval_success_rate' in metrics['system_health'] else 'N/A'}\n\n"
|
|
|
|
| 356 |
|
| 357 |
return output
|
| 358 |
|