Interface: DocumentStatsDto
@kortexya/reasoninglayer / DocumentStatsDto
Interface: DocumentStatsDto
Section titled “Interface: DocumentStatsDto”Defined in: src/types/ingestion.ts:172
Stats for a single completed document within a session.
Properties
Section titled “Properties”alreadyIngested
Section titled “alreadyIngested”alreadyIngested:
boolean
Defined in: src/types/ingestion.ts:180
true when these bytes were already ingested in the tenant: nothing was
extracted again, and DocumentStatsDto.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.
chunksProcessed
Section titled “chunksProcessed”chunksProcessed:
number
Defined in: src/types/ingestion.ts:182
Number of chunks successfully processed.
completedAt?
Section titled “completedAt?”
optionalcompletedAt?:string|null
Defined in: src/types/ingestion.ts:184
When ingestion completed (ISO 8601).
documentId
Section titled “documentId”documentId:
string
Defined in: src/types/ingestion.ts:189
Session-tracking id of the document (UUID) — the documentId a 202
AsyncIngestionResponse returned.
documentTermId?
Section titled “documentTermId?”
optionaldocumentTermId?:string|null
Defined in: src/types/ingestion.ts:197
Document-registry id of the document that holds this content (UUID): the
id GET /api/v1/documents lists and /api/v1/documents/{document_id}/…
answers to. It is the document this run linked, or, when
DocumentStatsDto.alreadyIngested, the earlier document with the
same bytes. Absent when document linking was skipped.
entitiesExtracted
Section titled “entitiesExtracted”entitiesExtracted:
number
Defined in: src/types/ingestion.ts:199
Number of entities extracted from text.
entitiesRefused
Section titled “entitiesRefused”entitiesRefused:
RefusedEntityDto[]
Defined in: src/types/ingestion.ts:206
The extracted entities the declaration verdict refused, so they were not
written. Every refusal is listed, in the same shape as the synchronous
ingest response: a document can be complete while part of what was
extracted from it was refused. Empty when none was refused.
fcaDiscovery?
Section titled “fcaDiscovery?”
optionalfcaDiscovery?:FcaIngestionReport
Defined in: src/types/ingestion.ts:224
This document’s FCA discovery report, present only when the request set
enableFcaDiscovery. A detached batch runs each document as its own task,
so each reports its own analysis.
processingTimeMs
Section titled “processingTimeMs”processingTimeMs:
number
Defined in: src/types/ingestion.ts:208
Processing time in milliseconds.
relationsExtracted
Section titled “relationsExtracted”relationsExtracted:
number
Defined in: src/types/ingestion.ts:210
Number of relations extracted from text.
relationsIntegrated
Section titled “relationsIntegrated”relationsIntegrated:
number
Defined in: src/types/ingestion.ts:212
Number of extracted relations integrated into the native graph.
sortNames
Section titled “sortNames”sortNames:
string[]
Defined in: src/types/ingestion.ts:214
Names of sorts created/reused.
termIds
Section titled “termIds”termIds:
string[]
Defined in: src/types/ingestion.ts:216
IDs of terms created/updated during ingestion.
totalTokens
Section titled “totalTokens”totalTokens:
number
Defined in: src/types/ingestion.ts:218
Total tokens consumed across all LLM calls.
valuePass?
Section titled “valuePass?”
optionalvaluePass?:IngestionValuePassDto
Defined in: src/types/ingestion.ts:236
What the value pass read in the document’s passages. Absent when no passage was written, and from snapshots written before the field existed.
workCache?
Section titled “workCache?”
optionalworkCache?:IngestionWorkCacheDto
Defined in: src/types/ingestion.ts:231
The model calls this document’s ingestion made and reused through the work cache, as a synchronous run reports them in IngestionStatsDto.workCache. Absent when it made and reused none, and from an engine whose sessions do not keep them yet.