Skip to content

feat: Real-time query observability dashboard #38

Description

@jack-arturo

Problem

Currently, the only visibility into AutoMem's behavior is through raw server logs on the agent end. There's no insight into what's happening on the server side during memory operations.

Proposed Solution

Add a real-time observability layer that exposes query metrics and traversal details. This could be:

Implementation Options

  1. Terminal-based - Simple CLI tool that tails structured logs
  2. WebSocket-based - Real-time web dashboard (could integrate with existing graph-viewer)
  3. Both - Terminal for quick debugging, web for richer visualization

Metrics to Expose

Query Metrics

  • Incoming queries (recall, store, associate, etc.)
  • Query parameters and filters used
  • Response times

Graph Traversal Stats

  • Number of nodes traversed
  • Number of hops taken
  • Relationship types followed
  • Duplicate detection counts

Quality Metrics (if low-cost)

  • Query optimization score - how well-formed was the agent's query?
  • Result relevancy estimate - how relevant were the returned memories?
  • Cache hit rates (if applicable)

Enrichment Pipeline

  • Queue depth
  • Processing times
  • Entity extraction results

Prior Art

The existing /enrichment/status and /analyze endpoints provide some static metrics. This would extend that to real-time streaming.

Notes

  • Should have minimal performance overhead when not actively monitored
  • Consider structured logging (JSON) for easy parsing
  • Could leverage existing FalkorDB Browser infrastructure (port 3001)

Deferred until current branch is merged

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions