mp.tasks.text.TextEmbeddingFormatContext

Formatting options for Gecko embeddings.

task_type The embedding type.
title The title of the text.
role The role of the text.

Methods

to_ctypes

View source

Generates a ctypes _MpTextFormatContextC object.

__eq__

Return self==value.

role <TextRole.QUERY: 1>
title None