Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 593 Bytes

083b92e8ea264e49bf9fd40fc6a3094b.asciidoc

File metadata and controls

23 lines (22 loc) · 593 Bytes
resp = client.inference.put(
    task_type="text_embedding",
    inference_id="my-e5-model",
    inference_config={
        "service": "elasticsearch",
        "service_settings": {
            "adaptive_allocations": {
                "enabled": True,
                "min_number_of_allocations": 3,
                "max_number_of_allocations": 10
            },
            "num_threads": 1,
            "model_id": ".multilingual-e5-small"
        }
    },
)
print(resp)