cos_graph_similar
Find similar nodes in the knowledge graph by providing a node UID. Set top-K and confidence threshold to retrieve ranked matches.
Instructions
Return the top-K nodes most similar to uid (difflib baseline).
Args:
uid: Fully-qualified node uid (see cos_graph_impact for
scheme). Raw repo paths are auto-resolved to
code:file: / doc:file: / folder:.
top_k: Number of similar nodes to return.
confidence_min: Minimum similarity score (0.0–1.0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| top_k | No | ||
| confidence_min | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |