agrag.common.data_models.extraction.ExtractionResult
Bases: BaseModel
The entities and relations one Extractor call found in one Chunk.
Attributes:
- entities (
list[ExtractedEntity]) – The mentions found, in extraction order. - relations (
list[ExtractedRelation]) – The relation mentions found, referencing entities by index. - extractor_name (
str) – Which Extractor produced this result. Set by the Extractor itself. Useful for provenance when an EscalatingExtractor escalated.
entities
entities: list[ExtractedEntity]
extractor_name
extractor_name: str
relations
relations: list[ExtractedRelation]