mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1310] [MERGED] fix(long-term-memory): 1.4.26 — embed recall queries as queries #1395
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#1395
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1310
Author: @Promansis
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1302-recall-query-input-type📝 Commits (2)
6224f42fix(long-term-memory): 1.4.26 — embed recall queries as queriesb50490eMerge branch 'staging' into fix(long-term-memory)/1302-recall-query-input-type📊 Changes
15 files changed (+72 additions, -49 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.26.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+6 -6)📝
packages/long-term-memory/CHANGELOG.md(+4 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+2 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/embedding-adapter.ts(+10 -3)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/package-runtime.ts(+1 -1)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts(+3 -1)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-runtime.regression.ts(+12 -2)📄 Description
Pull request
Linked issue
Closes #1302
Why this change
Long-Term Memory embedded the recall search text through the same path as indexed chunks and never marked it as a query. With E5, nomic-embed-text or Snowflake Arctic Embed v2 models, the search therefore received the document prefix instead of the query prefix, which weakens semantic recall. This is the package half of Pasta-Devs/Marinara-Engine#7429; the Engine half applies the input type, and this change is what makes LTM send it.
What changed
long-term-memory1.4.25 → 1.4.26.package-runtime.ts:PackageEmbeddingAdapter.embedtakes an optional third positionalinputType("query" | "document").embedding-adapter.ts: the embedder passesinputTypeto bothadapter.embedcalls and defaults to"document". The option is declared on the embedder only, not on the sharedMemoryRecallEmbeddingOptions, so a rebuild or retrieval input cannot carry it.retrieval.ts: the recall query embed passesinputType: "query";rebuild.tsis unchanged and gets"document"through the default.tests/long-term-memory-runtime.regression.ts: the fake adapter records the third argument. Rebuild must send only"document"(including both batches of a split batch), and the recall query must send"query".manifest.json,server.mjs(2 changed spans),artifacts/long-term-memory-1.4.26.zip, the catalog lanes and release notes.scripts/build-feature-packages.mjscarries the version.Package and security impact
long-term-memoryengine.min2.4.1 /maxExclusive4.0.0 andcapabilityApi1.6 are unchanged. The argument is positional because older Engines hand the second argument toAbortSignal.any, which would throw on an options object; they ignore a third one. The change takes effect on Engines that include Pasta-Devs/Marinara-Engine#7429.spaceIdis unchanged and stored vectors were already document embeddings, so no reindex runs.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Documentation impact
UI evidence (if applicable)
Not applicable; no UI change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.