mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7699] Advanced Memory recall: meaning-aware shortlist for the Decision model, time sized to the backend #4251
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#4251
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 @SpicyMarinara on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7699
Originally assigned to: @SpicyMarinara on GitHub.
Agreed with Mari on 2026-10-15, after a code study of Advanced Memory recall.
Problem: with the Decision model on, only the top 24 scenes of a word-match shortlist ever reach the model, and Decision mode turns embeddings off. In long chats, the right scene often never reaches the model. An offline measurement on synthetic chats of whether the target scene reaches the 24:
The Decision step's 10 s limit is also too short for slower backends (the local 9B model), so it falls back.
Planned:
Rejected: a "summaries of summaries → Decision model picks X" stage. The Decision model answers one yes/no per item, so judging every gist at 800 scenes needs about 34 requests (minutes on local models), and gists drop details that message matching finds today.
@SpicyMarinara commented on GitHub (Oct 16, 2026):
Fixed on staging by #7701. The Decision recall shortlist uses meaning as well as words: fused once vectors cover 90% of the archive, filled in gradually after replies. Each Decision pass gets time sized to its backend, under one deadline per reply. The search reads every user message since the responder last spoke. Also: a date and participants line for each scene, the scene after a strong match, partial batches kept, and Chinese/Japanese word pairs. The prepare() cost at very large archives is tracked separately in #7702.