maeser.admin_portal.vector_store_operator module#
This module is used to vectorize data from text files. Output files will be saved in output_dir as “index.faiss” and “index.pkl”. This module can be executed in the terminal or used within another script.
- maeser.admin_portal.vector_store_operator.vectorize_data(output_dir: str)[source]#
Vectorizes text files in output_dir and saves the resultant files as “index.faiss” and “index.pkl”.
- Parameters:
output_dir (str) – The directory where the text files are located and where the vectorstore will be saved.