Repository navigation
Resolve relative dates when stored (LoCoMo temporal F1 0.108 to 0.331), and synonym groups for the merge - #17
Merged
Conversation
…ynonyms for the merge rules Mem.Dates: "last Saturday" is stored as "last Saturday (the Saturday before 25 May 2023)", against the message's own leading date (a /log line) or the time it is stored ([agent] resolve_dates, default on). Mem.Guard's Related table groups profession, occupation, trade, career and vocation with job, and town, hometown, village and residence with city. merge_judge --reuse re-scores a rule change with the judge's earlier p. A third merge test set checks the groups on new wordings and traps. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
…r, never on rules alone On the third merge set the wider job and city groups let "Marek was born in Graz" over "Marek's city is Bergen" through the 0.9 veto (5 wrong merges; p 0.91 to 0.95, where true rewordings scored 0.98 and more). Such pairs now need p >= rescue_min (0.97), and with no judge they are kept apart. Third set: 14 missed and 0 wrong before, 3 and 0 now; tuning set unchanged at 0 and 0; held-out 14 to 9 missed, 0 wrong. merge_judge records synonym. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
…me answers as before Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
…d with the synonym rule Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
…15.9 -> 20.5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Both changes were benchmarked. The full write-up is in
bench/README.mdunder "Checking what won".Dates (
Mem.Dates,[agent] resolve_dates=1)A relative date in a stored message gets the absolute date added after it: "last Saturday" becomes "last Saturday (the Saturday before 25 May 2023)". The date is worked out from the message's own leading date (a
/logline), else from the time it is stored. The original words stay, and the date is added only once.LoCoMo sample 0, 1.5B, all 152 questions (
bench/results/locomo-small-s0-dates.json):Synonym groups for the merge (
Mem.Guard.Related,SynonymSubjects,TAgent.SameSubject)Also
merge_judge --reuserescoring without the judgescore_merge.pyrows for the synonym rulebench_integration.answer_textkeeps bracketed date answersTest plan
make test-pascalpasses, including the newdates_test(11 cases)integration-small-fixes.json)bench/jev/score_merge.pyGenerated by Claude Code