[GH-ISSUE #3873] [Feature]: Add switch in lorebook settings to disable keyword triggering #2091

Closed
opened 2026-10-21 05:45:19 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @Aculeasis on GitHub (Jul 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3873

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Big lorebooks with a lot of keywords can and will trigger when not needed, and currently there is no way to disable keyword-based activation (other than deleting all keywords).

UPD: And it seems that keyword triggering takes priority over semantic search, which makes things even worse.

Proposed solution

Add a switch to disable/enable triggering by keywords, similar to the existing Vectors switch.

Alternatives considered

Instead of being separate, semantic search and keyword triggers could work in some hybrid mode.
For example, a keyword match could add a fixed score value from the settings (global or even per-entry) to the semantic search score. In that case, setting score=0.0 would disable keyword search, while a small value could improve matching accuracy. However, I'm not sure how useful this would actually be, it could help with matching names, but splitting the lorebook into two separate lorebooks would be more effective, since we can already configure each one independently.

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 @Aculeasis on GitHub (Jul 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3873 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Big lorebooks with a lot of keywords can and will trigger when not needed, and currently there is no way to disable keyword-based activation (other than deleting all keywords). UPD: And it seems that keyword triggering takes priority over semantic search, which makes things even worse. ## Proposed solution Add a switch to disable/enable triggering by keywords, similar to the existing Vectors switch. ## Alternatives considered Instead of being separate, semantic search and keyword triggers could work in some hybrid mode. For example, a keyword match could add a fixed score value from the settings (global or even per-entry) to the semantic search score. In that case, setting score=0.0 would disable keyword search, while a small value could improve matching accuracy. However, I'm not sure how useful this would actually be, it could help with matching names, but splitting the lorebook into two separate lorebooks would be more effective, since we can already configure each one independently. ## 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 05:45:19 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 20, 2026):

Hey pookie, you can already instead choose to disable the entries you would rather not trigger, or remove the entire lorebook from the conversation if that is a problem. I will make it so that keyword search is not prioritized over semantic search, though, if that one is enabled!

<!-- gh-comment-id:5024197618 --> @SpicyMarinara commented on GitHub (Jul 20, 2026): Hey pookie, you can already instead choose to disable the entries you would rather not trigger, or remove the entire lorebook from the conversation if that is a problem. I will make it so that keyword search is not prioritized over semantic search, though, if that one is enabled!
Author
Owner

@Aculeasis commented on GitHub (Jul 20, 2026):

I don't want to disable them entirely, I want them to be triggered only via semantic search.

Maybe add an option to remove keywords in entry batching instead? Doing this with a script and re-importing isn't useful.

<!-- gh-comment-id:5024437196 --> @Aculeasis commented on GitHub (Jul 20, 2026): I don't want to disable them entirely, I want them to be triggered only via semantic search. Maybe add an option to remove keywords in entry batching instead? Doing this with a script and re-importing isn't useful.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 20, 2026):

If you want them to be triggered via semantic search, it's best to remove keywords entirely. You can also ask Professor Mari to do it for you! Furthermore, check how it goes on staging, I did the changes I mentioned!

<!-- gh-comment-id:5024502036 --> @SpicyMarinara commented on GitHub (Jul 20, 2026): If you want them to be triggered via semantic search, it's best to remove keywords entirely. You can also ask Professor Mari to do it for you! Furthermore, check how it goes on staging, I did the changes I mentioned!
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#2091
No description provided.