Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.38 KB

File metadata and controls

31 lines (22 loc) · 1.38 KB

EnrichmentInputMapping

Maps a document field or constant to a retriever input parameter. Defines how to construct retriever inputs from the document being enriched. Attributes: input_key: The retriever input parameter name source: Where to get the value from (document field or constant)

Properties

Name Type Description Notes
input_key str The retriever input parameter name
source InputMappingSource Where to get the value from (document field or constant)

Example

from mixpeek.models.enrichment_input_mapping import EnrichmentInputMapping

# TODO update the JSON string below
json = "{}"
# create an instance of EnrichmentInputMapping from a JSON string
enrichment_input_mapping_instance = EnrichmentInputMapping.from_json(json)
# print the JSON string representation of the object
print(EnrichmentInputMapping.to_json())

# convert the object into a dict
enrichment_input_mapping_dict = enrichment_input_mapping_instance.to_dict()
# create an instance of EnrichmentInputMapping from a dict
enrichment_input_mapping_from_dict = EnrichmentInputMapping.from_dict(enrichment_input_mapping_dict)

[Back to Model list] [Back to API list] [Back to README]