swarmauri.core.embeddings.ISaveModel module

class swarmauri.core.embeddings.ISaveModel.ISaveModel[source]

Bases: ABC

Interface to abstract the ability to save and load models.

abstract load_model(path)[source]

Loads a model from the specified directory.

Parameters: - path (str): The directory path from where the model will be loaded.

Returns: - Returns an instance of the loaded model.

Return type:

Any

abstract save_model(path)[source]

Saves the model to the specified directory.

Parameters: - path (str): The directory path where the model will be saved.

Return type:

None