Skip to content

archaeo_super_prompt.modeling.struct_extract.types

source module archaeo_super_prompt.modeling.struct_extract.types

Types for structured data extraction models.

Classes

source class BaseInputForExtraction()

Bases : DataFrameModel

Uniformized base input struct for a FieldExtractor.

The Knowledge Generic type must be a TypedDict. It represents contextual metadata which is known or is supposed to be True after an inference before another prior model.

source class BaseInputForExtractionRowSchema()

Bases : NamedTuple

Base Schema for typesafely iterating over rows.

source class InputForExtractionWithSuggestedThesauri()

Bases : BaseInputForExtraction

For each intervention, a list of thesarus identifiers is given.

source class InputForExtractionWithSuggestedThesauriRowSchema()

Bases : BaseInputForExtractionRowSchema

For each intervention, a list of thesarus identifiers is given.