diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/mistralai-chat.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/mistralai-chat.adoc index b2a7cb2aa..a53638d7b 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/mistralai-chat.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/mistralai-chat.adoc @@ -140,7 +140,7 @@ Read more about xref:api/chat/functions/mistralai-chat-functions.adoc[Mistral AI == Sample Controller (Auto-configuration) -https://start.spring.io/[Create] a new Spring Boot project and add the `spring-ai-mistralai-spring-boot-starter` to your pom (or gradle) dependencies. +https://start.spring.io/[Create] a new Spring Boot project and add the `spring-ai-mistral-ai-spring-boot-starter` to your pom (or gradle) dependencies. Add a `application.properties` file, under the `src/main/resources` directory, to enable and configure the OpenAi Chat client: @@ -185,13 +185,13 @@ public class ChatController { The link:https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-mistral-ai/src/main/java/org/springframework/ai/mistralai/MistralAiChatClient.java[MistralAiChatClient] implements the `ChatClient` and `StreamingChatClient` and uses the <> to connect to the MistralAI service. -Add the `spring-ai-mistralai` dependency to your project's Maven `pom.xml` file: +Add the `spring-ai-mistral-ai` dependency to your project's Maven `pom.xml` file: [source, xml] ---- org.springframework.ai - spring-ai-mistralai + spring-ai-mistral-ai ---- @@ -200,7 +200,7 @@ or to your Gradle `build.gradle` build file. [source,groovy] ---- dependencies { - implementation 'org.springframework.ai:spring-ai-mistralai' + implementation 'org.springframework.ai:spring-ai-mistral-ai' } ---- diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/mistralai-embeddings.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/mistralai-embeddings.adoc index 30e91ec73..57d8c19db 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/mistralai-embeddings.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/mistralai-embeddings.adoc @@ -155,12 +155,12 @@ public class EmbeddingController { == Manual Configuration If you are not using Spring Boot, you can manually configure the OpenAI Embedding Client. -For this add the `spring-ai-mistralai` dependency to your project's Maven `pom.xml` file: +For this add the `spring-ai-mistral-ai` dependency to your project's Maven `pom.xml` file: [source, xml] ---- org.springframework.ai - spring-ai-mistralai + spring-ai-mistral-ai ---- @@ -169,13 +169,13 @@ or to your Gradle `build.gradle` build file. [source,groovy] ---- dependencies { - implementation 'org.springframework.ai:spring-ai-mistralai' + implementation 'org.springframework.ai:spring-ai-mistral-ai' } ---- TIP: Refer to the xref:getting-started.adoc#dependency-management[Dependency Management] section to add the Spring AI BOM to your build file. -NOTE: The `spring-ai-mistralai` dependency provides access also to the `MistralAiChatClient`. +NOTE: The `spring-ai-mistral-ai` dependency provides access also to the `MistralAiChatClient`. For more information about the `MistralAiChatClient` refer to the link:../chat/mistralai-chat.html[MistralAI Chat Client] section. Next, create an `MistralAiEmbeddingClient` instance and use it to compute the similarity between two input texts: diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/onnx.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/onnx.adoc index 20d11976c..565dafc22 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/onnx.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/onnx.adoc @@ -81,7 +81,7 @@ List> embeddings = embeddingClient.embed(List.of("Hello world", "Wo ---- -NOTE: that when created manually, you must call the `afterPropertiesSet()` after setting the properties and before using the client. +NOTE: If you create an instance of `TransformersEmbeddingClient` manually, you must call the `afterPropertiesSet()` method after setting the properties and before using the client. The first `embed()` call downloads the large ONNX model and caches it on the local file system. Therefore, the first call might take longer than usual.