format_cluster_context

format_cluster_context(
    cluster_id,
    path_label,
    sibling_keywords,
    sibling_labels=None,
)

Format cluster context for an LLM labeling prompt.

Parameters

cluster_id : int path_label : str From derive_path_labels(). sibling_keywords : list[tuple[str, float]] From compute_sibling_keywords(). sibling_labels : dict[int, str] or None Labels of sibling clusters (for disambiguation context).

Returns

str Formatted context string.