// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-mapping.asciidoc:37

[source, python]
----
resp = client.indices.create(
    index="elser-embeddings",
    mappings={
        "properties": {
            "content_embedding": {
                "type": "sparse_vector"
            },
            "content": {
                "type": "text"
            }
        }
    },
)
print(resp)
----
