-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'JsonNumberHandlingAttribute' is only valid on a number or a collection of numbers when applied to a property or field. #1129
Comments
@futugyou Are you writing a GUID for your Scored Point ID? Qdrant only allows a valid GUID as string or an int. Would you mind sharing an example of your Vector record? Cc. @craigomatic |
@tawalke putting a Guid as id, the error doesn't occurs:
|
PR #1313 was merged and should have resolved this, if you have a moment to verify that would be appreciated |
This issue seems to still be occurring in "0.15.230531.5-preview". I've just updated to the latest release & with no other code changes, have just run into this issue. Id was previously set using strings in our vector db. IE:
Not sure if we need to change anything here, but my understanding of QDrant is that a string value or an int should be accepted. |
You may need to use a guid for the id see #794 (comment) The next step in improving qdrant support is to add guid validation when a string is used as the id |
The id in "SaveInformationAsync" is not used as the id in Qdrant. See in QdrantMemoryStore:
where "record.Metadata.Id" is the id from SaveInformationAsync if i did not miss something. |
Ok, so fortunately I'm in a position I can clear the vector DB and rebuild the data stored. However, the following code is still throwing this error in the latest nuget package.
|
Looks like the
@craigomatic, The copilot chat app sample is giving the same error. The project is using SK version 0.15.230531.5-preview. Please share if there is a work around for the copilot chat app sample to make with work with Qdrant. Stack trace:
|
Try updating to the latest nuget that was just released: https://www.nuget.org/packages/Microsoft.SemanticKernel/0.15.230609.2-preview |
Worked! Thank you. |
Describe the bug
'JsonNumberHandlingAttribute' is only valid on a number or a collection of numbers when applied to a property or field.
To Reproduce
Steps to reproduce the behavior:
1.QdrantVectorDbClient.cs Line-132
Expected behavior
'JsonNumberHandlingAttribute' is only valid on a number or a collection of numbers when applied to a property or field. See member 'Id' on type 'Microsoft.SemanticKernel.Connectors.Memory.Qdrant.Http.ApiSchema.SearchVectorsResponse+ScoredPoint'.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: