mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1083] [Feature]: Expand Long-Term Memory keyword stop words and add a global custom stop-word list #550
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#550
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 @Promansis on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1083
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Long-Term Memory's keyword lane filters tokens through a fixed
STOP_WORDSset inpackages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/keyword-extract.ts. The list misses common discourse/filler terms, so low-information tokens can still be extracted as note keywords and matched as query terms. Users also cannot tune the list, so keyword-recall precision is fixed by the package rather than by the user.Proposed package or change
Affected package: Long-Term Memory. Server source, a global settings field, and client settings UI.
Two parts:
get,go,make,say,know,think, and negative contractions such asdon't/can't/won't, which encode polarity the keyword lane already handles lossily. Normalize the curly right single quotation mark (U+2019,’) — and optionallyU+2018— to the straight apostrophe (') insidenormalizeKeywordTokenbefore the stop-word check, so contraction entries need only one spelling instead of two.Supports Conversation, Roleplay, and Game modes. Needs server and client code, a package version bump with a
CHANGELOG.mdentry, and a rebuild of generated artifacts/catalog from source.Why should this be optional?
This is Long-Term Memory-specific keyword tuning, not lightweight Engine core behavior, so it belongs in the downloadable package and its settings rather than the host.
Alternatives considered
still,yet,well,back,way,much,many,get,go,make,let,say,know,think) that would reduce recall quality.Additional context
Investigation only; no code changed in this issue's scope. Reference points:
keyword-extract.ts(STOP_WORDSat line 9,normalizeKeywordTokenat line 135), keyword index build inkeyword-index.ts, rebuild path inrebuild.ts. Focused tests:tests/long-term-memory-runtime.regression.ts,tests/long-term-memory-storage.regression.ts. Only the keyword lane is affected; the BM25 lane is independent.Template check