memory_find_duplicates
Scans cross-references to detect memory pairs with high similarity. Optionally uses LLM for semantic comparison to identify duplicate memories.
Instructions
Find potential duplicate memory pairs with optional LLM-powered comparison.
Scans cross-references to find memory pairs with similarity >= threshold, then optionally uses LLM to semantically compare them. Uses the same threshold (0.85) as the graph UI duplicate detection.
Args: min_similarity: Minimum similarity score to consider (default: 0.85) max_similarity: Maximum similarity score (default: 1.0, kept for backward compatibility) limit: Maximum pairs to analyze (default: 10) use_llm: Whether to use LLM for semantic comparison (default: True)
Returns: Dictionary with: - pairs: List of potential duplicate pairs with analysis - total_candidates: Total pairs found - analyzed: Number of pairs analyzed with LLM - llm_available: Whether LLM comparison was available
Rate limited: 120s cooldown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_similarity | No | ||
| max_similarity | No | ||
| limit | No | ||
| use_llm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |