Skip to content

Mappings

Mappings can be used for granular control over a field. Currently, it is only supported for the multimodal_combination field. The mappings object is given as a query string parameter, accompanying an add_documents call

Mappings object

Defining the mapping for multimodal_combination fields.

{
    "my_combination_field": {
        "type": "multimodal_combination",
        "weights": {
            "my_image": 0.5,
            "some_text": 0.5
    },
    "my_2nd_combination_field": {
        "type": "multimodal_combination",
        "weights": {
            "Title": -2.5,
            "Description": 0.3
    }
}