agrag.ingestion.community
Community detection: hierarchical Leiden over the entity graph.
Classes:
- CommunityDetectionMissingExtraError – Raised when graspologic-native is not installed.
Functions:
- compute_communities – Run hierarchical Leiden and return level-0 communities.
- delete_all_communities – Delete every Community node and its edges, in batches.
- detect_communities – Detect entity communities via hierarchical Leiden.
- embed_communities – Compute each community's embedding from its report text, in place.
- fetch_relation_edges – Return every live domain relation as a weighted edge tuple.
- generate_community_reports – Generate a report for each community, in place.
- required_member_ids – Return the member ids generate_community_reports will actually read.
Attributes:
- WeightedEdge – One domain relation as (source_id, target_id, weight, relation_type).
- logger –