Skip to content
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

[bug] Qdrant embedding store cannot be used in native image #1216

Open
florian-h05 opened this issue Jan 13, 2025 · 2 comments
Open

[bug] Qdrant embedding store cannot be used in native image #1216

florian-h05 opened this issue Jan 13, 2025 · 2 comments
Labels
area/embedding-store bug Something isn't working

Comments

@florian-h05
Copy link

When using quarkus-langchain4j-qdrant in Quarkus 3.17.6,
native image compilations works but native image startup fails with the following exception:

Failed to start application: java.lang.RuntimeException: Failed to start quarkus
        at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
        at io.quarkus.runtime.Application.start(Application.java:101)
        at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:121)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
        at io.quarkus.runner.GeneratedMain.main(Unknown Source)
Caused by: io.grpc.ManagedChannelProvider$ProviderNotFoundException: No functional channel service provider found. Try adding a dependency on the grpc-okhttp, grpc-netty, or grpc-netty-shaded artifact
        at io.grpc.ManagedChannelProvider.provider(ManagedChannelProvider.java:45)
        at io.grpc.ManagedChannelBuilder.forAddress(ManagedChannelBuilder.java:44)
        at io.qdrant.client.QdrantGrpcClient$Builder.createChannel(QdrantGrpcClient.java:226)
        at io.qdrant.client.QdrantGrpcClient$Builder.<init>(QdrantGrpcClient.java:177)
        at io.qdrant.client.QdrantGrpcClient.newBuilder(QdrantGrpcClient.java:93)
@geoand
Copy link
Collaborator

geoand commented Jan 13, 2025

Unfortunately this is a known limitation and one of the reasons we need #451

cc @zbendhiba

@florian-h05
Copy link
Author

Thanks for the quick response and good to know.

florian-h05 added a commit to llamara-ai/llamara-backend that referenced this issue Jan 13, 2025
Native image currently does not work with Qdrant embedding store, see
quarkiverse/quarkus-langchain4j#1216.

Signed-off-by: Florian Hotze <[email protected]>
@geoand geoand added bug Something isn't working area/embedding-store labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/embedding-store bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants