openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Feature Request : Per-model health comparison table - live quality, hallucination rate, and cost benchmarking across all active models

Open githb-ac opened this issue 6 months ago • 1 comments

Summary

Add a per-model health comparison table to the OpenHuman dashboard that benchmarks every model currently in use across the swarm on quality score, hallucination rate, cost per million tokens, and a recommended action giving operators a single-pane view to identify underperforming models, spot cost savings, and make informed swap decisions without leaving the dashboard.

Problem

When multiple models run concurrently across teams and agents, there is no unified surface that compares how each model is actually performing in production. Operators must mentally correlate individual agent quality scores, hallucination counts, and provider billing data to understand which models are earning their cost. This is slow, error-prone, and becomes increasingly difficult as the number of models and agents grows.

Without a comparison table:

  • A model with a high hallucination rate may remain in use across many agents simply because no operator has noticed the pattern
  • A cheaper model with equivalent or better quality may be available but invisible
  • There is no automated recommendation surface to prompt action when a model is underperforming

Solution

Scope: app (dashboard panel) + core (model telemetry aggregation)

Table columns:

Column Description
Model Model name and provider
Quality Star rating (0–5) derived from average agent quality scores using this model
Halluc. Rate Hallucination rate as a percentage over the last N tasks
Cost / 1M out Output token cost in USD per million tokens
Agents using Count of agents currently assigned this model
Status Recommended action badge: Keep / Replace / Staging test / Vision only

Status badge logic:

  • Keep - hallucination rate below threshold and quality above minimum
  • Replace - hallucination rate exceeds hallucination_threshold config value
  • Staging test - model is newly registered or has insufficient task history for a confident recommendation
  • Vision only - model is flagged as vision-only in config and should not be used for general tasks

Replacement candidate highlighting:

  • If a model is flagged Replace, the table automatically highlights any registered model with a lower hallucination rate and equal or lower cost as a candidate replacement, with a "Cheaper" or "Better" tag
  • Clicking the candidate row triggers the same one-click model swap modal as FR4

Data source:

  • Quality scores and hallucination counts sourced from the telemetry event stream (FR11)
  • Cost per million tokens sourced from a local model cost registry (editable in config or via the dashboard)
  • No external API calls; all data is local

Filtering and sorting:

  • Sortable by any column
  • Filter by status badge (Keep / Replace / Staging / Vision)

Configuration in config.yaml:

dashboard:
  model_health:
    enabled: true
    hallucination_threshold: 0.10   # flag model if rate exceeds 10%
    min_tasks_for_rating: 10        # minimum tasks before a quality rating is shown
    evaluation_window_tasks: 50     # number of recent tasks used to compute rates

models:
  - id: deepseek-v3.2
    provider: SiliconFlow
    cost_per_1m_output: 0.33
    vision: false
  - id: minimax-m2.7
    provider: DeepInfra
    cost_per_1m_output: 1.20
    vision: false
  - id: qwen-2.5-8b
    provider: OpenRouter
    cost_per_1m_output: 0.09
    vision: true

Acceptance criteria

  • [ ] Table renders - one row per model currently in use, with model name, provider, quality, hallucination rate, cost, agent count, and status badge
  • [ ] Status badge logic - Keep / Replace / Staging test / Vision only assigned correctly based on config thresholds and task history
  • [ ] Replacement candidate highlighting - Replace-flagged models show candidate replacements with Cheaper / Better tags
  • [ ] One-click swap - clicking a candidate triggers the model swap modal (consistent with FR4)
  • [ ] Sortable columns - all columns sortable ascending / descending
  • [ ] Status filter - operators can filter table to a specific status badge
  • [ ] Local data only - quality and hallucination data sourced from telemetry; cost from local model registry; no external API calls
  • [ ] Config-driven thresholds - hallucination_threshold, min_tasks_for_rating, and evaluation_window_tasks read from config.yaml
  • [ ] Model cost registry - cost_per_1m_output and vision flag editable in config and reflected in the table
  • [ ] Diff coverage ≥ 80% - the implementing PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by .github/workflows/coverage.yml)

Related

  • OpenHuman agent architecture: https://tinyhumans.gitbook.io/openhuman/
  • Proposed: Per-agent model pinning (FR1)
  • Proposed: Concurrent orchestrator visibility layer (FR4)
  • Proposed: Live typed event stream log (FR11)
  • Proposed: 7-day cost and token usage chart (FR12)

Dashboard mockup attached

dashboard-example.html

githb-ac avatar May 15 '26 20:05 githb-ac

Hey @githb-ac — thanks for raising this! Linking to #1840 which covers the broader dashboard vision including per-model health metrics. Keeping both open so we can track this piece separately. 🤙

graycyrus avatar May 16 '26 05:05 graycyrus