[GH-ISSUE #1858] [Issue]: Semantic/vectorized lorebook entries do not activate without keywords #902

Closed
opened 2026-10-21 05:23:10 +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/1858

Originally assigned to: @cha1latte on GitHub.

Summary

Vectorized lorebook entries do not activate through semantic matching when they have no keyword triggers. The entries can show as successfully vectorized, the lorebook can be active/global/attached, and keyword activation still works, but semantic-only activation does not inject the entry into chat context.

Expected behavior

A vectorized lorebook entry without keywords should be eligible for semantic matching during chat/RP generation when the user message is meaningfully related to the entry content.

For example, asking about “Gordon” should activate a vectorized entry whose description/content says Gordon is a rabbit, even if Gordon is not present as a primary key.

Actual behavior

Semantic-only entries do not appear in Active World Info and do not seem to inject into the prompt. Adding Gordon as a normal primary key causes the same entry to activate correctly, which suggests the lorebook attachment and keyword scanner path are working while the semantic activation path is not.

The lorebook editor also appears to show No semantic search again after attempting to select an embedding connection.

Steps to reproduce

  1. Create or open a lorebook and add an enabled entry with content/description such as Gordon the rabbit is a jerk.
  2. Leave the entry without primary or secondary keywords.
  3. Configure a connection with an embedding model and vectorize the lorebook entries until the UI shows the entries are vectorized.
  4. Attach the lorebook to a character/chat, set it global, or manually attach it when starting a chat/RP.
  5. Send a user message such as Tell me about Gordon.
  6. Open Active World Info and/or inspect the generated response/context.
  7. Add Gordon as a primary key to the same entry and repeat the message.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • 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

Environment

  • Branch or commit: User report from installer build
  • Run mode: Tauri desktop
  • OS + version: Windows 11
  • Node + pnpm versions: Not relevant / not provided
  • Rust version, if relevant: Not relevant / not provided
  • Remote Runtime URL configured? Not specified
  • Provider, model, or integration, if relevant: OpenRouter DS 4 Pro chat connection; embedding model reported as text-embedding-3-small; sidecar/agent setup reported as functioning

Logs, screenshots, or video

Reporter provided screenshots showing:

  • Lorebook has 4 entries and shows 4/4 entries vectorized.
  • Semantic Search section shows No semantic search.
  • Active World Info shows no active entries when asking about Gordon without a keyword.
  • The same entry activates when Gordon is added as a primary key.
  • Knowledge Retrieval / Knowledge Router agent settings were also tested with lorebook search permission and fixed source override, without changing behavior.

Regression notes

Unknown. Reporter is on version 1.6.1 installer EXE.

Additional context

Local source inspection suggests this is likely a product bug, not just user configuration:

  • The lorebook keyword scanner has a semantic fallback branch for entries with embeddings.
  • Normal prompt assembly appears to build lorebook scan options without passing a chat/query embedding or embedding source into the scanner.
  • That would make stored entry embeddings visible in the editor while semantic activation remains unreachable during generation.
  • Keyword activation still working is consistent with this diagnosis.

Template check

Please uncheck 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 @cha1latte on GitHub (Jun 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1858 Originally assigned to: @cha1latte on GitHub. ## Summary Vectorized lorebook entries do not activate through semantic matching when they have no keyword triggers. The entries can show as successfully vectorized, the lorebook can be active/global/attached, and keyword activation still works, but semantic-only activation does not inject the entry into chat context. ## Expected behavior A vectorized lorebook entry without keywords should be eligible for semantic matching during chat/RP generation when the user message is meaningfully related to the entry content. For example, asking about “Gordon” should activate a vectorized entry whose description/content says Gordon is a rabbit, even if `Gordon` is not present as a primary key. ## Actual behavior Semantic-only entries do not appear in Active World Info and do not seem to inject into the prompt. Adding `Gordon` as a normal primary key causes the same entry to activate correctly, which suggests the lorebook attachment and keyword scanner path are working while the semantic activation path is not. The lorebook editor also appears to show `No semantic search` again after attempting to select an embedding connection. ## Steps to reproduce 1. Create or open a lorebook and add an enabled entry with content/description such as `Gordon the rabbit is a jerk.` 2. Leave the entry without primary or secondary keywords. 3. Configure a connection with an embedding model and vectorize the lorebook entries until the UI shows the entries are vectorized. 4. Attach the lorebook to a character/chat, set it global, or manually attach it when starting a chat/RP. 5. Send a user message such as `Tell me about Gordon`. 6. Open Active World Info and/or inspect the generated response/context. 7. Add `Gordon` as a primary key to the same entry and repeat the message. ## Impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources - [x] Chat mode - [x] Roleplay mode - [ ] Game mode - [x] 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 - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: User report from installer build - Run mode: Tauri desktop - OS + version: Windows 11 - Node + pnpm versions: Not relevant / not provided - Rust version, if relevant: Not relevant / not provided - Remote Runtime URL configured? Not specified - Provider, model, or integration, if relevant: OpenRouter DS 4 Pro chat connection; embedding model reported as `text-embedding-3-small`; sidecar/agent setup reported as functioning ## Logs, screenshots, or video Reporter provided screenshots showing: - Lorebook has 4 entries and shows `4/4 entries vectorized`. - Semantic Search section shows `No semantic search`. - Active World Info shows no active entries when asking about Gordon without a keyword. - The same entry activates when `Gordon` is added as a primary key. - Knowledge Retrieval / Knowledge Router agent settings were also tested with lorebook search permission and fixed source override, without changing behavior. ## Regression notes Unknown. Reporter is on version 1.6.1 installer EXE. ## Additional context Local source inspection suggests this is likely a product bug, not just user configuration: - The lorebook keyword scanner has a semantic fallback branch for entries with embeddings. - Normal prompt assembly appears to build lorebook scan options without passing a chat/query embedding or embedding source into the scanner. - That would make stored entry embeddings visible in the editor while semantic activation remains unreachable during generation. - Keyword activation still working is consistent with this diagnosis. ## Template check Please uncheck 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 05:23:10 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

fixed in #1861

<!-- gh-comment-id:4597132835 --> @cha1latte commented on GitHub (Jun 1, 2026): fixed in #1861
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#902
No description provided.