[GH-ISSUE #6837] [Issue]: Large lorebook vectorization times out while using batches of 50 #3831

Closed
opened 2026-10-21 06:07:59 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6837

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Vectorizing large lorebooks still times out and is canceled prematurely by Marinara Engine. The LCPP reportedly continues processing entries in batches of 50 instead of the intended batch size of 10.

Expected behavior

Large lorebooks should be vectorized successfully without premature cancellation, using batches of 10 entries as intended by the bugfix.

Actual behavior

Vectorization times out and is canceled prematurely. The LCPP is still processing entries in batches of 50, and the server logs a fetch timeout during embedding.

Steps to reproduce

  1. Attempt to vectorize a large lorebook.
  2. Observe that vectorization is canceled after a timeout.
  3. Inspect the LCPP and observe batches of 50 entries.

Environment

  • Marinara Engine version: 2.4.6 (build 2.4.6+e28e80d14413, commit e28e80d144)
  • Install type: Not provided
  • OS + version: Linux 6.8.0-142-generic (x64)
  • Browser or app shell: Not provided

Logs, screenshots, or video

{"level":40,"time":1790661473818,"pid":9,"hostname":"22e4dc3cca96","bootId":"74fb4e12","requestId":"f1d98c2c-ce95-46b8-9a59-7b4a43696e1e","route":"/api/lorebooks/:id/vectorize","err":{"type":"TypeError","message":"fetch failed: read ETIMEDOUT","stack":"TypeError: fetch failed\ncaused by: Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:216:20)"},"msg":"[lorebooks] Embedding batch failed"}

Attached LCPP excerpt: message.txt

Additional context

This is a follow-up report stating that the expected reduction of the vectorization batch size from 50 to 10 does not appear to be implemented.

Discord thread: [BUG]: Timeout / Fetch Failed on Large Lorebook Vectorization - Follow Up
Discord thread link: https://discord.com/channels/1417099416812392641/1554373285192536134
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-09-29T06:04:30.049Z] m;aemoifmpfmmafe: https://discord.com/channels/1417099416812392641/1544239330825080892/1544239330825080892

Hi, Vectorizing large lorebooks still timeout and canceled by ME prematurely.
There was supposed to be a bugfix implemented to reduce the vectorization batch from 50 to 10. 
But I checked the LCPP, it's still getting it in batches of 50 entries.

` ` `
{"level":40,"time":1790661473818,"pid":9,"hostname":"22e4dc3cca96","bootId":"74fb4e12","requestId":"f1d98c2c-ce95-46b8-9a59-7b4a43696e1e","route":"/api/lorebooks/:id/vectorize","err":{"type":"TypeError","message":"fetch failed: read ETIMEDOUT","stack":"TypeError: fetch failed\ncaused by: Error: read ETIMEDOUT\n    at TCP.onStreamRead (node:internal/stream_base_commons:216:20)"},"msg":"[lorebooks] Embedding batch failed"}
` ` `

