Skip to main content
We no longer recommend clustering rubric evaluations as a primary workflow. The Docent plugin generates reduce-style Reading steps for clustering inside an Analysis Plan. This SDK reference is kept for users with existing clustering data.
After running a rubric evaluation, Docent can cluster judge results to identify common patterns. See Search and Clustering for a walkthrough.

Get Clustering State

Parameters

str
required
ID of the collection.
str
required
ID of the rubric.

Returns

dict
Clustering state.

Get Cluster Centroids

Parameters

str
required
ID of the collection.
str
required
ID of the rubric.

Returns

list[dict]
List of centroid information dictionaries.

Get Cluster Assignments

Parameters

str
required
ID of the collection.
str
required
ID of the rubric.

Returns

dict[str, list[str]]
Mapping of centroid IDs to lists of judge result IDs belonging to that cluster.