palinode_dedup_suggest
Checks draft memory against existing notes using semantic similarity, flags duplicates with similarity ≥0.90 to suggest updating instead of creating.
Instructions
Given draft memory content the LLM is about to save, return the top-K existing memory files whose embeddings are semantically near it. Use BEFORE writing a new memory to decide 'create new' vs 'update existing'. Each result includes a strong_dup flag — when true (similarity ≥ 0.90), the existing file is a near-paraphrase and the LLM should usually update rather than create. Preprocessing strips wikilink syntax and the auto-generated ## See also footer so notes linking the same entities don't false-positive as duplicates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | Maximum number of candidate files to return. Default 5. | |
| content | Yes | The draft memory body about to be saved (markdown, with or without frontmatter). | |
| min_similarity | No | Minimum cosine similarity to surface (0.0–1.0). Default 0.80. |