swarmauri.core.vector_stores.IVectorStoreSaveLoad module

class swarmauri.core.vector_stores.IVectorStoreSaveLoad.IVectorStoreSaveLoad[source]

Bases: ABC

Interface to abstract the ability to save and load the state of a vector store. This includes saving/loading the vectorizer’s model as well as the documents or vectors.

abstract load_parts(directory_path, file_pattern)[source]

Load and combine model parts from a directory.

Return type:

None

abstract load_store(directory_path)[source]

Loads the state of the vector store from the specified directory. This includes both the vectorizer’s model and the stored documents or vectors.

Parameters: - directory_path (str): The directory path from where the store’s state will be loaded.

Return type:

None

abstract save_parts(directory_path, chunk_size=10485760)[source]

Save the model in parts to handle large files by splitting them.

Return type:

None

abstract save_store(directory_path)[source]

Saves the state of the vector store to the specified directory. This includes both the vectorizer’s model and the stored documents or vectors.

Parameters: - directory_path (str): The directory path where the store’s state will be saved.

Return type:

None