View source on GitHub
|
Formatting options for Gecko embeddings.
mp.tasks.text.TextEmbeddingFormatContext(
task_type: mp.tasks.text.TextEmbeddingType,
title: Optional[str] = None,
role: mp.tasks.text.TextEmbeddingTextRole = mp.tasks.text.TextEmbeddingFormatContext.role
)
Attributes | |
|---|---|
task_type
|
The embedding type. |
title
|
The title of the text. |
role
|
The role of the text. |
Methods
to_ctypes
to_ctypes() -> _MpTextFormatContextC
Generates a ctypes _MpTextFormatContextC object.
__eq__
__eq__(
other
)
Return self==value.
Class Variables | |
|---|---|
| role |
<TextRole.QUERY: 1>
|
| title |
None
|
View source on GitHub