Detects potential duplicate or near-duplicate memories by vector similarity.
Parameters
The memory ID to find duplicates of.
Maximum distance threshold (0 = exact match, higher = more permissive).
Returns
List of similar memories with their distances, excluding the source memory itself.
Usage
Useful before adding new memories to avoid redundancy, or as a cleanup step to identify memories that should be consolidated.