[GH-ISSUE #1854] [Feature]: Re-vectorize Lorebook Keeper updates automatically #899

Closed
opened 2026-10-21 05:23:08 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @cha1latte on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1854

Originally assigned to: @cha1latte on GitHub.

What problem does this solve?

When Lorebook Keeper creates or edits lorebook entries, edited entries lose their stored semantic vectorization. This avoids stale embeddings, but users who rely on semantic matching need to manually re-vectorize after Keeper updates.

Proposed behavior

Add an optional or best-effort auto-vectorization step after Lorebook Keeper applies entry changes.

A narrow version would only vectorize entries that Lorebook Keeper created or modified, using the configured embedding connection/model when available.

Expected owner or impact area

  • App shell, navigation, startup, or providers
  • Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Refactor branch considerations

Lorebooks already support manual semantic vectorization, including "Vectorize missing" and "Re-vectorize" controls. Lorebook Keeper currently clears embeddings on edited entries, but there is no automatic re-vectorization after the update is applied.

This should probably be best-effort so embedding failures do not block approving/applying Lorebook Keeper updates.

Alternatives considered

Users can manually run "Vectorize missing" or "Re-vectorize" from the lorebook editor after Keeper updates. That works, but it is easy to forget.

Additional context

Low priority quality-of-life request for users combining Lorebook Keeper with semantic lorebook matching.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (Jun 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1854 Originally assigned to: @cha1latte on GitHub. ## What problem does this solve? When Lorebook Keeper creates or edits lorebook entries, edited entries lose their stored semantic vectorization. This avoids stale embeddings, but users who rely on semantic matching need to manually re-vectorize after Keeper updates. ## Proposed behavior Add an optional or best-effort auto-vectorization step after Lorebook Keeper applies entry changes. A narrow version would only vectorize entries that Lorebook Keeper created or modified, using the configured embedding connection/model when available. ## Expected owner or impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge - [ ] Chat mode - [x] Roleplay mode - [x] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] React-free engine behavior, contracts, agents, or capability ports - [x] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Refactor branch considerations Lorebooks already support manual semantic vectorization, including "Vectorize missing" and "Re-vectorize" controls. Lorebook Keeper currently clears embeddings on edited entries, but there is no automatic re-vectorization after the update is applied. This should probably be best-effort so embedding failures do not block approving/applying Lorebook Keeper updates. ## Alternatives considered Users can manually run "Vectorize missing" or "Re-vectorize" from the lorebook editor after Keeper updates. That works, but it is easy to forget. ## Additional context Low priority quality-of-life request for users combining Lorebook Keeper with semantic lorebook matching. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:23:08 +07:00
Author
Owner

@cha1latte commented on GitHub (Jun 1, 2026):

added in #1864

<!-- gh-comment-id:4597338288 --> @cha1latte commented on GitHub (Jun 1, 2026): added in #1864
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#899
No description provided.