Skip to content

fix(api): default direct-content memory_type to Insight, not Pinned#19

Merged
yhyyz merged 2 commits into
ourmem:mainfrom
doctatortot:fix/default-insight-13
May 21, 2026
Merged

fix(api): default direct-content memory_type to Insight, not Pinned#19
yhyyz merged 2 commits into
ourmem:mainfrom
doctatortot:fix/default-insight-13

Conversation

@doctatortot
Copy link
Copy Markdown
Contributor

Closes #13.

POST /v1/memories with direct content (no memory_type) defaulted to MemoryType::Pinned. Pinned applies a 1.5x pinned_boost in rrf_fusion, so a Pinned default makes the boost apply uniformly across the whole corpus — defeating its purpose. Bulk-created memories all land pinned and the boost becomes a no-op for relative ranking.

Flip the default to Insight (the normal, unboosted variant). Pinning is now an explicit opt-in via memory_type=pinned for curated high-signal memories.

BEHAVIOR CHANGE: memories created via direct content without an explicit memory_type will no longer receive the pinned ranking boost. Existing data is untouched; callers wanting pinning pass memory_type=pinned.

doctatortot and others added 2 commits May 20, 2026 06:07
Closes ourmem#13.

POST /v1/memories with direct content (no memory_type) defaulted to
MemoryType::Pinned. Pinned applies a 1.5x pinned_boost in rrf_fusion, so a
Pinned default makes the boost apply uniformly across the whole corpus —
defeating its purpose. Bulk-created memories all land pinned and the boost
becomes a no-op for relative ranking.

Flip the default to Insight (the normal, unboosted variant). Pinning is now
an explicit opt-in via memory_type=pinned for curated high-signal memories.

BEHAVIOR CHANGE: memories created via direct content without an explicit
memory_type will no longer receive the pinned ranking boost. Existing data
is untouched; callers wanting pinning pass memory_type=pinned.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
test_create_memory_with_type now expects the no-type default to be insight;
test_update_memory_type creates an explicitly-pinned memory so the pinned->insight
update path is still exercised.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@yhyyz yhyyz merged commit c509042 into ourmem:main May 21, 2026
1 check passed
@yhyyz
Copy link
Copy Markdown
Contributor

yhyyz commented May 21, 2026

Merged and deployed — one-line fix, big semantic improvement. Closes #13. 👍

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.

Default memory_type for direct content creation should probably be Insight, not Pinned

2 participants