Skip to main content

Module conflict

Module conflict 

Expand description

Conflict resolution for memory entries.

Functionsยง

check_and_resolve_conflicts
Check for conflicting memories and mark old ones as superseded. Returns the list of entry IDs that were superseded.
find_text_conflicts
Find potentially conflicting entries using text similarity when embeddings are not available. Returns entries above the threshold.
jaccard_similarity
Simple text-based conflict detection without embeddings. Uses token overlap (Jaccard similarity) as a fast approximation when vector embeddings are unavailable.
mark_superseded
Mark entries as superseded in SQLite by setting their superseded_by column.