Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jxnl/kura/llms.txt
Use this file to discover all available pages before exploring further.
MetaClusterModel
Model for reducing clusters into a hierarchical structure by iteratively combining similar clusters.Constructor
Maximum concurrent API requests
Model identifier for LLM calls
Embedding model to use (defaults to OpenAIEmbeddingModel)
Clustering method to use (defaults to KmeansClusteringModel with 12 items per cluster)
Target number of root clusters in final hierarchy
Rich console for progress tracking
Methods
reduce_clusters()
Takes a list of existing clusters and generates higher-order clusters that are more general. This represents a single iteration of the meta clustering process.List of clusters to reduce into higher-level groupings
List of clusters including both new meta-clusters (parent_id=None) and updated original clusters (with parent_id set)
generate_meta_clusters()
Generates meta-clusters from a group of clusters by creating candidate labels and organizing them hierarchically.List of clusters to organize into meta-clusters
Whether to show live preview of generated meta-clusters
List of clusters including meta-clusters and their children
generate_candidate_clusters()
Generate higher-level cluster names based on a given list of clusters.List of clusters to analyze for creating candidate labels
Asyncio semaphore for rate limiting
List of candidate cluster names that could encompass multiple sub-clusters
label_cluster()
Categorize a specific cluster into one of the provided higher-level clusters.Cluster to categorize
List of valid higher-level cluster names to choose from
Dictionary with keys “cluster” (original Cluster object) and “label” (selected higher-level cluster name)
rename_cluster_group()
Summarize a group of related clusters into a new meta-cluster with a unified name and description.List of related clusters to summarize
List containing the new meta-cluster (first item, parent_id=None) followed by updated original clusters (with parent_id set to the new meta-cluster’s ID)
reduce_clusters_from_base_clusters()
Reduce clusters into a hierarchical structure. Iteratively combines similar clusters until the number of root clusters is less than or equal to the model’s max_clusters setting.List of initial clusters to reduce
Meta-clustering model to use for reduction
Optional checkpoint manager for caching
List of clusters with hierarchical structure (includes both root and child clusters)