// This file is autogenerated, DO NOT EDIT
// search/search-your-data/knn-search.asciidoc:190

[source, python]
----
resp = client.indices.create(
    index="byte-image-index",
    mappings={
        "properties": {
            "byte-image-vector": {
                "type": "dense_vector",
                "element_type": "byte",
                "dims": 2
            },
            "title": {
                "type": "text"
            }
        }
    },
)
print(resp)
----
