Dashboard shows incorrect embedding status: "Disabled" with api provider, "fastembed" with auto provider
Bug Description
Dashboard shows incorrect embedding status compared to CLI commands, even though embedding is configured and working correctly.
Steps to Reproduce
- Configure embedding in
~/.memorix/memorix.yml:
embedding:
provider: api
model: "nvidia/llama-nemotron-embed-vl-1b-v2:free"
- Configure embedding API credentials in
~/.memorix/.env:
MEMORIX_EMBEDDING_API_KEY=sk-or-v1-xxx
MEMORIX_EMBEDDING_BASE_URL=https://openrouter.ai/api/v1
- Run memorix background start
- Open dashboard at
http://localhost:3211 - 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
- Dashboard caching embedding status at startup without live refresh
- Dashboard reading a different config source than CLI commands
- 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.
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.
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.