# Exact-Knn with python api

**URL:** <https://discuss.elastic.co/t/exact-knn-with-python-api/365542>\
**Category:** Elasticsearch\
**Tags:** language-clients, vector-search\
**Created:** [August 26, 2024, 10:45am UTC](https://discuss.elastic.co/t/exact-knn-with-python-api/365542 "2024-08-26T10:45:13Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [August 28, 2024, 5:14pm UTC](https://discuss.elastic.co/t/exact-knn-with-python-api/365542/7 "2024-08-28T17:14:17Z")

</div>

Thanks for all the follow up here. What version of Elastic are you using? Depending on your version you will want to make ensure that `query_vector` [contains floats and not doubles](https://www.elastic.co/guide/en/elasticsearch/reference/7.12/breaking-changes-7.4.html#_use_float_instead_of_double_for_query_vectors).

This post [about a similar issue](https://stackoverflow.com/questions/67313858/get-requesterror400-search-phase-execution-exception-runtime-error-for-c) may also be helpful here, as well as [this one](https://discuss.elastic.co/t/dense-vector-search-using-script-score/328375/2).

---

_[View the full topic](https://discuss.elastic.co/t/exact-knn-with-python-api/365542)._
