mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #448] fix(long-term-memory): batch embedding requests beyond host limits #226
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#226
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 (Aug 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/448
Originally assigned to: @Promansis on GitHub.
Summary
Long-Term Memory sends all recall chunks to the Engine embedding host in one request. Vaults over the host's 128-text or 200,000-character request limits receive no semantic vectors and show a misleading "Saved, not searchable" warning.
Affected package
long-term-memory(version 1.2.8)Expected behavior
Recall-index rebuilds should batch embedding requests within the Engine capability limits, preserve vector order, and keep semantic embeddings available for vaults larger than one host request.
When semantic embeddings are unavailable, the UI should state that semantic search is unavailable while lexical recall can still work.
Actual behavior
rebuildLongTermMemoryIndexespasses all chunk texts to one embedding request. The Engine host rejects requests over 128 texts or 200,000 aggregate characters. The package then writes zero embedded chunks while lexical indexes remain available.The confirmed reproduction produced 128 embedded chunks at 128 chunks and zero embedded chunks at 129 chunks. A local embedding smoke test produced a valid 384-dimensional vector, so the failure is the single-request boundary rather than a missing local model.
Steps to reproduce
embeddingsAvailable: falseand the warning that saved memories are not searchable.Environment
Logs, screenshots, or video
No secrets or private chat data included.
Additional context
Lexical BM25, keyword, metadata, and graph indexes still rebuild and remain usable. The fix should batch in the Agents package; increasing the Engine host limits is out of scope.
Template check