# Optimize K value with K-Elbow algorithm in K-NN search

**URL:** <https://forum.opensearch.org/t/optimize-k-value-with-k-elbow-algorithm-in-k-nn-search/26347>\
**Category:** k-NN\
**Created:** [August 14, 2025, 1:42am UTC](https://forum.opensearch.org/t/optimize-k-value-with-k-elbow-algorithm-in-k-nn-search/26347 "2025-08-14T01:42:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric.bui](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@eric.bui](https://forum.opensearch.org/u/eric.bui)\
**Post date:** [August 14, 2025, 1:42am UTC](https://forum.opensearch.org/t/optimize-k-value-with-k-elbow-algorithm-in-k-nn-search/26347/1 "2025-08-14T01:42:41Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser): latest

**Describe the issue** :

Should we use K-elbow algorithm by ourselves to find the most optimal value of param K in KNN or semantic search?

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [October 13, 2025, 1:43am UTC](https://forum.opensearch.org/t/optimize-k-value-with-k-elbow-algorithm-in-k-nn-search/26347/2 "2025-10-13T01:43:30Z")

</div>

Closed on October 13, 2025, 1:43am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
