// This file is autogenerated, DO NOT EDIT
// mapping/types/semantic-text.asciidoc:42

[source, python]
----
resp = client.indices.create(
    index="my-index-000002",
    mappings={
        "properties": {
            "inference_field": {
                "type": "semantic_text",
                "inference_id": "my-openai-endpoint"
            }
        }
    },
)
print(resp)
----
