EmbeddingProvider
protocol EmbeddingProviderProduces vector representations for multimodal content blocks.
-
Generates vector representations for an ordered sequence of modality segments.
Declaration
Swift
func embed(content: [TaskPart]) throws -> EmbeddingResultParameters
contentText, image, or audio segments to encode jointly.
Return Value
Vectors produced across the model's output heads.