kernel-memory
kernel-memory copied to clipboard
fix issue with elasticsearch extension to respect limit and minReleva…
…nce parameters when calling GetSimilarListAsync API
Motivation and Context (Why the change? What's the scenario?)
Fixing issue https://github.com/microsoft/kernel-memory/issues/934
High level description (Approach, Design)
using ElasticSearch Client .Size(limit) clause during query. using .Similarity(min score) to fix minRelevance (after adjusting the score value based on cosine similarity as per https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search.html#knn-similarity-search)
@microsoft-github-policy-service agree
Pausing this while we wait for SK Vector Store relase and integration.
Closing as part of repository maintenance - no further action planned on this issue.