[GH-ISSUE #448] fix(long-term-memory): batch embedding requests beyond host limits #226

Closed
opened 2026-10-20 17:25:34 +07:00 by bsakaguchi · 0 comments
Owner

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

rebuildLongTermMemoryIndexes passes 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

  1. Use Long-Term Memory 1.2.8 with a working local or configured embedding source.
  2. Create a vault producing at least 129 recall chunks.
  3. Rebuild the recall index.
  4. Observe embeddingsAvailable: false and the warning that saved memories are not searchable.

Environment

  • Marinara Engine version: 2.4.x capability host with 128-text and 200,000-character embedding limits
  • Package version: 1.2.8
  • Install type: source regression harness
  • OS + version: Linux
  • Browser or app shell: not applicable

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

  • I DID NOT read this template and provide the requested details.
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 `rebuildLongTermMemoryIndexes` passes 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 1. Use Long-Term Memory 1.2.8 with a working local or configured embedding source. 2. Create a vault producing at least 129 recall chunks. 3. Rebuild the recall index. 4. Observe `embeddingsAvailable: false` and the warning that saved memories are not searchable. ## Environment - Marinara Engine version: 2.4.x capability host with 128-text and 200,000-character embedding limits - Package version: 1.2.8 - Install type: source regression harness - OS + version: Linux - Browser or app shell: not applicable ## 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 - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#226
No description provided.