Skip to content

fix(lore-memory): match a one-word prompt against note titles only - #421

Merged
hsusul merged 1 commit into
mainfrom
fix/prompt-recall-one-word-title
Nov 9, 2026
Merged

hsusul merged 1 commit into
mainfrom
fix/prompt-recall-one-word-title

Conversation

@hsusul

@hsusul hsusul commented Nov 9, 2026

Copy link
Copy Markdown
Owner

What

When a prompt has one content word, fts_related matches notes whose title holds it (was: anywhere in the lesson statement). Two-word matching is unchanged.

Why

On the owner's last 60 real prompts (same harness as #420, hook run against a vault copy): one-word go-aheads were the main remaining false positives. "Yes, review them" got "List follow-up items in chat instead of filing them to a team tracker", and "Yes, build them" got the external-SSD note. After: 20 → 18 notes, both gone, every relevant one kept ("Throttle Xcode builds", "Run /code-review…", "Resolve review threads…", the merge notes).

Test

New a_one_word_prompt_matches_titles_only (fails on main: both notes returned). Query-shape unit test updated. README sentence updated. cargo test --no-fail-fast -p lore-memory -p lorectl passes; clippy clean.

"Yes, review them" and "Yes, build them" matched any note whose statement
held the word: "List follow-up items in chat" and the external-SSD note.
With one content word, the note's title must hold it.
@hsusul
hsusul merged commit fb7dcb6 into main Nov 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant