Memory importance scoring and de-duplication #3

Closed
opened 2026-01-21 20:45:24 +00:00 by jack · 1 comment
Owner

Problem

Over time, similar/repeated observations are stored with the same weight → noise, reduced relevance.

Solution

1. Importance Scoring

Weighting: decisions > writes > reads > informational

function scoreObservation(obs: Observation): number {
  if (obs.type === 'decision') return 1.0;
  if (obs.type === 'bugfix') return 0.9;
  if (obs.type === 'feature') return 0.8;
  if (obs.type === 'refactor') return 0.7;
  if (obs.type === 'discovery') return 0.5;
  return 0.3; // informational
}

2. De-duplication

  • Hash-based for exact duplicates
  • Similarity-based for near-duplicates
  • Merge or skip duplicates

Migrated-From: jack/claude-mem-fork#80

## Problem Over time, similar/repeated observations are stored with the same weight → noise, reduced relevance. ## Solution ### 1. Importance Scoring Weighting: decisions > writes > reads > informational ```typescript function scoreObservation(obs: Observation): number { if (obs.type === 'decision') return 1.0; if (obs.type === 'bugfix') return 0.9; if (obs.type === 'feature') return 0.8; if (obs.type === 'refactor') return 0.7; if (obs.type === 'discovery') return 0.5; return 0.3; // informational } ``` ### 2. De-duplication - Hash-based for exact duplicates - Similarity-based for near-duplicates - Merge or skip duplicates -------- Migrated-From: jack/claude-mem-fork#80
jack closed this issue 2026-01-24 09:17:17 +00:00
Author
Owner

Closing as duplicate of #28 which has more comprehensive scope (importance scoring + UI + decay + pinning).

Closing as duplicate of #28 which has more comprehensive scope (importance scoring + UI + decay + pinning).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
customable/claude-mem#3
No description provided.