// This file is autogenerated, DO NOT EDIT
// mapping/types/dense-vector.asciidoc:162

[source, python]
----
resp = client.indices.create(
    index="my-byte-quantized-index",
    mappings={
        "properties": {
            "my_vector": {
                "type": "dense_vector",
                "dims": 4,
                "index": True,
                "index_options": {
                    "type": "int4_hnsw"
                }
            }
        }
    },
)
print(resp)
----
