def extract_multimodal_content(doc: dict, mapping: Dict) -> Dict:
    """Extract multimodal content from doc based on multimodal mapping"""
    multimodal_content = {}
    for field_name, weight in mapping["weights"].items():
        if field_name in doc:
            multimodal_content[field_name] = doc[field_name]
    return multimodal_content
Extract multimodal content from doc based on multimodal mapping
src/marqo/tensor_search/utils.py