Skip to content

Commit 3bacef9

Browse files
TsengSRAmotiqKP
authored andcommitted
Fixes Qdrant 1.17 issue with returning empty vectors
1 parent 4d67592 commit 3bacef9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dotnet/src/VectorData/Qdrant/QdrantMapper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ static void PopulateVectorProperty(TRecord record, VectorOutput value, VectorPro
134134
record,
135135
(Nullable.GetUnderlyingType(property.Type) ?? property.Type) switch
136136
{
137-
var t when t == typeof(ReadOnlyMemory<float>) => new ReadOnlyMemory<float>(value.Data.ToArray()),
138-
var t when t == typeof(Embedding<float>) => new Embedding<float>(value.Data.ToArray()),
139-
var t when t == typeof(float[]) => value.Data.ToArray(),
137+
var t when t == typeof(ReadOnlyMemory<float>) => new ReadOnlyMemory<float>(value.Dense.Data.ToArray()),
138+
var t when t == typeof(Embedding<float>) => new Embedding<float>(value.Dense.Data.ToArray()),
139+
var t when t == typeof(float[]) => value.Dense.Data.ToArray(),
140140

141141
_ => throw new UnreachableException()
142142
});

0 commit comments

Comments
 (0)