Package org.springframework.ai.embedding
Class EmbeddingResultMetadata.ModalityUtils
java.lang.Object
org.springframework.ai.embedding.EmbeddingResultMetadata.ModalityUtils
- Enclosing class:
- EmbeddingResultMetadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetModalityType(org.springframework.util.MimeType mimeType) Infers theEmbeddingResultMetadata.ModalityTypeof the source data used to generate the embedding using the source dataMimeType.
-
Constructor Details
-
ModalityUtils
public ModalityUtils()
-
-
Method Details
-
getModalityType
public static EmbeddingResultMetadata.ModalityType getModalityType(org.springframework.util.MimeType mimeType) Infers theEmbeddingResultMetadata.ModalityTypeof the source data used to generate the embedding using the source dataMimeType.- Parameters:
mimeType- theMimeTypeof the source data.- Returns:
- Returns the
EmbeddingResultMetadata.ModalityTypeof the source data used to generate the embedding.
-