Package org.springframework.ai.embedding
Class EmbeddingResultMetadata.ModalityUtils
java.lang.Object
org.springframework.ai.embedding.EmbeddingResultMetadata.ModalityUtils
- Enclosing class:
- EmbeddingResultMetadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetModalityType
(org.springframework.util.MimeType mimeType) Infers theEmbeddingResultMetadata.ModalityType
of 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.ModalityType
of the source data used to generate the embedding using the source dataMimeType
.- Parameters:
mimeType
- theMimeType
of the source data.- Returns:
- Returns the
EmbeddingResultMetadata.ModalityType
of the source data used to generate the embedding.
-