# EmbeddingProvider

    protocol EmbeddingProvider

Produces vector representations for multimodal content blocks.
- `
  ### [embed(content:)](https://developers.google.com/edge/api/mediapipe/swift/common/Protocols/EmbeddingProvider.md.txt#/s:20MediaPipeTasksCommon17EmbeddingProviderP5embed7contentAA0E6ResultVSayAA8TaskPartOG_tKF)

  ` 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.