mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2283] [Issue]: Sidecar ONNX embedder retirement silently degrades semantic memory/knowledge to lexical hashing, and ships an orphaned model bundle #1119
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1119
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Romuromylus on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2283
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The refactor intentionally retires the in-process ONNX all-MiniLM-L6-v2 embedder, but with no embedding provider configured it silently falls back to an FNV-hash bag-of-words for memory embeddings and short-circuits the knowledge-router semantic shortlist to keyword candidates, with no user-facing warning. The MiniLM model files still ship under resources but are referenced by zero code.
Expected behavior
Either keep a zero-config local embedding path, or surface a clear indication that semantic memory recall and semantic knowledge routing require a configured embedding-capable connection, and drop the now-orphaned model bundle from the shipped resources.
Actual behavior
With no embedding connection, memory embeddings become
source: "lexical"(FNV hash) andembedQueryreturns null so knowledge-router returns keyword fallback candidates, both silently. The retired model still ships atsrc-tauri/resources/default-data/models/Xenova/all-MiniLM-L6-v2/as dead weight.Steps to reproduce
Impact area
Regression notes
Worked on main with zero config. Main is local-first:
packages/server/src/services/memory-recall.ts:64-66callslocalEmbedfirst,local-embedder.ts:84loadsXenova/all-MiniLM-L6-v2, andmemory-recall-embedding.ts:129reports availability with no remote provider. The refactor has no ONNX/candle/fastembed/tokenizers code anywhere in src, src-tauri, or crates, andprompts.rs:531-535states the sidecar embeddings are retired. Lexical fallback atsrc-tauri/src/commands/storage/chats.rs:139-160,236-241; knowledge-routerlocalEmbedderis a dead pass-through never populated (src/engine/agents-runtime/knowledge/knowledge-router.ts:232,240-242,embeddings.ts:44). I acknowledge the retirement is intentional; this issue is about the silent (unwarned) degradation plus the orphaned model bundle.Environment
5ddb9840(compared against main @b4ab97f)Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 6, 2026):
Let's drop the embedding model, allow the users to provide their own one or set up their own. Unless we need it for basic Memory Recall? The one we enable via Chat Settings. Let me cook.
@SpicyMarinara commented on GitHub (Jun 6, 2026):
Fixed on
refactorin75f548c7.What changed:
Xenova/all-MiniLM-L6-v2default resource bundle.Validation:
cargo test --manifest-path src-tauri/Cargo.toml -p marinara-engine lexical_memorycargo test --manifest-path src-tauri/Cargo.toml -p marinara-engine embed_memory_content_uses_lexical_fallback_without_contextpnpm typecheckcargo check --manifest-path src-tauri/Cargo.tomlpnpm check:architecturepnpm buildpnpm checkClosing as completed.