node_semantic_search
Search for nodes in a diagram that are semantically similar to a given embedding vector. Returns top matches with similarity scores.
Instructions
Search for nodes semantically similar to a target embedding.
Args: diagram_id: ID of diagram target_embedding: The embedding vector (list of floats) to compare against top_k: Maximum number of results to return (default: 5) threshold: Minimum cosine similarity score to include (default: 0.5)
Returns: dict with similar nodes and similarity scores
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | ||
| threshold | No | ||
| diagram_id | Yes | ||
| target_embedding | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||