Skip to content

Commit 690590f

Browse files
author
Jicheng Lu
committed
minor change
1 parent 3d07fa5 commit 690590f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Plugins/BotSharp.Plugin.Qdrant/QdrantDb.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,13 @@ public async Task<bool> Upsert(string collectionName, Guid id, float[] vector, s
230230
{
231231
foreach (var item in payload)
232232
{
233-
if (item.Value == null)
233+
if (item.Value == null || item.Key.IsEqualTo(KnowledgePayloadName.Text))
234234
{
235235
continue;
236236
}
237237

238238
var value = item.Value.DataValue?.ConvertToString();
239-
if (string.IsNullOrEmpty(value) || item.Key.IsEqualTo(KnowledgePayloadName.Text))
239+
if (string.IsNullOrEmpty(value))
240240
{
241241
continue;
242242
}

0 commit comments

Comments
 (0)