-
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
.Net: Bug: Qdrant CreateCollectionIfNotExistsAsync fails for the first time #9799
Comments
Hi, In addition to that error, when I want to search it also fails.
On the other hand, the same code works perfectly with Redis I have chosen Qdrant and Redis, because they seem to be the most supported store connectors https://learn.microsoft.com/en-us/semantic-kernel/concepts/vector-store-connectors/out-of-the-box-connectors/ |
@panicoenlaxbox, thanks for logging these issues and the detailed repro steps. Much appreciated. The first is definitely a miss, and I've submitted a PR to fix it. With regards to the error you are seeing on search. What version / type of Qdrant are you using? E.g. is it docker running locally or cloud and what version are you using? From the error you are seeing it sounds like the call we are making isn't available in the service, which points at an api mismatch. Our tests are passing against the latest docker image of Qdrant. |
Hi @westey-m,
I have pulled the newest version and, the vector search works fine! :)
Thank you so much for your support. |
@panicoenlaxbox, we will release the bug fix with our next release (hopefully this week). In the mean time, the bug is in the index creation for Tags, so if you remove IsFilterable from Tags, it'll work around the issue for now. [VectorStoreRecordData]
public string[] Tags { get; set; } |
### Motivation and Context microsoft#9799 ### Description Missed the mapping for enumerable strings for index creation, so needed to add it, and a proper check for unsupported types. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
Describe the bug
An error occurs when creating a Qdrant collection for the first time. However, the collection is created. A subsequent run works fine.
The problem is in
await collection.CreateCollectionIfNotExistsAsync();
To Reproduce
Expected behavior
Don't fail the first time
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
Relevant packages used (I think):
Additional context
For now, I can go ahead with this:
The text was updated successfully, but these errors were encountered: