-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
Problem Description
The "Avg Query (ms)" statistic consistently displays 0 despite multiple search operations and the implementation of query time tracking in v1.2.0.
Current Behavior
- Avg Query time shows 0 in the dashboard statistics section (bottom right card)
- This occurs even after performing multiple searches that take 1-3 seconds each
- Health status shows other metrics correctly (health percentage, etc.)
Expected Behavior
- Should display real average query times (typically 1-3 seconds = 1000-3000ms)
- Should update after performing search or recall operations
- Should reflect actual ChromaDB query performance
Steps to Reproduce
- Perform several search operations in the "Search Memories" tab
- Use the "Recall by Time" functionality (if working)
- Check the "Avg Query (ms)" statistic in the bottom dashboard cards
- Click the refresh stats button (settings icon)
- Avg Query time remains 0
Technical Analysis
get_average_query_time()
function implemented with deque tracking- Query time recording added to search operations
dashboard_check_health
tool should return tracked averages- Issue may be:
- Query time tracking not properly recording
- Health check not accessing the tracked times
- Dashboard frontend not parsing the response correctly
Console Logs Needed
Please check browser console (F12) for:
- Health check response format
- Query time values being returned
- Any errors in time tracking
Environment
- Version: v1.2.0 (commit ab740aa)
- Platform: Desktop application (Electron)
- Database: ChromaDB with semantic search
Additional Context
This issue persists despite multiple attempts to fix query time tracking in commits 9d59ddd and ab740aa. The tracking mechanism appears to be implemented but not properly integrated with the health check endpoint.