// This file is autogenerated, DO NOT EDIT
// search/search-your-data/ingest-vectors.asciidoc:35

[source, python]
----
resp = client.indices.create(
    index="amazon-reviews",
    mappings={
        "properties": {
            "review_vector": {
                "type": "dense_vector",
                "dims": 8,
                "index": True,
                "similarity": "cosine"
            },
            "review_text": {
                "type": "text"
            }
        }
    },
)
print(resp)
----
