Skip to main content
Updates an existing memory entry. Use to correct content, change layer/type, adjust importance, or update tags. Prefer this over delete + add to preserve the memory ID.

Parameters

id
string
required
Memory ID to update.
content
string
New content text. Only provide if changing the content. Triggers embedding regeneration.
layer
string
New layer: rule, working, or long_term. Use to promote (e.g., workinglong_term) or change priority.
type
string
New type classification: rule, decision, fact, note, or skill.
importance
number
Importance score (0.0-1.0). Higher values decay slower and rank higher in search.
tags
string[]
New tags (replaces existing tags entirely).

Embedding Regeneration

When content is updated, Cohaku automatically:
  1. Generates a new embedding from the updated content
  2. Replaces the old vector in vec_memories
This ensures search results always match the current content.