# EmbeddingProvider

    protocol EmbeddingProvider: NSObjectProtocol

Protocol for generating embeddings across different modalities using task content parts.
- `
  ### [embed(content:)](https://developers.google.com/edge/api/mediapipe/swift/retrieval/Protocols/EmbeddingProvider.md.txt#/c:objc(pl)MPPEmbeddingProvider(im)embedContent:error:)

  ` Generates a high-dimensional vector embedding for the given list of task parts or objects.

  #### Declaration

  Swift

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