Skip to content

Quarkus Langchain4j Image Support For Local Ollama Models #48123

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

Closed
myfear opened this issue May 29, 2025 · 2 comments
Closed

Quarkus Langchain4j Image Support For Local Ollama Models #48123

myfear opened this issue May 29, 2025 · 2 comments
Labels
kind/enhancement New feature or request

Comments

@myfear
Copy link

myfear commented May 29, 2025

Description

I want to work with MoE models like qwen2.5vl locally.
Using the quarkus-langchain4j-ollama extensions already let's me use the following code:

  Image langchainImage = Image.builder()
                    .base64Data(base64String) // Use the base64 encoded string
                    .mimeType(mimeType)
                    .build();

But using it as input for the AIService right now:

String imageDescription = imageService.describeImage(langchainImage);

Leads to:

dev.langchain4j.exception.InternalServerException: {"error":"Failed to create new sequence: failed to process inputs: image: unknown format\n"}

Example Code that I would like to see work: https://github.com/myfear/ejq_substack_articles/blob/main/quarkus-image-describer/src/main/java/org/acme/ImageDescriberResource.java

Implementation ideas

No response

@myfear myfear added the kind/enhancement New feature or request label May 29, 2025
@myfear
Copy link
Author

myfear commented May 29, 2025

Moved to Quarkus Langchain4j quarkiverse/quarkus-langchain4j#1531

@geoand
Copy link
Contributor

geoand commented May 29, 2025

🙏🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants