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

[DOCS] Update overview integration table with new integrations #766

Merged
merged 34 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
160d53d
Add Mistral AI model provider
czelabueno Jan 15, 2024
0cf6b07
MistralAI chat completions req/resp
czelabueno Jan 15, 2024
d2a47dc
Mistral AI embeddings req/resp
czelabueno Jan 15, 2024
f656f61
Mistral AI Taken usage
czelabueno Jan 15, 2024
62be0b2
Mistral AI models req/resp
czelabueno Jan 15, 2024
9c95a28
Mistral AI Client code
czelabueno Jan 15, 2024
4e6f008
Mistral AI Chat model
czelabueno Jan 15, 2024
c858389
Mistral AI Chat Streaming model support
czelabueno Jan 15, 2024
a3c9fc8
Mistral AI embedding model support
czelabueno Jan 15, 2024
2293142
Mistral Ai get models from API
czelabueno Jan 15, 2024
06e7cce
Mistral AI chat model tests
czelabueno Jan 15, 2024
13f056b
Mistral AI embeddings model tests
czelabueno Jan 15, 2024
ba19306
Mistral AI chat streaming model tests
czelabueno Jan 15, 2024
f09458f
Mistral AI get models tests
czelabueno Jan 15, 2024
63d6924
Merge branch 'main' into main
langchain4j Jan 16, 2024
9117ee3
MistralAI - renamed classes to the project convention names to avoid …
czelabueno Jan 17, 2024
2c1a22f
Mistral AI logRequestResponse and commit suggestions
czelabueno Jan 19, 2024
6b2e2b1
Merge branch 'main' into main
langchain4j Jan 24, 2024
0d87349
Mistral AI token masking until 4 symbols
czelabueno Jan 24, 2024
7da8928
MistralAI update chat model enum
czelabueno Jan 24, 2024
79237cc
MistralAI update embedding model enum
czelabueno Jan 24, 2024
b51d0a5
Mistral AI fix get usageInfo from last chat completion response
czelabueno Jan 24, 2024
2078d32
Mistral AI fix logging streaming and rename enums
czelabueno Jan 24, 2024
49dd2e4
Merge branch 'main' into main
langchain4j Jan 25, 2024
4d44c3b
Merge conflict with upstream repo
czelabueno Jan 29, 2024
134a9dd
Merge remote-tracking branch 'upstream/main'
czelabueno Feb 5, 2024
d982a78
Merge remote-tracking branch 'upstream/main'
czelabueno Feb 10, 2024
004e942
Merge remote-tracking branch 'upstream/main'
czelabueno Feb 23, 2024
08938d7
Merge remote-tracking branch 'upstream/main'
czelabueno Mar 8, 2024
1d902d7
Merge remote-tracking branch 'upstream/main'
czelabueno Mar 11, 2024
f7028e7
Merge remote-tracking branch 'upstream/main'
czelabueno Mar 15, 2024
9ddb2ce
update overview integration table
czelabueno Mar 16, 2024
53a6840
Update docs/docs/integrations/index.mdx
LizeRaes Mar 16, 2024
507e748
Update docs/docs/integrations/index.mdx
LizeRaes Mar 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 18 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,22 +295,24 @@ See example [here](https://github.com/langchain4j/langchain4j-examples/blob/main
System.out.println(answer); // Hello! How can I assist you today?
```
## Supported LLM Integrations ([Docs](https://docs.langchain4j.dev/category/integrations))
| Provider | Native Image | [Completion](https://docs.langchain4j.dev/category/language-models) | [Streaming](https://docs.langchain4j.dev/integrations/language-models/response-streaming) | [Async Completion](https://docs.langchain4j.dev/category/language-models) | [Async Streaming](https://docs.langchain4j.dev/integrations/language-models/response-streaming) | [Embedding](https://docs.langchain4j.dev/category/embedding-models) | [Image Generation](https://docs.langchain4j.dev/category/image-models) | [ReRanking](https://docs.langchain4j.dev/category/reranking-models)
|---------------------------------------------------------------------------------------------------------| ------------- | ----------- | ------------- | --------- |--------------------------------| ------------ |---------------------------------------------------------------------------------------------|---------------|
| [OpenAI](https://docs.langchain4j.dev/integrations/language-models/openai) | | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| [Azure OpenAI](https://docs.langchain4j.dev/integrations/language-models/azure-openai) | | ✅ | ✅ | | | ✅ | ✅ |
| [Hugging Face](https://docs.langchain4j.dev/integrations/language-models/huggingface) | | ✅ | | ✅ | | ✅ | | |
| [Amazon Bedrock](https://docs.langchain4j.dev/integrations/language-models/amazon-bedrock) | | ✅ | | | | ✅ |
| [Google Vertex AI Gemini](https://docs.langchain4j.dev/integrations/language-models/google-gemini) | | ✅ | ✅ | ✅ | ✅ | | |
| [Google Vertex AI](https://docs.langchain4j.dev/integrations/language-models/google-palm) | ✅ | ✅ | | ✅ | | ✅ | ✅ |
| [Mistral AI](https://docs.langchain4j.dev/integrations/language-models/mistralai) | | ✅ | ✅ | ✅ | ✅ | ✅ |
| [DashScope](https://docs.langchain4j.dev/integrations/language-models/dashscope) | | ✅ | ✅ | | ✅ | ✅ |
| [LocalAI](https://docs.langchain4j.dev/integrations/language-models/localai) | | ✅ | ✅ | ✅ | | ✅ | |
| [Ollama](https://docs.langchain4j.dev/integrations/language-models/ollama) | | ✅ | ✅ | ✅ | ✅ | ✅ | |
| [Cohere](https://docs.langchain4j.dev/integrations/reranking-models/cohere) | | | | | | | | ✅ |
| [Qianfan](https://docs.langchain4j.dev/integrations/language-models/qianfan) | | ✅ | ✅ | ✅ | ✅ | ✅ | |
| [ChatGLM](https://docs.langchain4j.dev/integrations/language-models/chatglm) | | ✅ | | | | |
| [Nomic](https://docs.langchain4j.dev/integrations/language-models/nomic) | | | | | | ✅ | |
| Provider | Native Image | [Sync Completion](https://docs.langchain4j.dev/category/language-models) | [Streaming Completion](https://docs.langchain4j.dev/integrations/language-models/response-streaming) | [Embedding](https://docs.langchain4j.dev/category/embedding-models) | [Image Generation](https://docs.langchain4j.dev/category/image-models) | [Scoring](https://docs.langchain4j.dev/category/scoring-models) | [Function Calling](https://docs.langchain4j.dev/tutorials/tools)
|----------------------------------------------------------------------------------------------------| ------------- |---------------------------------------------------------------------| ----------- | ------ |-------------------------------| ------ |--------------------------------------------------------------------------------------------|
| [OpenAI](https://docs.langchain4j.dev/integrations/language-models/openai) | | ✅ | ✅ | ✅ | ✅ | | ✅ |
| [Azure OpenAI](https://docs.langchain4j.dev/integrations/language-models/azure-openai) | | ✅ | ✅ | ✅ | ✅ | | ✅ |
| [Hugging Face](https://docs.langchain4j.dev/integrations/language-models/huggingface) | | ✅ | | ✅ | | | | |
| [Amazon Bedrock](https://docs.langchain4j.dev/integrations/language-models/amazon-bedrock) | | ✅ | |✅ | ✅ | | |
| [Google Vertex AI Gemini](https://docs.langchain4j.dev/integrations/language-models/google-gemini) | | ✅ | ✅ | | ✅ | | ✅ |
| [Google Vertex AI](https://docs.langchain4j.dev/integrations/language-models/google-palm) | ✅ | ✅ | | ✅ | ✅ | | |
| [Mistral AI](https://docs.langchain4j.dev/integrations/language-models/mistralai) | | ✅ | ✅ | ✅ | | |✅ |
| [DashScope](https://docs.langchain4j.dev/integrations/language-models/dashscope) | | ✅ | ✅ |✅ | | | |
| [LocalAI](https://docs.langchain4j.dev/integrations/language-models/localai) | | ✅ | ✅ | ✅ | | | ✅ |
| [Ollama](https://docs.langchain4j.dev/integrations/language-models/ollama) | | ✅ | ✅ | ✅ | | | |
| [Cohere](https://docs.langchain4j.dev/integrations/reranking-models/cohere) | | | | | | ✅| |
| [Qianfan](https://docs.langchain4j.dev/integrations/language-models/qianfan) | | ✅ | ✅ | ✅ | | |✅ |
| [ChatGLM](https://docs.langchain4j.dev/integrations/language-models/chatglm) | | ✅ | | | | |
| [Nomic](https://docs.langchain4j.dev/integrations/language-models/nomic) | | | |✅ | | | |
| [Anthropic](https://docs.langchain4j.dev/integrations/language-models/anthropic) | |✅ | | | | | |
| [Zhipu AI](https://docs.langchain4j.dev/integrations/language-models/zhipuai) | |✅| ✅| ✅| | |✅ |
langchain4j marked this conversation as resolved.
Show resolved Hide resolved

## Disclaimer

Expand Down
48 changes: 25 additions & 23 deletions docs/docs/integrations/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,35 @@ We are making a great effort to have most of the functions enabled according to

## Capabilities
1. **Native image:** You can use this LLM integration for AOT compilation using GraalVM CE or GraalVM Oracle for [native image](https://www.graalvm.org/latest/reference-manual/native-image/) generation.
2. **Completion:** Supports the implementation of `text-completion` and `chat-completion` models in a synchronous way. This is most common usage. View examples [here](/tutorials/connect-to-llm)
3. **Streaming:** Supports `streaming` the model response back for `text-completion` or `chat-completion` models handling each event in `StreamingResponseHandler<AiMessage>` class. View examples [here](/tutorials/response-streaming)
4. **Async Completion:** Provide an [asynchronous](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html) version of the completion feature.
5. **Async Streaming:** Provide an [asynchronous](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html) version of the streaming feature.
6. **Embeddings:** Supports the implementation of `text-embedding` models. Embeddings make it easy to add custom data without fine-tuning. Generally used with Retrieval-Augmented Generation (`RAG`) tools, `Vector Stores` and `Search`. View examples [here](/tutorials/embedding-store)
7. **Image Generation:** Supports the implementation of `text-to-image` models to create realistic and coherent images from scratch. View examples [here](/tutorials/image-models)
8. **ReRanking:** Understands the implementation of re-ranking models to improve created models by re-organizing their results based on certain parameters. View examples [here](/tutorials/reranking-models)
2. **Sync Completion:** Supports the implementation of `text-completion` and `chat-completion` models in a synchronous way. This is most common usage. View examples [here](/tutorials/connect-to-llm)
LizeRaes marked this conversation as resolved.
Show resolved Hide resolved
3. **Streaming Completion:** Supports `streaming` the model response back for `text-completion` or `chat-completion` models handling each event in `StreamingResponseHandler<AiMessage>` class. View examples [here](/tutorials/response-streaming)
LizeRaes marked this conversation as resolved.
Show resolved Hide resolved
4. **Embeddings:** Supports the implementation of `text-embedding` models. Embeddings make it easy to add custom data without fine-tuning. Generally used with Retrieval-Augmented Generation (`RAG`) tools, `Vector Stores` and `Search`. View examples [here](/tutorials/embedding-store)
5. **Image Generation:** Supports the implementation of `text-to-image` models to create realistic and coherent images from scratch. View examples [here](/tutorials/image-models)
6. **Scoring:** Understands the implementation of scoring models to improve created models by re-organizing their results based on certain parameters. View examples [here](/tutorials/reranking-models)
7. **Function Calling:** Supports the implementation of `function-calling` models to call a function as a `Tool`. View examples [here](/tutorials/tools)

:::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](/category/code-execution-engines) | [Completion](/tutorials/connect-to-llm) | [Streaming](/docs/tutorials/response-streaming) | [Async Completion](/docs/tutorials/connect-to-llm) | [Async Streaming](/docs/tutorials/response-streaming) | [Embeddings](/category/embedding-models) | [Image Generation](/docs/category/image-models) | [ReRanking](/docs/category/reranking-models)
|---------------------------------------------------------------------------| ------------- | ----------- | ------------- | --------- |--------------------------------| ------------ |----------------------------------------------------------------------------------------------|---------------|
| [OpenAI](/integrations/language-models/openai) | | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| [Azure OpenAI](/integrations/language-models/azure-openai) | | ✅ | ✅ | | | ✅ | ✅ |
| [Hugging Face](/integrations/language-models/huggingface) | | ✅ | | ✅ | | ✅ | | |
| [Amazon Bedrock](/integrations/language-models/amazon-bedrock) | | ✅ | | | | ✅ |
| [Google Vertex AI Gemini](/integrations/language-models/google-gemini) | | ✅ | ✅ | ✅ | ✅ | | |
| [Google Vertex AI](/integrations/language-models/google-palm) | ✅ | ✅ | | ✅ | | ✅ | ✅ |
| [Mistral AI](/integrations/language-models/mistralai) | | ✅ | ✅ | ✅ | ✅ | ✅ |
| [DashScope](/integrations/language-models/dashscope) | | ✅ | ✅ | | ✅ | ✅ |
| [LocalAI](/integrations/language-models/localai) | | ✅ | ✅ | ✅ | | ✅ | |
| [Ollama](/integrations/language-models/ollama) | | ✅ | ✅ | ✅ | ✅ | ✅ | |
| [Cohere](/integrations/reranking-models/cohere) | | | | | | | | ✅ |
| [Qianfan](/integrations/language-models/qianfan) | | ✅ | ✅ | ✅ | ✅ | ✅ | |
| [ChatGLM](/integrations/language-models/chatglm) | | ✅ | | | | |
| [Nomic](/integrations/language-models/nomic) | | | | | | ✅ | |
| Provider | [Native Image](/category/code-execution-engines) | [Sync Completion](/category/language-models) | [Streaming Completion](/tutorials/response-streaming) | [Embedding](/category/embedding-models) | [Image Generation](/category/image-models) | [Scoring](https://docs.langchain4j.dev/category/scoring-models) | [Function Calling](/tutorials/tools)
|--------------------------------------------| ------------- |---------------------------------------------------------------------| ----------- | ------ |-------------------------------| ------ |--------------------------------------------------------------------------------------------|
| [OpenAI](/integrations/language-models/openai) | | ✅ | ✅ | ✅ | ✅ | | ✅ |
| [Azure OpenAI](/integrations/language-models/azure-openai) | | ✅ | ✅ | ✅ | ✅ | | ✅ |
| [Hugging Face](/integrations/language-models/huggingface) | | ✅ | | ✅ | | | | |
| [Amazon Bedrock](/integrations/language-models/amazon-bedrock) | | ✅ | |✅ | ✅ | | |
| [Google Vertex AI Gemini](/integrations/language-models/google-gemini) | | ✅ | ✅ | | ✅ | | ✅ |
| [Google Vertex AI](/integrations/language-models/google-palm) | ✅ | ✅ | | ✅ | ✅ | | |
| [Mistral AI](/integrations/language-models/mistralai) | | ✅ | ✅ | ✅ | | |✅ |
| [DashScope](/integrations/language-models/dashscope) | | ✅ | ✅ |✅ | | | |
| [LocalAI](/integrations/language-models/localai) | | ✅ | ✅ | ✅ | | | ✅ |
| [Ollama](/integrations/language-models/ollama) | | ✅ | ✅ | ✅ | | | |
| [Cohere](/integrations/reranking-models/cohere) | | | | | | ✅| |
| [Qianfan](/integrations/language-models/qianfan) | | ✅ | ✅ | ✅ | | |✅ |
| [ChatGLM](/integrations/language-models/chatglm) | | ✅ | | | | |
| [Nomic](/integrations/language-models/nomic) | | | |✅ | | | |
| [Anthropic](/integrations/language-models/anthropic) | |✅ | | | | | |
| [Zhipu AI](/integrations/language-models/zhipuai) | |✅| ✅| ✅| | |✅ |