Skip to content

Average query time tracking not working #4

@doobidoo

Description

@doobidoo

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

  1. Perform several search operations in the "Search Memories" tab
  2. Use the "Recall by Time" functionality (if working)
  3. Check the "Avg Query (ms)" statistic in the bottom dashboard cards
  4. Click the refresh stats button (settings icon)
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions