Skip to content

Commit 31bfdb1

Browse files
craigomaticname
authored andcommitted
Fix bug preventing Qdrant points with numeric id from being consumed (microsoft#1075)
### Motivation and Context Qdrant supports both string and int for the id of a ScoredPoint. This minor change allows the serialiser to handle both of these scenarios while retaining string as the type for SK. Thank you to @AwesomeYuer for the heads up in microsoft#794 ### Description Added a single attribute decorating the attribute that massages ints to string and leaves string as-is.
1 parent ea093f8 commit 31bfdb1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎dotnet/src/Connectors/Connectors.Memory.Qdrant/Http/ApiSchema/SearchVectorsResponse.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ internal sealed class SearchVectorsResponse : QdrantResponse
1111
internal sealed class ScoredPoint
1212
{
1313
[JsonPropertyName("id")]
14+
[JsonNumberHandling(JsonNumberHandling.WriteAsString)]
1415
public string Id { get; }
1516

1617
[JsonPropertyName("version")]

0 commit comments

Comments
 (0)