mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3873] [Feature]: Add switch in lorebook settings to disable keyword triggering #2091
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#2091
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 @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:
@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!
@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.
@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!