Interface: IngestionStatsDto
@kortexya/reasoninglayer / IngestionStatsDto
Interface: IngestionStatsDto
Section titled “Interface: IngestionStatsDto”Defined in: src/types/ingestion.ts:988
Ingestion statistics.
Remarks
Section titled “Remarks”Comprehensive statistics from the ingestion pipeline including chunk processing, entity extraction, deduplication, relations, and quality metrics.
Properties
Section titled “Properties”alignmentStats?
Section titled “alignmentStats?”
optionalalignmentStats?:AlignmentStatsDto
Defined in: src/types/ingestion.ts:1000
Source-text alignment statistics.
alreadyIngested
Section titled “alreadyIngested”alreadyIngested:
boolean
Defined in: src/types/ingestion.ts:998
true when these bytes were already ingested in the tenant: nothing was
extracted again, and IngestionStatsDto.documentTermId names the earlier
registry document that holds them (the first document with these bytes).
The request’s collectionPath / previousDocumentId were applied to that
document; an intent the engine cannot apply is refused, never dropped.
chunksFailed
Section titled “chunksFailed”chunksFailed:
number
Defined in: src/types/ingestion.ts:1002
Number of chunks that failed extraction.
chunksProcessed
Section titled “chunksProcessed”chunksProcessed:
number
Defined in: src/types/ingestion.ts:1004
Number of text chunks processed.
clausesExtracted?
Section titled “clausesExtracted?”
optionalclausesExtracted?:number
Defined in: src/types/ingestion.ts:1006
Number of contract clauses extracted (obligations, permissions, …).
communityStats?
Section titled “communityStats?”
optionalcommunityStats?:CommunityStatsDto
Defined in: src/types/ingestion.ts:1008
Community detection statistics (GraphRAG-style clustering).
documentsRefused
Section titled “documentsRefused”documentsRefused:
RefusedDocument[]
Defined in: src/types/ingestion.ts:1036
The documents of a batch that a bound constraint refused (reasoninglayer#1253): nothing of each was committed, and the batch went on with the others. Empty when none was refused.
documentTermId?
Section titled “documentTermId?”
optionaldocumentTermId?:string|null
Defined in: src/types/ingestion.ts:1015
Document-registry id (UUID) of the document that holds this content: the document term the linking stage created, or, when IngestionStatsDto.alreadyIngested, the earlier document with the same bytes. Absent when linking was skipped.
entitiesCreated
Section titled “entitiesCreated”entitiesCreated:
number
Defined in: src/types/ingestion.ts:1017
Number of new entities created.
entitiesExtracted
Section titled “entitiesExtracted”entitiesExtracted:
number
Defined in: src/types/ingestion.ts:1019
Number of entities extracted from text.
entitiesFilteredLowQuality?
Section titled “entitiesFilteredLowQuality?”
optionalentitiesFilteredLowQuality?:number
Defined in: src/types/ingestion.ts:1021
Number of entities filtered out due to low-quality names.
entitiesMerged
Section titled “entitiesMerged”entitiesMerged:
number
Defined in: src/types/ingestion.ts:1023
Number of entities merged (deduplicated).
entitiesPendingReview
Section titled “entitiesPendingReview”entitiesPendingReview:
number
Defined in: src/types/ingestion.ts:1025
Number of entities pending human review.
entitiesRefused
Section titled “entitiesRefused”entitiesRefused:
RefusedEntityDto[]
Defined in: src/types/ingestion.ts:1030
The extracted entities the declaration verdict refused, so they were not written. Every refusal is listed; empty when none was refused.
entityMergeAudit?
Section titled “entityMergeAudit?”
optionalentityMergeAudit?:EntityMergeAuditDto[]
Defined in: src/types/ingestion.ts:1038
The entity merges the pipeline made, each with its evidence.
estimatedCostUsd?
Section titled “estimatedCostUsd?”
optionalestimatedCostUsd?:number|null
Defined in: src/types/ingestion.ts:1040
Estimated USD cost of LLM API calls (if model pricing is available).
failedChunks?
Section titled “failedChunks?”
optionalfailedChunks?:ChunkFailureDto[]
Defined in: src/types/ingestion.ts:1042
Details of failed chunks (first 5).
fcaDiscovery?
Section titled “fcaDiscovery?”
optionalfcaDiscovery?:FcaIngestionReport
Defined in: src/types/ingestion.ts:1090
The ingestion FCA discovery report, present when the request set
enableFcaDiscovery.
groundingStats?
Section titled “groundingStats?”
optionalgroundingStats?:GroundingStatsDto
Defined in: src/types/ingestion.ts:1044
Entity grounding statistics (linking to external ontologies).
model?
Section titled “model?”
optionalmodel?:string|null
Defined in: src/types/ingestion.ts:1046
LLM model used for extraction.
ontologyVerifier?
Section titled “ontologyVerifier?”
optionalontologyVerifier?:OntologyVerifierStatsDto
Defined in: src/types/ingestion.ts:1048
Statistics of the learned ontology verifier.
pipelineQuality?
Section titled “pipelineQuality?”
optionalpipelineQuality?:PipelineQualityStatsDto
Defined in: src/types/ingestion.ts:1050
Pipeline quality statistics (inference rules, validation, feedback loop).
processingTimeMs
Section titled “processingTimeMs”processingTimeMs:
number
Defined in: src/types/ingestion.ts:1052
Processing time in milliseconds.
promptExecutions?
Section titled “promptExecutions?”
optionalpromptExecutions?:PromptExecutionDto[]
Defined in: src/types/ingestion.ts:990
Actual executions, not certificates of factual truth.
qaPairsGenerated?
Section titled “qaPairsGenerated?”
optionalqaPairsGenerated?:number
Defined in: src/types/ingestion.ts:1054
Number of Q&A pairs that document enrichment generated.
referencesResolved
Section titled “referencesResolved”referencesResolved:
number
Defined in: src/types/ingestion.ts:1056
Number of references resolved.
referencesUnresolved
Section titled “referencesUnresolved”referencesUnresolved:
number
Defined in: src/types/ingestion.ts:1058
Number of unresolved references (residuated).
relationsExtracted
Section titled “relationsExtracted”relationsExtracted:
number
Defined in: src/types/ingestion.ts:1060
Number of relations extracted from text.
relationsIntegrated
Section titled “relationsIntegrated”relationsIntegrated:
number
Defined in: src/types/ingestion.ts:1062
Number of relations integrated as features on entities.
relationsOrphaned?
Section titled “relationsOrphaned?”
optionalrelationsOrphaned?:number
Defined in: src/types/ingestion.ts:1064
Number of suspended relations that stayed unresolved.
relationsResumed?
Section titled “relationsResumed?”
optionalrelationsResumed?:number
Defined in: src/types/ingestion.ts:1066
Number of suspended relations resumed when their endpoints appeared.
relationsSuspended?
Section titled “relationsSuspended?”
optionalrelationsSuspended?:number
Defined in: src/types/ingestion.ts:1068
Number of relations suspended because an endpoint was not yet available.
sortNames
Section titled “sortNames”sortNames:
string[]
Defined in: src/types/ingestion.ts:1070
Names of created/reused sorts.
sortsCreated
Section titled “sortsCreated”sortsCreated:
number
Defined in: src/types/ingestion.ts:1072
Number of new sorts created.
sortsReused
Section titled “sortsReused”sortsReused:
number
Defined in: src/types/ingestion.ts:1074
Number of existing sorts reused.
sotaExtractionGate?
Section titled “sotaExtractionGate?”
optionalsotaExtractionGate?:SotaExtractionGateStatsDto
Defined in: src/types/ingestion.ts:1076
Statistics of the extraction quality gate.
termIds
Section titled “termIds”termIds:
string[]
Defined in: src/types/ingestion.ts:1078
IDs of created/updated terms.
tokenUsage?
Section titled “tokenUsage?”
optionaltokenUsage?:TokenUsageDto
Defined in: src/types/ingestion.ts:1080
Token usage from LLM API calls during this ingestion.
workCache?
Section titled “workCache?”
optionalworkCache?:IngestionWorkCacheDto
Defined in: src/types/ingestion.ts:1085
Work-cache provenance counted by the engine: provider calls made, reused and uncacheable. Absent when the engine reports none.