Skip to content

Interface: IngestionConfigDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Ingestion / IngestionConfigDto

Interface: IngestionConfigDto

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

Configuration for ingestion.

Remarks

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

Properties

autoCreateSorts?

optional autoCreateSorts: boolean

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

Whether to automatically create new sorts for unrecognized entity types.


batchSize?

optional batchSize: number

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

Batch size for parallel processing.


deduplicationThreshold?

optional deduplicationThreshold: number

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

Confidence threshold for deduplication (0.0 - 1.0).


documentId?

optional documentId: string | null

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

Optional document ID for tracking sort provenance.


domainInstructions?

optional domainInstructions: string[]

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

Domain-specific instructions for LLM extraction.


enableDescriptionConsolidation?

optional enableDescriptionConsolidation: boolean

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

Enable cross-chunk description consolidation. Default: true.


enableEntityFiltering?

optional enableEntityFiltering: boolean

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

Enable post-extraction entity filtering. Default: true.


enableEvidenceEnrichment?

optional enableEvidenceEnrichment: boolean

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

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


enableFocusedExtraction?

optional enableFocusedExtraction: boolean

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

Enable focused extraction prompts. Default: true.


enableSchemaDiscovery?

optional enableSchemaDiscovery: boolean

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

Enable schema discovery before extraction. Default: true.


enableZeroDegreeFiltering?

optional enableZeroDegreeFiltering: boolean

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

Enable zero-degree entity removal. Default: false.


evidenceDerivationConfig?

optional evidenceDerivationConfig: EvidenceDerivationConfigDto | null

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

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


extractionStrategy?

optional extractionStrategy: ExtractionStrategy

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

Extraction strategy — an internally tagged discriminated union.

Remarks

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

Example

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

extractRelations?

optional extractRelations: boolean

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

Whether to extract relations between entities.


forceExtractionStrategy?

optional forceExtractionStrategy: boolean

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

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


maxSchemaTokens?

optional maxSchemaTokens: number

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

Maximum tokens for schema context passed to LLM.


nerConfidenceThreshold?

optional nerConfidenceThreshold: number

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

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


nerEntityLabels?

optional nerEntityLabels: string[]

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

Entity labels for NER extraction.


nerRelationConfidenceThreshold?

optional nerRelationConfidenceThreshold: number

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

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


nerRelationLabels?

optional nerRelationLabels: string[]

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

Relation labels for NER relation extraction.


rejectAnonymizedReferences?

optional rejectAnonymizedReferences: boolean

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

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.


skipFingerprint?

optional skipFingerprint: boolean

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

Skip fingerprint check (force re-ingestion).


skipRelationCompletion?

optional skipRelationCompletion: boolean

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

Skip automatic relation completion between extracted entities.