Skip to main content
Version: latest

Run statistics

Graph.add returns an AddResult. Graph.update returns an UpdateResult whose add_result contains the extraction and merge summaries. This page describes discarded-item counts and candidate writes. See the Python API for other fields.

Extraction statistics​

AddResult.extraction is an ExtractionStats.

FieldMeaning
droppedDroppedCount entries for items extraction discarded. Each entry has kind, label, reason and count. The list is filled whether or not candidates are written. These are run counts, not counts of candidate records currently stored.
candidates_writtenCandidate records written to the graph by this run.
candidates_skippedDiscarded items not written because a reviewer already approved or rejected the same content, or because a relation's ends became one entity.

Merge statistics​

AddResult.merge.dropped lists relations that the merge stage could not write. Each entry has the same DroppedCount fields.

Drop reasons​

ReasonKindMeaning
off_patternrelationThe relation label is declared, but the schema allows no pattern for its endpoint types.
below_relation_cutrelationThe relation score is below its threshold.
unresolved_endpointrelationAn endpoint does not match a kept entity span.
entity_bandentityThe entity score is between the band floor and entity threshold. This reason is absent when the GLiNER candidate pass is disabled or the mode is llm.
propertypropertyThe LLM returned a property key that the entity type does not declare.
schema_validationentity, relationSchema validation removed an undeclared entity or an invalid relation. These counts do not create candidate proposals.
unmapped_endpointrelationA relation endpoint has no merged entity. This reason appears in merge.dropped.
merged_self_looprelationBoth relation endpoints became one entity. This reason appears in merge.dropped.

Property conflicts are counted in merge.conflicts_resolved, not in merge.dropped.

Candidate storage failures abort document replacement even under ErrorPolicy.SKIP, so previously committed evidence is preserved.

Candidate kinds by mode​

Set the mode with ExtractionSettings.mode or EXTRACTION_MODE. The table lists the candidate kinds each mode can write.

Kindglinerhybridllm
off_patternYesYesYes
below_relation_cutYesYesNo
unresolved_endpointYesYesNo
entity_bandYesYesNo
propertyNoYes, for custom schemas with propertiesYes, for custom schemas with properties

An off_pattern candidate in llm mode has confidence 0.0, because the model does not return a score. A property candidate uses the holder entity's confidence, or 0.0 when the entity has no score.