agrag.ingestion
The ingestion package.
Modules:
- community – Community detection: hierarchical Leiden over the entity graph.
- extract – The Extractor interface: reads one Chunk and produces an ExtractionResult.
- graph – The public Graph API for ingestion.
- merge – Merge mechanics: how a resolved group of mentions and entities combine.
- reports – Reports returned by Graph pipeline operations.
- resolve – Entity resolution public API.
- resolved_embeddings – Embedding and vector synchronization for resolved-entities.
- resolved_entities – Non-destructive match persistence and resolved-entity computation.
- settings – Configuration for the Cutover Job crash-recovery machine.
- stats – Per-stage observability types for the ingestion pipeline.
Classes:
- AddResult – Return type of Graph.add(). One summary per pipeline stage.
- BAMLExtractor – Extract entities and relations with an LLM through a typed BAML function.
- CommunityDetectionReport – Report from Graph.detect_communities().
- ConsolidationReport – Report from Graph.consolidate().
- EscalatingExtractor – Run a cheap extractor on every chunk and a stronger one on weak results.
- ExtractionLLMSettings – Env-backed LLM client configuration for the extraction role.
- Extractor – Reads one chunk and returns the entities and relations it contains.
- ExtractorMissingExtraError – An Extractor needs a package extra that is not installed.
- GlinerExtractor – Extracts entities and relations with a local GLiNER2.5 model.
- Graph – A knowledge graph that a caller can open and add content to.
- ReevaluationReport – Report from Graph.reevaluate().
- UpdateResult – Summary of an update or soft deletion.