quarkiverse / quarkus-langchain4j

Quarkus Langchain4j extension
https://docs.quarkiverse.io/quarkus-langchain4j/dev/index.html
Apache License 2.0
139 stars 82 forks source link

Cover the whole Ollama API #181

Open sebastienblanc opened 10 months ago

sebastienblanc commented 10 months ago

I can see that Quarkus extension only covers the /api/generate Ollama endpoint but do we plan to cover everything like here https://github.com/langchain4j/langchain4j/blob/main/langchain4j-ollama/src/main/java/dev/langchain4j/model/ollama/OllamaApi.java ? I'm mostly interested in the embeddings endpoint. I can also try to contribute to this.

geoand commented 10 months ago

We could certainly use the embeddings and chat models :)

sebastienblanc commented 9 months ago

I was looking at the code and saw this https://github.com/quarkiverse/quarkus-langchain4j/blob/main/ollama/deployment/src/main/java/io/quarkiverse/langchain4j/ollama/deployment/OllamaProcessor.java#L56-L64 , did you start a first attempt for embedding ? Was it not working or just no time to implement it ?

geoand commented 9 months ago

I honestly don't remember :)