diff --git a/models/spring-ai-mistral-ai/src/test/resources/prompts/acme/system-qa.st b/models/spring-ai-mistral-ai/src/test/resources/prompts/acme/system-qa.st index 44db6f210d6..c8ec5193836 100644 --- a/models/spring-ai-mistral-ai/src/test/resources/prompts/acme/system-qa.st +++ b/models/spring-ai-mistral-ai/src/test/resources/prompts/acme/system-qa.st @@ -1,6 +1,6 @@ You're assisting with questions about products in a bicycle catalog. Use the information from the DOCUMENTS section to provide accurate answers. -The the answer involves referring to the price or the dimension of the bicycle, include the bicycle name in the response. +The answer involves referring to the price or the dimension of the bicycle, include the bicycle name in the response. If unsure, simply state that you don't know. DOCUMENTS: diff --git a/models/spring-ai-openai/src/test/resources/prompts/acme/system-qa.st b/models/spring-ai-openai/src/test/resources/prompts/acme/system-qa.st index 44db6f210d6..c8ec5193836 100644 --- a/models/spring-ai-openai/src/test/resources/prompts/acme/system-qa.st +++ b/models/spring-ai-openai/src/test/resources/prompts/acme/system-qa.st @@ -1,6 +1,6 @@ You're assisting with questions about products in a bicycle catalog. Use the information from the DOCUMENTS section to provide accurate answers. -The the answer involves referring to the price or the dimension of the bicycle, include the bicycle name in the response. +The answer involves referring to the price or the dimension of the bicycle, include the bicycle name in the response. If unsure, simply state that you don't know. DOCUMENTS: diff --git a/spring-ai-commons/src/main/java/org/springframework/ai/document/id/IdGenerator.java b/spring-ai-commons/src/main/java/org/springframework/ai/document/id/IdGenerator.java index f9c43726b77..2251016f6d1 100644 --- a/spring-ai-commons/src/main/java/org/springframework/ai/document/id/IdGenerator.java +++ b/spring-ai-commons/src/main/java/org/springframework/ai/document/id/IdGenerator.java @@ -25,7 +25,7 @@ public interface IdGenerator { /** - * Generate a unique ID for the given content. Note: some generator, such as the the + * Generate a unique ID for the given content. Note: some generator, such as the * random generator might not dependant on or use the content parameters. * @param contents the content to generate an ID for. * @return the generated ID. diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/azure-openai-chat.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/azure-openai-chat.adoc index 0995b2ed798..00160fd09e3 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/azure-openai-chat.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/azure-openai-chat.adoc @@ -234,7 +234,7 @@ The Azure OpenAI can incorporate a list of base64-encoded images or image urls w Spring AI’s link:https://github.com/spring-projects/spring-ai/blob/main/spring-ai-model/src/main/java/org/springframework/ai/chat/messages/Message.java[Message] interface facilitates multimodal AI models by introducing the link:https://github.com/spring-projects/spring-ai/blob/main/spring-ai-model/src/main/java/org/springframework/ai/model/Media.java[Media] type. This type encompasses data and details regarding media attachments in messages, utilizing Spring’s `org.springframework.util.MimeType` and a `java.lang.Object` for the raw media data. -Below is a code example excerpted from link:https://github.com/spring-projects/spring-ai/blob/c9a3e66f90187ce7eae7eb78c462ec622685de6c/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/OpenAiChatModelIT.java#L293[OpenAiChatModelIT.java], illustrating the fusion of user text with an image using the the `GPT_4_O` model. +Below is a code example excerpted from link:https://github.com/spring-projects/spring-ai/blob/c9a3e66f90187ce7eae7eb78c462ec622685de6c/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/OpenAiChatModelIT.java#L293[OpenAiChatModelIT.java], illustrating the fusion of user text with an image using the `GPT_4_O` model. [source,java] ----