memorix icon indicating copy to clipboard operation
memorix copied to clipboard

Dashboard shows incorrect embedding status: "Disabled" with api provider, "fastembed" with auto provider

Open PVLPM opened this issue 7 months ago • 2 comments

Bug Description

Dashboard shows incorrect embedding status compared to CLI commands, even though embedding is configured and working correctly.

Steps to Reproduce

  1. Configure embedding in ~/.memorix/memorix.yml:
  embedding:
     provider: api
     model: "nvidia/llama-nemotron-embed-vl-1b-v2:free"
  1. Configure embedding API credentials in ~/.memorix/.env:
MEMORIX_EMBEDDING_API_KEY=sk-or-v1-xxx
MEMORIX_EMBEDDING_BASE_URL=https://openrouter.ai/api/v1
  1. Run memorix background start
  2. Open dashboard at http://localhost:3211
  3. Observe dashboard vs CLI output

Expected Behavior

Dashboard should show the same embedding status as CLI commands.

Actual Behavior

With provider: api

  • Dashboard: "Embedding Provider: Disabled (BM25 only)"
  • CLI doctor: "Provider: api-nvidia-llama-nemotron-embed-vl-1b-v2:free (2048d)" - Status: ready
  • CLI status: "Embedding: api-nvidia-llama-nemotron-embed-vl-1b-v2:free (2048d)"

With provider: auto

  • Dashboard: "Embedding Provider: Ready - fastembed-bge-small (384d)"
  • CLI doctor: "Provider: api-nvidia-llama-nemotron-embed-vl-1b-v2:free (2048d)" - Status: ready
  • CLI status: "Embedding: api-nvidia-llama-nemotron-embed-vl-1b-v2:free (2048d)"

CLI search returns results with vector similarity scores (e.g., 10.88, 10.50) in both cases.

Key Finding

Only the dashboard shows incorrect information. CLI doctor and status commands show the correct API embedding (2048d), and search functionality uses the correct vectors. The dashboard appears to:

  • Show "Disabled" when api provider is explicitly configured
  • Show fastembed-bge-small when auto provider is configured
  • Never show the actual API embedding that is being used

Environment

  • Memorix version: v1.0.6
  • OS: Windows
  • Node.js runtime
  • Background HTTP mode with dashboard

Possible Causes

  1. Dashboard caching embedding status at startup without live refresh
  2. Dashboard reading a different config source than CLI commands
  3. Dashboard UI logic is hardcoded to display specific providers or defaults

Notes

The embedding functionality works correctly despite the dashboard showing incorrect status. CLI tools (memorix status, memorix doctor, memorix search) are reliable indicators of actual state.

PVLPM avatar Apr 06 '26 23:04 PVLPM

Thanks for the detailed report. We’ve reproduced the mismatch pattern between the dashboard and the CLI embedding status, and we agree this should be fixed. We plan to address this in the next release so the dashboard reports the same resolved embedding provider/state as memorix status and memorix doctor.

AVIDS2 avatar Apr 08 '26 03:04 AVIDS2

Fixed in v1.0.7 Same root cause as #74: Dashboard was not loading .env files before reading embedding config. Now loadDotenv() is called in /api/config endpoint, so embedding provider status is correctly displayed.

AVIDS2 avatar Apr 14 '26 16:04 AVIDS2