Spaces:
Sleeping
Sleeping
| # Import the recommender module which contains the core recommendation functionality | |
| from src.core.recommender import recommender | |
| # This block ensures the code only runs when this file is executed directly | |
| # (not when imported as a module) | |
| if __name__ == "__main__": | |
| # Print a message to indicate the start of the FAISS index building process | |
| print("Building and saving FAISS index...") | |
| # Call the function to build and save the FAISS indexes | |
| # This function handles the creation and persistence of the vector indexes | |
| recommender.build_indexes_and_save() | |
| # Print a confirmation message when the process completes successfully | |
| print("FAISS index built and saved successfully.") |