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