graphify_label_communities
Assign human-readable names to the largest Leiden communities in a knowledge graph using an LLM or placeholders, with configurable limits and sample sizes.
Instructions
Give the Leiden communities human-readable names.
Args:
method: "auto" -> host-LLM sampling if the client supports it, else a
configured backend key (graphify CLI), else "Community N" placeholders.
"sampling" -> force host-LLM sampling (no API key needed).
"cli" -> force the graphify backend (GEMINI_API_KEY/OPENAI_API_KEY/...
or a local ollama). "placeholder" -> no LLM at all.
limit: Only the largest limit communities are named, to stay cheap.
sample_size: Member labels per community handed to the model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | auto | |
| limit | No | ||
| sample_size | No | ||
| as_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |