Domain
class yandex_cloud_ml_sdk._models.text_embeddings.function.AsyncTextEmbeddings
A class for text embeddings models.
It provides the functionality to call a text embeddings model either by a well-known name or a full URI.
__call__(model_name, *, model_version='latest')
Call the specified model for text embeddings. It returns an instance of the specified type of the model.
This method constructs the URI for the model based on the provided name and version. If the name contains ://, it is treated as a full URI. Otherwise, it looks up the model name in the well-known names dictionary. But after this, in any case, we construct a URI in the form emb://<folder_id>/
|
Parameters |
Model
class yandex_cloud_ml_sdk._models.text_embeddings.model.AsyncTextEmbeddingsModel
A class for text embeddings models, providing configuration, request creation, and execution functionalities.
async run(text, *, timeout=60)
Run the model to generate text embeddings.
|
Parameters |
|
|
Return type |
async tune_deferred(train_datasets, *, embeddings_tune_type, validation_datasets=Undefined, name=Undefined, description=Undefined, labels=Undefined, seed=Undefined, lr=Undefined, n_samples=Undefined, additional_arguments=Undefined, dimensions=Undefined, tuning_type=Undefined, scheduler=Undefined, optimizer=Undefined, timeout=60)
Initiate a deferred tuning process for the model.
|
Parameters |
|
|
Return type |
async tune(train_datasets, *, embeddings_tune_type, validation_datasets=Undefined, name=Undefined, description=Undefined, labels=Undefined, seed=Undefined, lr=Undefined, n_samples=Undefined, additional_arguments=Undefined, dimensions=Undefined, tuning_type=Undefined, scheduler=Undefined, optimizer=Undefined, timeout=60, poll_timeout=259200, poll_interval=60)
Tune the model with the specified training datasets and parameters.
|
Parameters |
|
|
Return type |
async attach_tune_deferred(task_id, *, timeout=60)
Attach a deferred tuning task using its task ID.
|
Parameters |
|
|
Return type |
property config: ConfigTypeT
configure()
This method calls the parent class’s configure method and returns the configured model instance.
|
Return type |
property uri: str