enrich_neighbor_keywords_tool
Enrich note frontmatter with neighbor keywords and cluster topics by computing embedding similarity and extracting frequent words from similar notes. Operates locally without API calls.
Instructions
Enrich notes with neighbor_keywords and cluster_topic derived from embedding similarity.
Computes cosine similarity between all notes' embeddings, finds top-5 neighbors per note, and writes high-frequency words from neighbors back into each note's frontmatter. No API or model calls — pure local computation from vault.db embeddings.
Args: note_path: Relative path to a single note (e.g. "10-projects/foo.md"). Empty string = process all notes without neighbor_keywords. force: If True, overwrite existing neighbor_keywords. Default: skip existing. Returns: JSON-like string with {"enriched": N, "skipped": M, "no_neighbors": K}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| note_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |