MediaPipeTasksCommon Framework Reference

EmbeddingProvider

protocol EmbeddingProvider

Produces vector representations for multimodal content blocks.

  • Generates vector representations for an ordered sequence of modality segments.

    Declaration

    Swift

    func embed(content: [TaskPart]) throws -> EmbeddingResult

    Parameters

    content

    Text, image, or audio segments to encode jointly.

    Return Value

    Vectors produced across the model's output heads.