` ` `
Marinara Engine diagnostics
Version: 2.4.6
Build: 2.4.6+e28e80d14413
Commit: e28e80d14413
Server OS: Linux 6.8.0-142-generic (x64)
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1554373285192536134/1554373285192536134]

[2026-09-29T06:04:30.693Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1554373285192536134/1554373287893803059]

[2026-09-29T06:06:17.073Z] m;aemoifmpfmmafe: excerpt from LCCP
[attached file: message.txt — https://cdn.discordapp.com/attachments/1554373285192536134/1554373733710569503/message.txt?ex=6abca6d8&is=6abb5558&hm=58b61d0cd1135c84672bfb3cfe2489d8bddb79a320663c1e817e6311f8034022&]
[Discord message: https://discord.com/channels/1417099416812392641/1554373285192536134/1554373734083592192]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6837 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Vectorizing large lorebooks still times out and is canceled prematurely by Marinara Engine. The LCPP reportedly continues processing entries in batches of 50 instead of the intended batch size of 10. ## Expected behavior Large lorebooks should be vectorized successfully without premature cancellation, using batches of 10 entries as intended by the bugfix. ## Actual behavior Vectorization times out and is canceled prematurely. The LCPP is still processing entries in batches of 50, and the server logs a fetch timeout during embedding. ## Steps to reproduce 1. Attempt to vectorize a large lorebook. 2. Observe that vectorization is canceled after a timeout. 3. Inspect the LCPP and observe batches of 50 entries. ## Environment - Marinara Engine version: 2.4.6 (build 2.4.6+e28e80d14413, commit e28e80d14413) - Install type: Not provided - OS + version: Linux 6.8.0-142-generic (x64) - Browser or app shell: Not provided ## Logs, screenshots, or video {"level":40,"time":1790661473818,"pid":9,"hostname":"22e4dc3cca96","bootId":"74fb4e12","requestId":"f1d98c2c-ce95-46b8-9a59-7b4a43696e1e","route":"/api/lorebooks/:id/vectorize","err":{"type":"TypeError","message":"fetch failed: read ETIMEDOUT","stack":"TypeError: fetch failed\ncaused by: Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:216:20)"},"msg":"[lorebooks] Embedding batch failed"} Attached LCPP excerpt: message.txt ## Additional context This is a follow-up report stating that the expected reduction of the vectorization batch size from 50 to 10 does not appear to be implemented. Discord thread: [BUG]: Timeout / Fetch Failed on Large Lorebook Vectorization - Follow Up Discord thread link: https://discord.com/channels/1417099416812392641/1554373285192536134 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-09-29T06:04:30.049Z] m;aemoifmpfmmafe: https://discord.com/channels/1417099416812392641/1544239330825080892/1544239330825080892 Hi, Vectorizing large lorebooks still timeout and canceled by ME prematurely. There was supposed to be a bugfix implemented to reduce the vectorization batch from 50 to 10. But I checked the LCPP, it's still getting it in batches of 50 entries. ` ` ` {"level":40,"time":1790661473818,"pid":9,"hostname":"22e4dc3cca96","bootId":"74fb4e12","requestId":"f1d98c2c-ce95-46b8-9a59-7b4a43696e1e","route":"/api/lorebooks/:id/vectorize","err":{"type":"TypeError","message":"fetch failed: read ETIMEDOUT","stack":"TypeError: fetch failed\ncaused by: Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:216:20)"},"msg":"[lorebooks] Embedding batch failed"} ` ` ` ` ` ` Marinara Engine diagnostics Version: 2.4.6 Build: 2.4.6+e28e80d14413 Commit: e28e80d14413 Server OS: Linux 6.8.0-142-generic (x64) ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1554373285192536134/1554373285192536134] [2026-09-29T06:04:30.693Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1554373285192536134/1554373287893803059] [2026-09-29T06:06:17.073Z] m;aemoifmpfmmafe: excerpt from LCCP [attached file: message.txt — https://cdn.discordapp.com/attachments/1554373285192536134/1554373733710569503/message.txt?ex=6abca6d8&is=6abb5558&hm=58b61d0cd1135c84672bfb3cfe2489d8bddb79a320663c1e817e6311f8034022&] [Discord message: https://discord.com/channels/1417099416812392641/1554373285192536134/1554373734083592192] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:07:59 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 29, 2026):

SpicyMarinara / Codex is addressing this in draft #6841. The server route still has a fifty-entry batch constant; the fix will cap each provider request at ten and verify the request batches.

<!-- gh-comment-id:5888341056 --> @SpicyMarinara commented on GitHub (Sep 29, 2026): SpicyMarinara / Codex is addressing this in draft #6841. The server route still has a fifty-entry batch constant; the fix will cap each provider request at ten and verify the request batches.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 29, 2026):

Implemented and merged to staging in #6841 (a10ee75c5). The vectorization route now batches ten entries. The real-route/HTTP-provider regression verifies 10/10/1 batches, correct persistence, exclusions and only-missing behavior.

<!-- gh-comment-id:5889204161 --> @SpicyMarinara commented on GitHub (Sep 29, 2026): Implemented and merged to staging in #6841 (a10ee75c5). The vectorization route now batches ten entries. The real-route/HTTP-provider regression verifies 10/10/1 batches, correct persistence, exclusions and only-missing behavior.
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-Engine#3831
No description provided.