How can I inject QdrantVectorStore with Semantic Kernel’s DI #12308
Replies: 2 comments
-
Hi @CristianoPi, can you check the inner exception of the VectorStoreException that you are getting. It should provide more detail about the type of failure. Post the detail here and we can help troubleshoot further. Also, when running Qdrant running locally in a docker container, you typically need to only specify host as "localhost" for it to work, e.g. builder.Services.AddQdrantVectorStore("localhost"); QdrantVectorStore only supports gRPC, so the port param has to be 6334 (if that's what you have exposed on the docker container for gRPC), but 6334 also happens to be the default value for the port parameter. Some more info here: https://learn.microsoft.com/en-us/semantic-kernel/concepts/vector-store-connectors/out-of-the-box-connectors/qdrant-connector |
Beta Was this translation helpful? Give feedback.
-
Closing the discussion due to lack of additional info to troubleshoot further. Feel free to reopen with more info. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋,
I’m working with Semantic Kernel (.NET) and trying to hook up Qdrant as my vector store via dependency injection, instead of instantiating the client manually.
What I’m doing
What fails
The first time I actually enumerate a search:
await foreach (var rec in collection.SearchAsync(vector, top:5)) { ... }
I get
VectorStoreException: Call to vector store failed.
Environment
9.0
1.52.1
qdrant/qdrant:1.9.2
(ports 6333/6334 exposed)1.52
1.52-preview
Beta Was this translation helpful? Give feedback.
All reactions