Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
Tran Ngoc Nhan
2025-04-14 22:35:06 +07:00
committed by GitHub
parent 91937d0dce
commit 257c91ccf2
4 changed files with 4 additions and 4 deletions

View File

@@ -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:

View File

@@ -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:

View File

@@ -25,7 +25,7 @@ package org.springframework.ai.document.id;
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.

View File

@@ -234,7 +234,7 @@ The Azure OpenAI can incorporate a list of base64-encoded images or image urls w
Spring AIs 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 Springs `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]
----