Version: latest
agrag.ingestion.extract
The Extractor interface: reads one Chunk and produces an ExtractionResult.
Classes:
- BAMLExtractor – Extract entities and relations with an LLM through a typed BAML function.
- 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.
- LLMExtractor – LLM role that may receive entities found by an earlier extractor.
- UnparsableExtractionError – The LLM replied, but the reply holds no JSON answer.
Functions:
- convert_reply – Turn one typed reply into an extraction result for a single chunk.
- load_extraction_llm_settings – Return extraction LLM settings, or None when no endpoint is configured.
- validate_extraction – Drop entities and relations that the schema does not declare.
Attributes:
- logger –