Skip to content

feat(engines): add ImportanceEngine with multi-factor scoring#25

Merged
NP-compete merged 2 commits intomainfrom
feature/importance-engine
Mar 4, 2026
Merged

feat(engines): add ImportanceEngine with multi-factor scoring#25
NP-compete merged 2 commits intomainfrom
feature/importance-engine

Conversation

@NP-compete
Copy link
Copy Markdown
Owner

Summary

  • Implements ImportanceEngine with 6-factor importance scoring
  • Recency, frequency, emotional, surprise, entity, and explicit factors
  • Source-based multipliers for different memory origins
  • Includes batch operations, ranking, and filtering

Test plan

  • make lint passes
  • make test-unit passes (33 tests)
  • MyPy type checking passes

Closes #5

@NP-compete NP-compete self-assigned this Mar 4, 2026
@NP-compete NP-compete force-pushed the feature/importance-engine branch from 8f4edce to b6253ed Compare March 4, 2026 07:32
Implements importance scoring with:
- Recency: exponential decay with configurable half-life
- Frequency: logarithmic scaling with saturation
- Emotional: absolute valence (both positive/negative matter)
- Surprise: novelty/unexpectedness score
- Entity: named entity richness
- Explicit: user-provided or metadata importance
- Source multiplier: different sources have different weights

Includes batch operations and ranking utilities.

Closes #5
@NP-compete NP-compete force-pushed the feature/importance-engine branch from b6253ed to 9812ba3 Compare March 4, 2026 07:37
@NP-compete NP-compete merged commit 069ebc5 into main Mar 4, 2026
6 checks passed
@NP-compete NP-compete deleted the feature/importance-engine branch March 4, 2026 07:38
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.

Implement ImportanceEngine with multi-factor scoring

1 participant