From ff9f8a8cadcaf567fbd52776b1b033b57f94ca9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20ABANOZ?= Date: Sat, 6 Apr 2024 22:50:39 +0300 Subject: [PATCH] Update ISemanticMemoryClientExtensions.cs fix bug related to issue #851. Unused parameter relevanceThreshold is passed to SearchAsync method to ensure only relevant documents are fetched. --- webapi/Extensions/ISemanticMemoryClientExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapi/Extensions/ISemanticMemoryClientExtensions.cs b/webapi/Extensions/ISemanticMemoryClientExtensions.cs index 59d3d9cbb..b6782faf7 100644 --- a/webapi/Extensions/ISemanticMemoryClientExtensions.cs +++ b/webapi/Extensions/ISemanticMemoryClientExtensions.cs @@ -99,7 +99,7 @@ await memoryClient.SearchAsync( indexName, filter, null, - 0, + relevanceThreshold, // minRelevance param resultCount, cancellationToken);