MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / ClusteringAlgorithm

Class ClusteringAlgorithm

_cluster_utils.py:347–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345
346
347class ClusteringAlgorithm(ABC):
348 @abstractmethod
349 def perform_clustering(self, embeddings: np.ndarray, **kwargs) -> List[List[int]]:
350 pass
351def _pack_single_community_describe(
352 entitys,
353 relations,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected