incerto.llm.plot_semantic_clusters

incerto.llm.plot_semantic_clusters#

incerto.llm.plot_semantic_clusters(responses, clusters, ax=None, title='Semantic Clusters')[source]#

Visualize semantic clustering of responses.

Parameters:
  • responses (List[str]) – List of generated responses

  • clusters (List[int]) – Cluster assignments for each response

  • ax – Matplotlib axes

  • title (str) – Plot title