cos_graph_ranking
Rank knowledge graph nodes by importance using PageRank, optionally personalize ranking by query for targeted search and documentation sourcing.
Instructions
PageRank — node importance, optionally personalised by query.
Use for: knowledge condensation (top-N canonical concepts), query-personalised search ranking, documentation sourcing.
Args: query: Optional personalisation query ("auth", "graph backend"). Empty = global PageRank. top: Max nodes returned (default 20). kind: Optional kind filter. Empty = all. damping: PageRank damping factor (default 0.85). iterations: Power-iteration count (default 30).
Returns:
JSON envelope with nodes ranked by PageRank score.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| kind | No | ||
| query | No | ||
| damping | No | ||
| iterations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |