Skip to content

'JSON deserialization for type 'ChromaDB.Client.Models.Responses.CollectionEntriesQueryResponse' was missing required properties, including the following: data' #81

@mubarak0443

Description

@mubarak0443

I am getting this error "'JSON deserialization for type 'ChromaDB.Client.Models.Responses.CollectionEntriesQueryResponse' was missing required properties, including the following: data'
"
I am using dotnet C# and getting this issue while retreving query...not sure ...please help..

Code :

var queryEmbedding = new ReadOnlyMemory(new float[] { 0.15f, 0.25f, 0.35f, 0.45f }); // A query embedding
var queryResults = await collectionClient.Query(
queryEmbeddings: new List<ReadOnlyMemory> { queryEmbedding }, // Changed from array to List
nResults: 1, // Number of results to return
include: ChromaQueryInclude.Metadatas | ChromaQueryInclude.Documents | ChromaQueryInclude.Distances
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions