Overview
Here you will find a quick view of available ready-to-use integration capabilities and all our supported integrations and models for every LLM provider supported on LangChain4j so far.
We are making a great effort to have most of the functions enabled according to the progress and updates of the LLM providers and java features.
Capabilities
- Native image: You can use this LLM integration for AOT compilation using GraalVM CE or GraalVM Oracle for native image generation.
- Sync Completion: Supports the implementation of
text-completion
andchat-completion
models in a synchronous way. This is the most common usage. - Streaming Completion: Supports
streaming
the model response back fortext-completion
orchat-completion
models, handling each event inStreamingResponseHandler<AiMessage>
class. View examples here - Embeddings: Supports the implementation of
text-embedding
models. Embeddings make it easy to add custom data without fine-tuning. Generally used with RAG (Retrieval-Augmented Generation) and Embedding Stores. - Image Generation: Supports the implementation of
text-to-image
models to create realistic and coherent images from scratch. View examples here - Scoring: Understands the implementation of scoring models to improve created models by re-organizing their results based on certain parameters.
- Function Calling: Supports the implementation of
function-calling
models to call a function as aTool
. View examples here
note
of course some LLM providers offer large multimodal model (accepting text or image inputs) and it would cover more than one capability.
Supported LLM Integrations
Provider | Native Image | Sync Completion | Streaming Completion | Embedding | Image Generation | Scoring | Function Calling |
---|---|---|---|---|---|---|---|
OpenAI | ✅ | ✅ | ✅ | ✅ | ✅ | ||
Azure OpenAI | ✅ | ✅ | ✅ | ✅ | ✅ | ||
Hugging Face | ✅ | ✅ | |||||
Amazon Bedrock | ✅ | ✅ | ✅ | ||||
Google Vertex AI Gemini | ✅ | ✅ | ✅ | ✅ | |||
Google Vertex AI | ✅ | ✅ | ✅ | ✅ | |||
Mistral AI | ✅ | ✅ | ✅ | ✅ | |||
DashScope | ✅ | ✅ | ✅ | ||||
LocalAI | ✅ | ✅ | ✅ | ✅ | |||
Ollama | ✅ | ✅ | ✅ | ||||
Cohere | ✅ | ||||||
Qianfan | ✅ | ✅ | ✅ | ✅ | |||
ChatGLM | ✅ | ||||||
Nomic | ✅ | ||||||
Anthropic | ✅ | ✅ | |||||
Zhipu AI | ✅ | ✅ | ✅ | ✅ |