mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1304] [Feature]: Long-Term Memory: show which embedding source it uses and how to change it #666
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#666
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 @Promansis on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1304
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Users can't tell which embedding model Long-Term Memory uses, or how to change it. This matters most for non-English vaults (#1295, sections 4 and 5).
[ActivityView.tsx L1208-L1214](https://github.com/Pasta-Devs/Marinara-Agents/blob/11c8a563e7ef33b03442909814366f11330e1aad/packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx#L1208-L1214),[LongTermMemoryDetail.tsx L410-L414](https://github.com/Pasta-Devs/Marinara-Agents/blob/11c8a563e7ef33b03442909814366f11330e1aad/packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx#L410-L414)).embeddingsAvailableisBoolean(index?.embeddings.embeddedChunkCount)(routes.ts L549).```` It keeps saying "available" after the embedding source changes: until the next recall rebuilds the index, or indefinitely if that rebuild failed and the auto-upgrade guard is set. Meanwhile recall reportssemanticOutcome: "incompatible".long-term-memory, falling back to the default connection (Engine capability-module-runtime.service.ts L103-L113).`````FeatureAgentDetailHost, which has no connection picker, unlike the Connection Override inAgentEditorthat built-in agents get.[MemorySettings.tsx L1187-L1197](https://github.com/Pasta-Devs/Marinara-Agents/blob/11c8a563e7ef33b03442909814366f11330e1aad/packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx#L1187-L1197))only affects extraction, not embeddings.Xenova/all-MiniLM-L6-v2, which was trained on English. For Korean and other non-English vaults the vector lane adds little.Proposed package or change
Package:
long-term-memory. The minimum is a small server, client and docs change, with no Engine change.ltmStatusResponseSchema:embeddingSource: the currentresolvePackageEmbeddingAdapter()label, for example "Built-in local MiniLM", "Local Model sidecar" or "My connection (multilingual-e5-large)".indexedEmbeddingSource:index.embeddings.model, the label already stored at rebuild (rebuild.ts L152).````````embeddingsAvailableshould also requireindex.embeddings.spaceId === adapter.spaceId, so a switched source no longer reads as available.MemorySettings.tsx: "Only used for extraction. Recall embeddings use the Long-Term Memory agent's connection (Connections → Semantic Search (Embeddings))."docs/ARCHITECTURE.md:BAAI/bge-m3(no prefixes) or multilingual-e5 (needs #1302 and Pasta-Devs/Marinara-Engine#7429).Optional, larger: an "Embedding connection" select in LTM's settings that sends
PATCH /api/agents/type/long-term-memorywith{ connectionId }. The Engine already wraps that route with the LTM refresh hook (Engineagents.routes.tsL507-L523, and #1303 for the package side). This would give LTM the per-agent override other agents have. It needs checking whether package client code may call that Engine route.Why should this be optional?
This changes an existing optional package, not the Engine core. Everything in the minimum stays inside LTM's own status route, UI strings and docs. The Engine already resolves the embedding source; LTM just doesn't show it.
Alternatives considered
local-embedder.ts), so it's out of scope here.Additional context
11c8a563e7ef33b03442909814366f11330e1aadand Engineecd62a2e4678d82fae753dd19f0f15cfbe48bba0; not reproduced in a running install.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: