mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6837] [Issue]: Large lorebook vectorization times out while using batches of 50 #3831
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3831
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 @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
Environment
e28e80d144)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)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@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.
@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.