Skip to content

Interface: IngestionConfigDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / IngestionConfigDto

Defined in: src/types/ingestion.ts:478

Configuration for ingestion.

Controls LLM extraction, NER, deduplication, schema discovery, and various quality pipeline options.

Carried by ingestionConfig on IngestDocumentRequest, IngestDocumentBatchRequest and IngestAudioRequest, and by config on IngestMarkdownRequest, IngestMarkdownBatchRequest and ResumeDocumentIngestionRequest. The engine applies every option both inline and in queued (sync: false) mode. A document batch applies the one config to each item, with documentId replaced by the item’s id. The wire keys are snake_case; the engine refuses an unknown key with 422.

optional autoCreateSorts?: boolean

Defined in: src/types/ingestion.ts:488

Whether to automatically create new sorts for unrecognized entity types.


optional collectionPath?: string | null

Defined in: src/types/ingestion.ts:499

Collection path of the document-registry entry, used to group documents for corpus-level analysis. null or absent files the document at the root.

When the bytes were already ingested in the tenant, a path that differs from the existing document’s moves THAT document here; absent leaves it where it is.


optional deduplicationThreshold?: number

Defined in: src/types/ingestion.ts:501

Confidence threshold for deduplication (0.0 - 1.0).


optional derivedFrom?: string[]

Defined in: src/types/ingestion.ts:622

The documents (registry ids) the posted text was derived from. The text is only as proven as the least proven of them.


optional documentId?: string | null

Defined in: src/types/ingestion.ts:503

Optional document ID for tracking sort provenance.


optional domainInstructions?: string[]

Defined in: src/types/ingestion.ts:505

Domain-specific instructions for LLM extraction.


optional enableClauseExtraction?: boolean

Defined in: src/types/ingestion.ts:511

Extract contract clauses (obligations, permissions, prohibitions, definitions, conditions) as Psi-terms with document provenance. Needs an LLM; the stage is skipped when none is configured. Default: true.


optional enableDescriptionConsolidation?: boolean

Defined in: src/types/ingestion.ts:513

Enable cross-chunk description consolidation. Default: true.


optional enableDocumentEnrichment?: boolean

Defined in: src/types/ingestion.ts:519

Generate a document summary, key points and Q&A pairs, stored on the document term. Needs an LLM; the stage is skipped when none is configured. Default: true.


optional enableEntityFiltering?: boolean

Defined in: src/types/ingestion.ts:521

Enable post-extraction entity filtering. Default: true.


optional enableEvidenceEnrichment?: boolean

Defined in: src/types/ingestion.ts:533

Enable LLM-based evidence enrichment with statistical features. Default: false.


optional enableFcaDiscovery?: boolean

Defined in: src/types/ingestion.ts:540

Run the native FCA discovery phase over the document’s stored terms and report it in stats.fcaDiscovery, with its input and search coverage. Report only: no sort is registered (use analysis.sortDiscovery to register). Default: false.


optional enableFocusedExtraction?: boolean

Defined in: src/types/ingestion.ts:523

Enable focused extraction prompts. Default: true.


optional enableLlmCoreference?: boolean

Defined in: src/types/ingestion.ts:529

Resolve hard coreference cases (“Stanley Reed” vs “Justice Reed”) with one LLM call per candidate pair after structural deduplication. Breaks the zero-LLM-token guarantee of the local_ner strategy. Default: false.


optional enableSchemaDiscovery?: boolean

Defined in: src/types/ingestion.ts:531

Enable schema discovery before extraction. Default: true.


optional enableZeroDegreeFiltering?: boolean

Defined in: src/types/ingestion.ts:542

Enable zero-degree entity removal. Default: false.


optional evidenceDerivationConfig?: EvidenceDerivationConfigDto | null

Defined in: src/types/ingestion.ts:547

Configuration for deriving evidence terms from relational features. When set, entities with Reference features automatically get linked evidence terms.


optional extractionStrategy?: ExtractionStrategy

Defined in: src/types/ingestion.ts:562

Extraction strategy — an internally tagged discriminated union.

Wire format uses #[serde(tag = "type")]. Pass an object with a type discriminator.

{ type: 'llm' }
{ type: 'hybrid', nerConfidenceThreshold: 0.8 }

optional extractRelations?: boolean

Defined in: src/types/ingestion.ts:549

Whether to extract relations between entities.


optional forceExtractionStrategy?: boolean

Defined in: src/types/ingestion.ts:567

When true, skip the auto-upgrade from Llm to LocalNer even if NER is available. Used for A/B comparison tests. Default: false.


optional freshWork?: boolean

Defined in: src/types/ingestion.ts:602

Issue every model call fresh: the engine’s work cache is neither read nor written for this request. Grounding, admission and document provenance are unchanged; the calls are reported in workCache.bypassedModelCalls.


optional nerConfidenceThreshold?: number

Defined in: src/types/ingestion.ts:569

NER confidence threshold (0.0 - 1.0). Default: 0.5.


optional nerEntityLabels?: string[]

Defined in: src/types/ingestion.ts:571

Entity labels for NER extraction.


optional nerRelationConfidenceThreshold?: number

Defined in: src/types/ingestion.ts:573

NER relation confidence threshold (0.0 - 1.0). Default: 0.5.


optional nerRelationLabels?: string[]

Defined in: src/types/ingestion.ts:575

Relation labels for NER relation extraction.


optional previousDocumentId?: string | null

Defined in: src/types/ingestion.ts:588

Document-registry id (UUID) of the previous version of this document. When set, the new document joins that version family as version + 1.

An id that names no document of this tenant (or is not a UUID) is refused with 404 previous_document_not_found, and nothing is ingested. When the bytes were already ingested, the EXISTING document is linked as the next version instead; if that document already has other versions, the upload is refused with 409 duplicate_document_version_conflict. See DocumentVersionErrorCode.


optional promptPopulationId?: string | null

Defined in: src/types/ingestion.ts:486

Exact stored optimizer population for this tenant and owner (UUID). Requires ENABLE_PROMPT_OPTIMIZATION on the engine and a fresh JSON LLM run; it excludes promptVariantId.


optional promptVariantId?: string | null

Defined in: src/types/ingestion.ts:480

Stored extraction prompt variant; requires skipFingerprint and freshWork.


optional rejectAnonymizedReferences?: boolean

Defined in: src/types/ingestion.ts:594

Reject anonymized reference patterns from case studies. Filters patterns like “Monsieur X”, “société A”, “Company A”. Only active when entity filtering is enabled. Default: true.


optional skipFingerprint?: boolean

Defined in: src/types/ingestion.ts:596

Skip fingerprint check (force re-ingestion).


optional skipRelationCompletion?: boolean

Defined in: src/types/ingestion.ts:604

Skip automatic relation completion between extracted entities.


optional textProvenance?: IngestionTextProvenance | null

Defined in: src/types/ingestion.ts:617

Where the posted text came from, declared by the client on the markdown routes: exact (a person typed it, or it is a born-digital text), asr (a transcript), ocr (a recognised scan), model (a model wrote it: minutes, a summary, a translation). Absent or unrecognised is unknown.

While the engine holds unproven text, nothing a text that is not exact says becomes a fact before a person confirms its passages. The document and audio routes settle it themselves and ignore this field. The declaration and its principal are recorded on the document.