Skip to content

Commit c698dba

Browse files
authored
Merge pull request #550 from iceljc/master
fix compile issue
2 parents dd36d0b + 99544f8 commit c698dba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelMemoryStoreProvider.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public async Task<List<string>> GetCollections()
3434
return result;
3535
}
3636

37-
public async Task<List<string>> Search(string collectionName, float[] vector, int limit = 5)
37+
public async Task<List<string>> Search(string collectionName, float[] vector, string returnFieldName, int limit = 5, float confidence = 0.5f)
3838
{
3939
var results = _memoryStore.GetNearestMatchesAsync(collectionName, vector, limit);
4040

@@ -48,11 +48,12 @@ public async Task<List<string>> Search(string collectionName, float[] vector, in
4848

4949
}
5050

51-
public async Task Upsert(string collectionName, string id, float[] vector, string text, Dictionary<string, string>? payload = null)
51+
public async Task<bool> Upsert(string collectionName, string id, float[] vector, string text, Dictionary<string, string>? payload)
5252
{
5353
#pragma warning disable SKEXP0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5454
await _memoryStore.UpsertAsync(collectionName, MemoryRecord.LocalRecord(id.ToString(), text, null, vector));
5555
#pragma warning restore SKEXP0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
56+
return true;
5657
}
5758
}
5859
}

0 commit comments

Comments
 (0)