mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5768] [CLOSED] fix: prevent large lorebook embedding timeouts #6924
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#6924
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-Engine/pull/5768
Author: @mikemikimike
Created: 9/2/2026
Status: ❌ Closed
Base:
staging← Head:contrib/5717-lorebook-timeout📝 Commits (6)
d054d57chore: start #5717 implementation9b31230chore: sync #5717 branch with staging4b7d781fix: reduce large lorebook embedding batches9866d2achore: align #5717 branch with staging07f01f2fix: address review feedback7b063ffMerge branch 'staging' into contrib/5717-lorebook-timeout📊 Changes
4 files changed (+75 additions, -7 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/routes/lorebooks.routes.ts(+10 -7)📝
packages/server/src/services/lorebook/embeddings.ts(+22 -0)➕
scripts/regressions/lorebook-vectorization-batches.regression.ts(+41 -0)📄 Description
Fixes #5717
Summary
Large lorebooks can fail during embedding vectorization when a llama.cpp embedding server needs more time to complete a large batch request.
Type of Change
Why this change
Large lorebooks can fail during embedding vectorization when a llama.cpp embedding server needs more time to complete a large batch request. Issue #5717 reproduces this with a 72-entry lorebook and reports
read ETIMEDOUTfailures.What changed
Validation
corepack pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/lorebook-vectorization-batches.regression.ts— passed.corepack pnpm exec prettier --check scripts/regressions/lorebook-vectorization-batches.regression.ts— passed.corepack pnpm check— passed (impeccable context, localization, formatting, lint, TypeScript, e2e types, server build, and client Vite/PWA build).git diff --check— passed.pnpm-runner.regression.mjstimed out waiting forFAKE_PNPM_SERVER_READYon this Windows/Node 22 host, andlauncher/format-guard.regression.mjscannot start/bin/bashbecause WSL is unavailable.Compatibility / Known limitations
The change preserves existing embedding-provider interfaces and sends the same sequential requests with smaller input batches. Manual validation against a live llama.cpp embedding server using the reported Qwen3-Embedding model was not available in this environment.
Screenshots / Recordings (if applicable)
N/A — no UI changes are planned.
Checklist
- I have read the CONTRIBUTING.md
- I have added/updated tests where applicable
- I have updated documentation where necessary
## Summary by CodeRabbit🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.