MediaPipeTasksText Framework Reference

TextEmbeddingTextRole

enum TextEmbeddingTextRole : UInt, @unchecked Sendable

The role of the text in the context of the embedding task for Gecko models.

  • Query text role.

    Declaration

    Swift

    case query = 0
  • Document text role.

    Declaration

    Swift

    case document = 1