Interface: IngestionConfigDto
@kortexya/reasoninglayer / IngestionConfigDto
Interface: IngestionConfigDto
Section titled “Interface: IngestionConfigDto”Defined in: src/types/ingestion.ts:478
Configuration for ingestion.
Remarks
Section titled “Remarks”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.
Properties
Section titled “Properties”autoCreateSorts?
Section titled “autoCreateSorts?”
optionalautoCreateSorts?:boolean
Defined in: src/types/ingestion.ts:488
Whether to automatically create new sorts for unrecognized entity types.
collectionPath?
Section titled “collectionPath?”
optionalcollectionPath?: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.
Remarks
Section titled “Remarks”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.
deduplicationThreshold?
Section titled “deduplicationThreshold?”
optionaldeduplicationThreshold?:number
Defined in: src/types/ingestion.ts:501
Confidence threshold for deduplication (0.0 - 1.0).
derivedFrom?
Section titled “derivedFrom?”
optionalderivedFrom?: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.
documentId?
Section titled “documentId?”
optionaldocumentId?:string|null
Defined in: src/types/ingestion.ts:503
Optional document ID for tracking sort provenance.
domainInstructions?
Section titled “domainInstructions?”
optionaldomainInstructions?:string[]
Defined in: src/types/ingestion.ts:505
Domain-specific instructions for LLM extraction.
enableClauseExtraction?
Section titled “enableClauseExtraction?”
optionalenableClauseExtraction?: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.
enableDescriptionConsolidation?
Section titled “enableDescriptionConsolidation?”
optionalenableDescriptionConsolidation?:boolean
Defined in: src/types/ingestion.ts:513
Enable cross-chunk description consolidation. Default: true.
enableDocumentEnrichment?
Section titled “enableDocumentEnrichment?”
optionalenableDocumentEnrichment?: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.
enableEntityFiltering?
Section titled “enableEntityFiltering?”
optionalenableEntityFiltering?:boolean
Defined in: src/types/ingestion.ts:521
Enable post-extraction entity filtering. Default: true.
enableEvidenceEnrichment?
Section titled “enableEvidenceEnrichment?”
optionalenableEvidenceEnrichment?:boolean
Defined in: src/types/ingestion.ts:533
Enable LLM-based evidence enrichment with statistical features. Default: false.
enableFcaDiscovery?
Section titled “enableFcaDiscovery?”
optionalenableFcaDiscovery?: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.
enableFocusedExtraction?
Section titled “enableFocusedExtraction?”
optionalenableFocusedExtraction?:boolean
Defined in: src/types/ingestion.ts:523
Enable focused extraction prompts. Default: true.
enableLlmCoreference?
Section titled “enableLlmCoreference?”
optionalenableLlmCoreference?: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.
enableSchemaDiscovery?
Section titled “enableSchemaDiscovery?”
optionalenableSchemaDiscovery?:boolean
Defined in: src/types/ingestion.ts:531
Enable schema discovery before extraction. Default: true.
enableZeroDegreeFiltering?
Section titled “enableZeroDegreeFiltering?”
optionalenableZeroDegreeFiltering?:boolean
Defined in: src/types/ingestion.ts:542
Enable zero-degree entity removal. Default: false.
evidenceDerivationConfig?
Section titled “evidenceDerivationConfig?”
optionalevidenceDerivationConfig?: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.
extractionStrategy?
Section titled “extractionStrategy?”
optionalextractionStrategy?:ExtractionStrategy
Defined in: src/types/ingestion.ts:562
Extraction strategy — an internally tagged discriminated union.
Remarks
Section titled “Remarks”Wire format uses #[serde(tag = "type")]. Pass an object with a type discriminator.
Example
Section titled “Example”{ type: 'llm' }{ type: 'hybrid', nerConfidenceThreshold: 0.8 }extractRelations?
Section titled “extractRelations?”
optionalextractRelations?:boolean
Defined in: src/types/ingestion.ts:549
Whether to extract relations between entities.
forceExtractionStrategy?
Section titled “forceExtractionStrategy?”
optionalforceExtractionStrategy?: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.
freshWork?
Section titled “freshWork?”
optionalfreshWork?: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.
nerConfidenceThreshold?
Section titled “nerConfidenceThreshold?”
optionalnerConfidenceThreshold?:number
Defined in: src/types/ingestion.ts:569
NER confidence threshold (0.0 - 1.0). Default: 0.5.
nerEntityLabels?
Section titled “nerEntityLabels?”
optionalnerEntityLabels?:string[]
Defined in: src/types/ingestion.ts:571
Entity labels for NER extraction.
nerRelationConfidenceThreshold?
Section titled “nerRelationConfidenceThreshold?”
optionalnerRelationConfidenceThreshold?:number
Defined in: src/types/ingestion.ts:573
NER relation confidence threshold (0.0 - 1.0). Default: 0.5.
nerRelationLabels?
Section titled “nerRelationLabels?”
optionalnerRelationLabels?:string[]
Defined in: src/types/ingestion.ts:575
Relation labels for NER relation extraction.
previousDocumentId?
Section titled “previousDocumentId?”
optionalpreviousDocumentId?: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.
Remarks
Section titled “Remarks”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.
promptPopulationId?
Section titled “promptPopulationId?”
optionalpromptPopulationId?: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.
promptVariantId?
Section titled “promptVariantId?”
optionalpromptVariantId?:string|null
Defined in: src/types/ingestion.ts:480
Stored extraction prompt variant; requires skipFingerprint and freshWork.
rejectAnonymizedReferences?
Section titled “rejectAnonymizedReferences?”
optionalrejectAnonymizedReferences?: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.
skipFingerprint?
Section titled “skipFingerprint?”
optionalskipFingerprint?:boolean
Defined in: src/types/ingestion.ts:596
Skip fingerprint check (force re-ingestion).
skipRelationCompletion?
Section titled “skipRelationCompletion?”
optionalskipRelationCompletion?:boolean
Defined in: src/types/ingestion.ts:604
Skip automatic relation completion between extracted entities.
textProvenance?
Section titled “textProvenance?”
optionaltextProvenance?: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.
Remarks
Section titled “Remarks”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.