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

[source, python]
----
resp = client.search(
    index="image-index",
    knn={
        "field": "image-vector",
        "query_vector": [
            -5,
            9,
            -12
        ],
        "k": 10,
        "num_candidates": 100,
        "rescore_vector": {
            "oversample": 2
        }
    },
    fields=[
        "title",
        "file-type"
    ],
)
print(resp)
----
