This commit is contained in:
Jicheng Lu 2025-08-15 10:01:01 -05:00
parent 5c3c723945
commit c212fbb4d6
2 changed files with 5 additions and 5 deletions

View file

@ -4,8 +4,8 @@ namespace BotSharp.Abstraction.VectorStorage.Models;
public class VectorPayloadValue
{
[JsonPropertyName("data")]
public object Data { get; set; } = null!;
[JsonPropertyName("data_value")]
public object DataValue { get; set; } = null!;
[JsonPropertyName("data_type")]
public VectorPayloadDataType DataType { get; set; } = VectorPayloadDataType.String;
@ -17,13 +17,13 @@ public class VectorPayloadValue
public VectorPayloadValue(object data, VectorPayloadDataType dataType)
{
Data = data;
DataValue = data;
DataType = dataType;
}
public override string ToString()
{
return $"{Data} ({DataType})";
return $"{DataValue} ({DataType})";
}
public static VectorPayloadValue BuildStringValue(string data)

View file

@ -230,7 +230,7 @@ public class QdrantDb : IVectorDb
{
foreach (var item in payload)
{
var value = item.Value.Data?.ToString();
var value = item.Value.DataValue?.ToString();
if (value == null || item.Key.IsEqualTo(KnowledgePayloadName.Text))
{
continue;