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_bycolumn.