TextEmbeddingFormatContext
class TextEmbeddingFormatContext : NSObjectEncapsulates formatting instructions (TextFormatContext) for models that require a task-specific prompt format.
-
The embedding task type.
Declaration
Swift
var embeddingType: TextEmbeddingType -
The optional title of the text (only used for
.retrievalDocument).Declaration
Swift
var title: String? -
The role of the text (defaults to
.query).Declaration
Swift
var textRole: TextEmbeddingTextRole