2026-02-09 01:00:57 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:00:57 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:00:57 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:00:57 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:00:57 - booksage - WARNING - Model not trained yet 2026-02-09 01:00:57 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:00:57 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:00:57 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-09 01:00:57 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:00:57 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:00:57 - booksage - INFO - Training content-based model... 2026-02-09 01:00:57 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:00:57 - booksage - INFO - Training content-based model... 2026-02-09 01:00:57 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:00:57 - booksage - INFO - Training content-based model... 2026-02-09 01:00:57 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:00:57 - booksage - WARNING - Model not trained yet 2026-02-09 01:00:57 - booksage - INFO - Training content-based model... 2026-02-09 01:00:57 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:00:57 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-09 01:00:57 - booksage - INFO - Training content-based model... 2026-02-09 01:00:57 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:00:57 - booksage - INFO - Training content-based model... 2026-02-09 01:00:57 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:00:57 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-09 01:00:57 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-0\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-09 01:00:57 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-09 01:00:57 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-0\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-09 01:00:57 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-09 01:00:57 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-0\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-09 01:00:57 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:00:57 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:00:57 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:00:57 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:00:57 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-09 01:00:57 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:00:57 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:00:57 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:00:57 - booksage - ERROR - Must call filter_popular_books first 2026-02-09 01:00:57 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:00:57 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:00:57 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:00:57 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:00:57 - booksage - INFO - Merged data shape: (9, 8) 2026-02-09 01:00:57 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-09 01:00:57 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:00:57 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-09 01:00:57 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-09 01:00:57 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-09 01:00:57 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-09 01:00:57 - booksage - WARNING - Engine not ready for search 2026-02-09 01:00:57 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:00:57 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:00:57 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:00:57 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:00:57 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:00:57 - booksage - WARNING - No recommendations found from either model 2026-02-09 01:00:57 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:00:57 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:00:57 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:00:57 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:00:57 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:00:57 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:00:57 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:00:57 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:00:57 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:00:57 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-09 01:00:57 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:00:57 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:00:57 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:00:57 - booksage - WARNING - No trained models found 2026-02-09 01:00:57 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:00:57 - booksage - INFO - Models loaded successfully! 2026-02-09 01:01:08 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:01:08 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:01:08 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:01:08 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:01:08 - booksage - WARNING - Model not trained yet 2026-02-09 01:01:08 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:01:08 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:01:08 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-09 01:01:08 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:01:08 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:02:55 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:02:55 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:02:55 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:02:55 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:02:55 - booksage - WARNING - Model not trained yet 2026-02-09 01:02:55 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:02:55 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:02:55 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-09 01:02:55 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:02:55 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:02:55 - booksage - INFO - Training content-based model... 2026-02-09 01:02:55 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:02:55 - booksage - INFO - Training content-based model... 2026-02-09 01:02:55 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:02:55 - booksage - INFO - Training content-based model... 2026-02-09 01:02:55 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:02:55 - booksage - WARNING - Model not trained yet 2026-02-09 01:02:55 - booksage - INFO - Training content-based model... 2026-02-09 01:02:55 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:02:55 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-09 01:02:55 - booksage - INFO - Training content-based model... 2026-02-09 01:02:55 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:02:55 - booksage - INFO - Training content-based model... 2026-02-09 01:02:55 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:02:55 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-09 01:02:55 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-1\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-09 01:02:55 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-09 01:02:55 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-1\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-09 01:02:55 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-09 01:02:55 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-1\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-09 01:02:55 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:02:55 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:02:55 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:02:55 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:02:55 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-09 01:02:55 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:02:55 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:02:55 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:02:55 - booksage - ERROR - Must call filter_popular_books first 2026-02-09 01:02:55 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:02:55 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:02:55 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:02:55 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:02:55 - booksage - INFO - Merged data shape: (9, 8) 2026-02-09 01:02:55 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-09 01:02:55 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:02:55 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-09 01:02:55 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-09 01:02:55 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-09 01:02:55 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-09 01:02:55 - booksage - WARNING - Engine not ready for search 2026-02-09 01:02:55 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:02:55 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:02:55 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:02:55 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:02:55 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:02:55 - booksage - WARNING - No recommendations found from either model 2026-02-09 01:02:55 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:02:55 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:02:55 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:02:55 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:02:55 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:02:55 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:02:55 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:02:55 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:02:55 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:02:55 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-09 01:02:55 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:02:55 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:02:55 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:02:55 - booksage - WARNING - No trained models found 2026-02-09 01:02:55 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:02:55 - booksage - INFO - Models loaded successfully! 2026-02-09 01:04:01 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:04:01 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:04:01 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:04:01 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:04:01 - booksage - WARNING - Model not trained yet 2026-02-09 01:04:01 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:04:01 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:04:01 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-09 01:04:01 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:04:01 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:04:01 - booksage - INFO - Training content-based model... 2026-02-09 01:04:01 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:04:01 - booksage - INFO - Training content-based model... 2026-02-09 01:04:01 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:04:01 - booksage - INFO - Training content-based model... 2026-02-09 01:04:01 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:04:01 - booksage - WARNING - Model not trained yet 2026-02-09 01:04:01 - booksage - INFO - Training content-based model... 2026-02-09 01:04:01 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:04:01 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-09 01:04:01 - booksage - INFO - Training content-based model... 2026-02-09 01:04:01 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:04:01 - booksage - INFO - Training content-based model... 2026-02-09 01:04:01 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:04:01 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-09 01:04:01 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-2\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-09 01:04:01 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-09 01:04:01 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-2\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-09 01:04:01 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-09 01:04:01 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-2\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-09 01:04:01 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:04:01 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:04:01 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:04:01 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:04:01 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-09 01:04:01 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:04:01 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:04:01 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:04:01 - booksage - ERROR - Must call filter_popular_books first 2026-02-09 01:04:01 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:04:01 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:04:01 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:04:01 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:04:01 - booksage - INFO - Merged data shape: (9, 8) 2026-02-09 01:04:01 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-09 01:04:01 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:04:01 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-09 01:04:01 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-09 01:04:01 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-09 01:04:01 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-09 01:04:01 - booksage - WARNING - Engine not ready for search 2026-02-09 01:04:01 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:04:01 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:04:01 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:04:01 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:04:01 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:04:01 - booksage - WARNING - No recommendations found from either model 2026-02-09 01:04:01 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:04:01 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:04:01 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:04:01 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:04:01 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:04:01 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:04:01 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:04:01 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:04:01 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:04:01 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-09 01:04:01 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:04:01 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:04:01 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:04:01 - booksage - WARNING - No trained models found 2026-02-09 01:04:01 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:04:01 - booksage - INFO - Models loaded successfully! 2026-02-09 01:08:05 - booksage - INFO - Starting BookSage-AI application... 2026-02-09 01:08:05 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:08:05 - booksage - INFO - Loading models and processed data... 2026-02-09 01:08:05 - booksage - ERROR - Error loading models: No module named 'content_model' 2026-02-09 01:08:05 - booksage - ERROR - Failed to load models 2026-02-09 01:08:05 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-09 01:08:38 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-09 01:14:46 - booksage - INFO - Starting BookSage-AI application... 2026-02-09 01:14:46 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:14:46 - booksage - INFO - Loading models and processed data... 2026-02-09 01:14:46 - booksage - ERROR - Error loading models: No module named 'content_model' 2026-02-09 01:14:46 - booksage - ERROR - Failed to load models 2026-02-09 01:14:46 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-09 01:19:37 - booksage - WARNING - Engine not ready for search 2026-02-09 01:23:50 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:23:50 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:23:50 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:23:50 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:23:50 - booksage - WARNING - Model not trained yet 2026-02-09 01:23:50 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:23:50 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:23:50 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-09 01:23:50 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:23:50 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:23:50 - booksage - INFO - Training content-based model... 2026-02-09 01:23:50 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:23:50 - booksage - INFO - Training content-based model... 2026-02-09 01:23:50 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:23:50 - booksage - INFO - Training content-based model... 2026-02-09 01:23:50 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:23:50 - booksage - WARNING - Model not trained yet 2026-02-09 01:23:50 - booksage - INFO - Training content-based model... 2026-02-09 01:23:50 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:23:50 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-09 01:23:50 - booksage - INFO - Training content-based model... 2026-02-09 01:23:50 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:23:50 - booksage - INFO - Training content-based model... 2026-02-09 01:23:50 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:23:50 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-09 01:23:50 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-3\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-09 01:23:50 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-09 01:23:50 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-3\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-09 01:23:50 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-09 01:23:50 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-3\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-09 01:23:50 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:23:50 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:23:50 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:23:50 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:23:50 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-09 01:23:50 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:23:50 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:23:50 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:23:50 - booksage - ERROR - Must call filter_popular_books first 2026-02-09 01:23:50 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:23:50 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:23:50 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:23:50 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:23:50 - booksage - INFO - Merged data shape: (9, 8) 2026-02-09 01:23:50 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-09 01:23:50 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:23:50 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-09 01:23:50 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-09 01:23:50 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-09 01:23:50 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-09 01:23:51 - booksage - WARNING - Engine not ready for search 2026-02-09 01:23:51 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:23:51 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:23:51 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:23:51 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:23:51 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:23:51 - booksage - WARNING - No recommendations found from either model 2026-02-09 01:23:51 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:23:51 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:23:51 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:23:51 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:23:51 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:23:51 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:23:51 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:23:51 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:23:51 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:23:51 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-09 01:23:51 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:23:51 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:23:51 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:23:51 - booksage - WARNING - No trained models found 2026-02-09 01:23:51 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:23:51 - booksage - INFO - Models loaded successfully! 2026-02-09 01:25:59 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:25:59 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:25:59 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:25:59 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:25:59 - booksage - WARNING - Model not trained yet 2026-02-09 01:25:59 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:25:59 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:25:59 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-09 01:25:59 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:25:59 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:25:59 - booksage - INFO - Training content-based model... 2026-02-09 01:25:59 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:25:59 - booksage - INFO - Training content-based model... 2026-02-09 01:25:59 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:25:59 - booksage - INFO - Training content-based model... 2026-02-09 01:25:59 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:25:59 - booksage - WARNING - Model not trained yet 2026-02-09 01:25:59 - booksage - INFO - Training content-based model... 2026-02-09 01:25:59 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:25:59 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-09 01:25:59 - booksage - INFO - Training content-based model... 2026-02-09 01:25:59 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:25:59 - booksage - INFO - Training content-based model... 2026-02-09 01:25:59 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:25:59 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-09 01:25:59 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-4\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-09 01:25:59 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-09 01:25:59 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-4\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-09 01:25:59 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-09 01:25:59 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-4\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-09 01:25:59 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:25:59 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:25:59 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:25:59 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:25:59 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-09 01:25:59 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:25:59 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:25:59 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:25:59 - booksage - ERROR - Must call filter_popular_books first 2026-02-09 01:25:59 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:25:59 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:25:59 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:25:59 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:25:59 - booksage - INFO - Merged data shape: (9, 8) 2026-02-09 01:25:59 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-09 01:25:59 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:26:00 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-09 01:26:00 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-09 01:26:00 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-09 01:26:00 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-09 01:26:00 - booksage - WARNING - Engine not ready for search 2026-02-09 01:26:00 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:26:00 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:26:00 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:26:00 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:26:00 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:26:00 - booksage - WARNING - No recommendations found from either model 2026-02-09 01:26:00 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:26:00 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:26:00 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:26:00 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:26:00 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:26:00 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:26:00 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:26:00 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:26:00 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:26:00 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-09 01:26:00 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:26:00 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:26:00 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:26:00 - booksage - WARNING - No trained models found 2026-02-09 01:26:00 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:26:00 - booksage - INFO - Models loaded successfully! 2026-02-09 01:30:11 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:30:11 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:30:11 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:30:11 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:30:11 - booksage - WARNING - Model not trained yet 2026-02-09 01:30:11 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:30:11 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:30:11 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-09 01:30:11 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:30:11 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:30:12 - booksage - INFO - Training content-based model... 2026-02-09 01:30:12 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:30:12 - booksage - INFO - Training content-based model... 2026-02-09 01:30:12 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:30:12 - booksage - INFO - Training content-based model... 2026-02-09 01:30:12 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:30:12 - booksage - WARNING - Model not trained yet 2026-02-09 01:30:12 - booksage - INFO - Training content-based model... 2026-02-09 01:30:12 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:30:12 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-09 01:30:12 - booksage - INFO - Training content-based model... 2026-02-09 01:30:12 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:30:12 - booksage - INFO - Training content-based model... 2026-02-09 01:30:12 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:30:12 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-09 01:30:12 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-5\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-09 01:30:12 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-09 01:30:12 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-5\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-09 01:30:12 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-09 01:30:12 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-5\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-09 01:30:12 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:30:12 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:30:12 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:30:12 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:30:12 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-09 01:30:12 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:30:12 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:30:12 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:30:12 - booksage - ERROR - Must call filter_popular_books first 2026-02-09 01:30:12 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:30:12 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:30:12 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:30:12 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:30:12 - booksage - INFO - Merged data shape: (9, 8) 2026-02-09 01:30:12 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-09 01:30:12 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:30:12 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-09 01:30:12 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-09 01:30:12 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-09 01:30:12 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-09 01:30:12 - booksage - WARNING - Engine not ready for search 2026-02-09 01:30:12 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:30:12 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:30:12 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:30:12 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:30:12 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:30:12 - booksage - WARNING - No recommendations found from either model 2026-02-09 01:30:12 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:30:12 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:30:12 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:30:12 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:30:12 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:30:12 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:30:12 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:30:12 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:30:12 - booksage - INFO - Saving models and processed data... 2026-02-09 01:30:12 - booksage - ERROR - Error saving models: Can't pickle : it's not the same object as unittest.mock.MagicMock 2026-02-09 01:30:12 - booksage - INFO - Saving models and processed data... 2026-02-09 01:30:12 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\cf_model.pkl' 2026-02-09 01:30:12 - booksage - INFO - Saving models and processed data... 2026-02-09 01:30:12 - booksage - ERROR - Error saving models: Can't pickle : it's not the same object as unittest.mock.MagicMock 2026-02-09 01:30:12 - booksage - INFO - Loading models and processed data... 2026-02-09 01:30:12 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-09 01:30:12 - booksage - INFO - Loading models and processed data... 2026-02-09 01:30:12 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-09 01:30:12 - booksage - INFO - Loading models and processed data... 2026-02-09 01:30:12 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-09 01:30:12 - booksage - INFO - Saving models and processed data... 2026-02-09 01:30:12 - booksage - ERROR - Error saving models: Can't pickle : it's not the same object as unittest.mock.MagicMock 2026-02-09 01:30:12 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:30:12 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-09 01:30:12 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:30:12 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:30:12 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:30:12 - booksage - WARNING - No trained models found 2026-02-09 01:30:12 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:30:12 - booksage - INFO - Models loaded successfully! 2026-02-09 01:30:12 - booksage - INFO - ============================================================ 2026-02-09 01:30:13 - booksage - INFO - Starting model training... 2026-02-09 01:30:13 - booksage - INFO - ============================================================ 2026-02-09 01:30:13 - booksage - INFO - 1. Loading data... 2026-02-09 01:30:13 - booksage - ERROR - Failed to load data 2026-02-09 01:30:13 - booksage - INFO - ============================================================ 2026-02-09 01:30:13 - booksage - INFO - Starting model training... 2026-02-09 01:30:13 - booksage - INFO - ============================================================ 2026-02-09 01:30:13 - booksage - INFO - 1. Loading data... 2026-02-09 01:30:13 - booksage - INFO - 2. Preprocessing data... 2026-02-09 01:30:13 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-09 01:30:13 - booksage - INFO - 4. Training content-based model... 2026-02-09 01:30:13 - booksage - INFO - 5. Creating hybrid model... 2026-02-09 01:30:13 - booksage - INFO - 6. Saving models... 2026-02-09 01:30:13 - booksage - INFO - ============================================================ 2026-02-09 01:30:13 - booksage - INFO - Model training completed successfully! 2026-02-09 01:30:13 - booksage - INFO - ============================================================ 2026-02-09 01:30:13 - booksage - INFO - ============================================================ 2026-02-09 01:30:13 - booksage - INFO - Starting model training... 2026-02-09 01:30:13 - booksage - INFO - ============================================================ 2026-02-09 01:30:13 - booksage - INFO - 1. Loading data... 2026-02-09 01:30:13 - booksage - INFO - 2. Preprocessing data... 2026-02-09 01:30:13 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-09 01:30:13 - booksage - INFO - 4. Training content-based model... 2026-02-09 01:30:13 - booksage - INFO - 5. Creating hybrid model... 2026-02-09 01:30:13 - booksage - INFO - 6. Saving models... 2026-02-09 01:30:13 - booksage - ERROR - Failed to save models 2026-02-09 01:30:13 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:30:13 - booksage - ERROR - Failed to load models 2026-02-09 01:32:31 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:32:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:32:31 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:32:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:32:31 - booksage - WARNING - Model not trained yet 2026-02-09 01:32:31 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:32:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:32:31 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-09 01:32:31 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:32:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:32:31 - booksage - INFO - Training content-based model... 2026-02-09 01:32:31 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:32:31 - booksage - INFO - Training content-based model... 2026-02-09 01:32:31 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:32:31 - booksage - INFO - Training content-based model... 2026-02-09 01:32:31 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:32:31 - booksage - WARNING - Model not trained yet 2026-02-09 01:32:31 - booksage - INFO - Training content-based model... 2026-02-09 01:32:31 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:32:31 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-09 01:32:31 - booksage - INFO - Training content-based model... 2026-02-09 01:32:31 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:32:31 - booksage - INFO - Training content-based model... 2026-02-09 01:32:31 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:32:31 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-09 01:32:31 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-6\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-09 01:32:31 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-09 01:32:31 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-6\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-09 01:32:31 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-09 01:32:31 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-6\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-09 01:32:31 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:32:31 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:32:31 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:32:31 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:32:31 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-09 01:32:31 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:32:31 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:32:31 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:32:31 - booksage - ERROR - Must call filter_popular_books first 2026-02-09 01:32:31 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:32:31 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:32:31 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:32:31 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:32:31 - booksage - INFO - Merged data shape: (9, 8) 2026-02-09 01:32:31 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-09 01:32:31 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:32:32 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-09 01:32:32 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-09 01:32:32 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-09 01:32:32 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-09 01:32:32 - booksage - WARNING - Engine not ready for search 2026-02-09 01:32:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:32:32 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:32:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:32:32 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:32:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:32:32 - booksage - WARNING - No recommendations found from either model 2026-02-09 01:32:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:32:32 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:32:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:32:32 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:32:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:32:32 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:32:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:32:32 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:32:32 - booksage - INFO - Saving models and processed data... 2026-02-09 01:32:32 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: books_content.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: books_data.pkl 2026-02-09 01:32:32 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-6\test_save_models_success0 2026-02-09 01:32:32 - booksage - INFO - Saving models and processed data... 2026-02-09 01:32:32 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-09 01:32:32 - booksage - INFO - Saving models and processed data... 2026-02-09 01:32:32 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: books_content.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: books_data.pkl 2026-02-09 01:32:32 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-6\test_load_models_success0 2026-02-09 01:32:32 - booksage - INFO - Loading models and processed data... 2026-02-09 01:32:32 - booksage - INFO - All models loaded from: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-6\test_load_models_success0 2026-02-09 01:32:32 - booksage - INFO - Loading models and processed data... 2026-02-09 01:32:32 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-09 01:32:32 - booksage - INFO - Loading models and processed data... 2026-02-09 01:32:32 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-09 01:32:32 - booksage - INFO - Loading models and processed data... 2026-02-09 01:32:32 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-09 01:32:32 - booksage - INFO - Saving models and processed data... 2026-02-09 01:32:32 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: books_content.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-09 01:32:32 - booksage - DEBUG - Saved: books_data.pkl 2026-02-09 01:32:32 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-6\test_models_exist_true0 2026-02-09 01:32:32 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:32:32 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-09 01:32:32 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:32:32 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:32:32 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:32:32 - booksage - WARNING - No trained models found 2026-02-09 01:32:32 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:32:32 - booksage - INFO - Models loaded successfully! 2026-02-09 01:32:32 - booksage - INFO - ============================================================ 2026-02-09 01:32:32 - booksage - INFO - Starting model training... 2026-02-09 01:32:32 - booksage - INFO - ============================================================ 2026-02-09 01:32:32 - booksage - INFO - 1. Loading data... 2026-02-09 01:32:32 - booksage - ERROR - Failed to load data 2026-02-09 01:32:32 - booksage - INFO - ============================================================ 2026-02-09 01:32:32 - booksage - INFO - Starting model training... 2026-02-09 01:32:32 - booksage - INFO - ============================================================ 2026-02-09 01:32:32 - booksage - INFO - 1. Loading data... 2026-02-09 01:32:32 - booksage - INFO - 2. Preprocessing data... 2026-02-09 01:32:32 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-09 01:32:32 - booksage - INFO - 4. Training content-based model... 2026-02-09 01:32:32 - booksage - INFO - 5. Creating hybrid model... 2026-02-09 01:32:32 - booksage - INFO - 6. Saving models... 2026-02-09 01:32:32 - booksage - INFO - ============================================================ 2026-02-09 01:32:32 - booksage - INFO - Model training completed successfully! 2026-02-09 01:32:32 - booksage - INFO - ============================================================ 2026-02-09 01:32:32 - booksage - INFO - ============================================================ 2026-02-09 01:32:32 - booksage - INFO - Starting model training... 2026-02-09 01:32:32 - booksage - INFO - ============================================================ 2026-02-09 01:32:32 - booksage - INFO - 1. Loading data... 2026-02-09 01:32:32 - booksage - INFO - 2. Preprocessing data... 2026-02-09 01:32:32 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-09 01:32:32 - booksage - INFO - 4. Training content-based model... 2026-02-09 01:32:32 - booksage - INFO - 5. Creating hybrid model... 2026-02-09 01:32:32 - booksage - INFO - 6. Saving models... 2026-02-09 01:32:32 - booksage - ERROR - Failed to save models 2026-02-09 01:32:32 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:32:32 - booksage - ERROR - Failed to load models 2026-02-09 01:35:26 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:35:26 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:35:26 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:35:26 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:35:26 - booksage - WARNING - Model not trained yet 2026-02-09 01:35:26 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:35:26 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:35:26 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-09 01:35:26 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:35:26 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:35:26 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:35:26 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-09 01:35:26 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:35:26 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:35:26 - booksage - INFO - Training collaborative filtering model... 2026-02-09 01:35:26 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 01:35:26 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-09 01:35:26 - booksage - INFO - Training content-based model... 2026-02-09 01:35:26 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:35:26 - booksage - INFO - Training content-based model... 2026-02-09 01:35:26 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:35:26 - booksage - INFO - Training content-based model... 2026-02-09 01:35:26 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:35:26 - booksage - WARNING - Model not trained yet 2026-02-09 01:35:26 - booksage - INFO - Training content-based model... 2026-02-09 01:35:26 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:35:26 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-09 01:35:26 - booksage - INFO - Training content-based model... 2026-02-09 01:35:26 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:35:26 - booksage - INFO - Training content-based model... 2026-02-09 01:35:26 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:35:26 - booksage - INFO - Training content-based model... 2026-02-09 01:35:26 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-09 01:35:26 - booksage - INFO - Training content-based model... 2026-02-09 01:35:26 - booksage - INFO - Content-based model trained successfully 2026-02-09 01:35:26 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-09 01:35:26 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-09 01:35:26 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-7\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-09 01:35:26 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-09 01:35:26 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-7\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-09 01:35:26 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-09 01:35:26 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-7\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-09 01:35:26 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:35:26 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:35:26 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:35:26 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:35:26 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-09 01:35:26 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:35:26 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:35:26 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:35:26 - booksage - ERROR - Must call filter_popular_books first 2026-02-09 01:35:26 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 01:35:26 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 01:35:26 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:35:26 - booksage - INFO - Filtered to 4 active users 2026-02-09 01:35:26 - booksage - INFO - Merged data shape: (9, 8) 2026-02-09 01:35:26 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-09 01:35:26 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 01:35:26 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-09 01:35:26 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-09 01:35:26 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-09 01:35:26 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-09 01:35:26 - booksage - WARNING - Engine not ready for search 2026-02-09 01:35:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:35:26 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:35:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:35:26 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:35:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:35:26 - booksage - WARNING - No recommendations found from either model 2026-02-09 01:35:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:35:26 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:35:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:35:26 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 01:35:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:35:26 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:35:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:35:26 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 01:35:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 01:35:26 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-09 01:35:26 - booksage - INFO - Saving models and processed data... 2026-02-09 01:35:26 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: books_content.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: books_data.pkl 2026-02-09 01:35:26 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-7\test_save_models_success0 2026-02-09 01:35:26 - booksage - INFO - Saving models and processed data... 2026-02-09 01:35:26 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-09 01:35:26 - booksage - INFO - Saving models and processed data... 2026-02-09 01:35:26 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: books_content.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: books_data.pkl 2026-02-09 01:35:26 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-7\test_load_models_success0 2026-02-09 01:35:26 - booksage - INFO - Loading models and processed data... 2026-02-09 01:35:26 - booksage - INFO - All models loaded from: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-7\test_load_models_success0 2026-02-09 01:35:26 - booksage - INFO - Loading models and processed data... 2026-02-09 01:35:26 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-09 01:35:26 - booksage - INFO - Loading models and processed data... 2026-02-09 01:35:26 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-09 01:35:26 - booksage - INFO - Loading models and processed data... 2026-02-09 01:35:26 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-09 01:35:26 - booksage - INFO - Saving models and processed data... 2026-02-09 01:35:26 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: books_content.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-09 01:35:26 - booksage - DEBUG - Saved: books_data.pkl 2026-02-09 01:35:26 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-7\test_models_exist_true0 2026-02-09 01:35:26 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:35:26 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-09 01:35:26 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:35:26 - booksage - WARNING - Models not trained or loaded 2026-02-09 01:35:26 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:35:26 - booksage - WARNING - No trained models found 2026-02-09 01:35:26 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:35:26 - booksage - INFO - Models loaded successfully! 2026-02-09 01:35:26 - booksage - INFO - ============================================================ 2026-02-09 01:35:26 - booksage - INFO - Starting model training... 2026-02-09 01:35:26 - booksage - INFO - ============================================================ 2026-02-09 01:35:26 - booksage - INFO - 1. Loading data... 2026-02-09 01:35:26 - booksage - ERROR - Failed to load data 2026-02-09 01:35:26 - booksage - INFO - ============================================================ 2026-02-09 01:35:26 - booksage - INFO - Starting model training... 2026-02-09 01:35:26 - booksage - INFO - ============================================================ 2026-02-09 01:35:26 - booksage - INFO - 1. Loading data... 2026-02-09 01:35:26 - booksage - INFO - 2. Preprocessing data... 2026-02-09 01:35:26 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-09 01:35:26 - booksage - INFO - 4. Training content-based model... 2026-02-09 01:35:26 - booksage - INFO - 5. Creating hybrid model... 2026-02-09 01:35:26 - booksage - INFO - 6. Saving models... 2026-02-09 01:35:26 - booksage - INFO - ============================================================ 2026-02-09 01:35:26 - booksage - INFO - Model training completed successfully! 2026-02-09 01:35:26 - booksage - INFO - ============================================================ 2026-02-09 01:35:26 - booksage - INFO - ============================================================ 2026-02-09 01:35:26 - booksage - INFO - Starting model training... 2026-02-09 01:35:26 - booksage - INFO - ============================================================ 2026-02-09 01:35:26 - booksage - INFO - 1. Loading data... 2026-02-09 01:35:26 - booksage - INFO - 2. Preprocessing data... 2026-02-09 01:35:26 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-09 01:35:26 - booksage - INFO - 4. Training content-based model... 2026-02-09 01:35:26 - booksage - INFO - 5. Creating hybrid model... 2026-02-09 01:35:26 - booksage - INFO - 6. Saving models... 2026-02-09 01:35:26 - booksage - ERROR - Failed to save models 2026-02-09 01:35:26 - booksage - INFO - Checking for existing trained models... 2026-02-09 01:35:26 - booksage - ERROR - Failed to load models 2026-02-09 01:56:56 - booksage - WARNING - Engine not ready for search 2026-02-09 01:56:56 - booksage - WARNING - Engine not ready for search 2026-02-09 01:56:59 - booksage - WARNING - Engine not ready for search 2026-02-09 23:44:23 - booksage - INFO - Training collaborative filtering model... 2026-02-09 23:44:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 23:44:23 - booksage - INFO - Training collaborative filtering model... 2026-02-09 23:44:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 23:44:23 - booksage - WARNING - Model not trained yet 2026-02-09 23:44:23 - booksage - INFO - Training collaborative filtering model... 2026-02-09 23:44:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 23:44:23 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-09 23:44:23 - booksage - INFO - Training collaborative filtering model... 2026-02-09 23:44:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 23:44:23 - booksage - INFO - Training collaborative filtering model... 2026-02-09 23:44:23 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-09 23:44:23 - booksage - INFO - Training collaborative filtering model... 2026-02-09 23:44:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 23:44:23 - booksage - INFO - Training collaborative filtering model... 2026-02-09 23:44:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-09 23:44:23 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-09 23:44:23 - booksage - INFO - Training content-based model... 2026-02-09 23:44:23 - booksage - INFO - Content-based model trained successfully 2026-02-09 23:44:23 - booksage - INFO - Training content-based model... 2026-02-09 23:44:23 - booksage - INFO - Content-based model trained successfully 2026-02-09 23:44:23 - booksage - INFO - Training content-based model... 2026-02-09 23:44:23 - booksage - INFO - Content-based model trained successfully 2026-02-09 23:44:23 - booksage - WARNING - Model not trained yet 2026-02-09 23:44:23 - booksage - INFO - Training content-based model... 2026-02-09 23:44:23 - booksage - INFO - Content-based model trained successfully 2026-02-09 23:44:23 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-09 23:44:23 - booksage - INFO - Training content-based model... 2026-02-09 23:44:23 - booksage - INFO - Content-based model trained successfully 2026-02-09 23:44:23 - booksage - INFO - Training content-based model... 2026-02-09 23:44:23 - booksage - INFO - Content-based model trained successfully 2026-02-09 23:44:23 - booksage - INFO - Training content-based model... 2026-02-09 23:44:23 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-09 23:44:23 - booksage - INFO - Training content-based model... 2026-02-09 23:44:23 - booksage - INFO - Content-based model trained successfully 2026-02-09 23:44:23 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-09 23:44:23 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-09 23:44:23 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-8\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-09 23:44:23 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-09 23:44:23 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-8\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-09 23:44:23 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-09 23:44:23 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-8\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-09 23:44:23 - booksage - INFO - Filtered to 4 active users 2026-02-09 23:44:23 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 23:44:23 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 23:44:23 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 23:44:23 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-09 23:44:23 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 23:44:23 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 23:44:23 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 23:44:23 - booksage - ERROR - Must call filter_popular_books first 2026-02-09 23:44:23 - booksage - INFO - Merged data shape: (10, 8) 2026-02-09 23:44:23 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-09 23:44:23 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 23:44:23 - booksage - INFO - Filtered to 4 active users 2026-02-09 23:44:23 - booksage - INFO - Merged data shape: (9, 8) 2026-02-09 23:44:23 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-09 23:44:23 - booksage - INFO - Books content shape: (5, 7) 2026-02-09 23:44:23 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-09 23:44:24 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-09 23:44:24 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-09 23:44:24 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-09 23:44:24 - booksage - WARNING - Engine not ready for search 2026-02-09 23:44:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 23:44:24 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 23:44:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 23:44:24 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 23:44:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 23:44:24 - booksage - WARNING - No recommendations found from either model 2026-02-09 23:44:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 23:44:24 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 23:44:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 23:44:24 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-09 23:44:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 23:44:24 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 23:44:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 23:44:24 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-09 23:44:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-09 23:44:24 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-09 23:44:24 - booksage - INFO - Saving models and processed data... 2026-02-09 23:44:24 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: books_content.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: books_data.pkl 2026-02-09 23:44:24 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-8\test_save_models_success0 2026-02-09 23:44:24 - booksage - INFO - Saving models and processed data... 2026-02-09 23:44:24 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-09 23:44:24 - booksage - INFO - Saving models and processed data... 2026-02-09 23:44:24 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: books_content.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: books_data.pkl 2026-02-09 23:44:24 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-8\test_load_models_success0 2026-02-09 23:44:24 - booksage - INFO - Loading models and processed data... 2026-02-09 23:44:24 - booksage - INFO - All models loaded from: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-8\test_load_models_success0 2026-02-09 23:44:24 - booksage - INFO - Loading models and processed data... 2026-02-09 23:44:24 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-09 23:44:24 - booksage - INFO - Loading models and processed data... 2026-02-09 23:44:24 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-09 23:44:24 - booksage - INFO - Loading models and processed data... 2026-02-09 23:44:24 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-09 23:44:24 - booksage - INFO - Saving models and processed data... 2026-02-09 23:44:24 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: books_content.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-09 23:44:24 - booksage - DEBUG - Saved: books_data.pkl 2026-02-09 23:44:24 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-8\test_models_exist_true0 2026-02-09 23:44:24 - booksage - WARNING - Models not trained or loaded 2026-02-09 23:44:24 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-09 23:44:24 - booksage - WARNING - Models not trained or loaded 2026-02-09 23:44:24 - booksage - WARNING - Models not trained or loaded 2026-02-09 23:44:24 - booksage - INFO - Checking for existing trained models... 2026-02-09 23:44:24 - booksage - WARNING - No trained models found 2026-02-09 23:44:24 - booksage - INFO - Checking for existing trained models... 2026-02-09 23:44:24 - booksage - INFO - Models loaded successfully! 2026-02-09 23:44:24 - booksage - INFO - ============================================================ 2026-02-09 23:44:24 - booksage - INFO - Starting model training... 2026-02-09 23:44:24 - booksage - INFO - ============================================================ 2026-02-09 23:44:24 - booksage - INFO - 1. Loading data... 2026-02-09 23:44:24 - booksage - ERROR - Failed to load data 2026-02-09 23:44:24 - booksage - INFO - ============================================================ 2026-02-09 23:44:24 - booksage - INFO - Starting model training... 2026-02-09 23:44:24 - booksage - INFO - ============================================================ 2026-02-09 23:44:24 - booksage - INFO - 1. Loading data... 2026-02-09 23:44:24 - booksage - INFO - 2. Preprocessing data... 2026-02-09 23:44:24 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-09 23:44:24 - booksage - INFO - 4. Training content-based model... 2026-02-09 23:44:24 - booksage - INFO - 5. Creating hybrid model... 2026-02-09 23:44:24 - booksage - INFO - 6. Saving models... 2026-02-09 23:44:24 - booksage - INFO - ============================================================ 2026-02-09 23:44:24 - booksage - INFO - Model training completed successfully! 2026-02-09 23:44:24 - booksage - INFO - ============================================================ 2026-02-09 23:44:24 - booksage - INFO - ============================================================ 2026-02-09 23:44:24 - booksage - INFO - Starting model training... 2026-02-09 23:44:24 - booksage - INFO - ============================================================ 2026-02-09 23:44:24 - booksage - INFO - 1. Loading data... 2026-02-09 23:44:24 - booksage - INFO - 2. Preprocessing data... 2026-02-09 23:44:24 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-09 23:44:24 - booksage - INFO - 4. Training content-based model... 2026-02-09 23:44:24 - booksage - INFO - 5. Creating hybrid model... 2026-02-09 23:44:24 - booksage - INFO - 6. Saving models... 2026-02-09 23:44:24 - booksage - ERROR - Failed to save models 2026-02-09 23:44:24 - booksage - INFO - Checking for existing trained models... 2026-02-09 23:44:24 - booksage - ERROR - Failed to load models 2026-02-10 01:06:47 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:06:47 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:06:47 - booksage - INFO - Loading models and processed data... 2026-02-10 01:06:47 - booksage - ERROR - Error loading models: No module named 'content_model' 2026-02-10 01:06:47 - booksage - ERROR - Failed to load models 2026-02-10 01:06:47 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-10 01:07:44 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 01:14:54 - booksage - INFO - ============================================================ 2026-02-10 01:14:54 - booksage - INFO - BookSage-AI Model Training Script 2026-02-10 01:14:54 - booksage - INFO - ============================================================ 2026-02-10 01:14:54 - booksage - INFO - Starting model training... 2026-02-10 01:14:54 - booksage - INFO - ============================================================ 2026-02-10 01:14:54 - booksage - INFO - Starting model training... 2026-02-10 01:14:54 - booksage - INFO - ============================================================ 2026-02-10 01:14:54 - booksage - INFO - 1. Loading data... 2026-02-10 01:14:56 - booksage - INFO - Books data loaded successfully. Shape: (271360, 6) 2026-02-10 01:14:56 - booksage - INFO - Users data loaded successfully. Shape: (278858, 3) 2026-02-10 01:14:56 - booksage - INFO - Ratings data loaded successfully. Shape: (1149780, 3) 2026-02-10 01:14:56 - booksage - INFO - 2. Preprocessing data... 2026-02-10 01:14:56 - booksage - INFO - Filtered to 899 active users 2026-02-10 01:14:57 - booksage - INFO - Merged data shape: (487671, 8) 2026-02-10 01:14:57 - booksage - INFO - Final rating data shape: (59850, 9) 2026-02-10 01:14:57 - booksage - INFO - Books content shape: (742, 7) 2026-02-10 01:14:57 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 01:14:57 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:14:57 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:14:57 - booksage - INFO - 4. Training content-based model... 2026-02-10 01:14:57 - booksage - INFO - Training content-based model... 2026-02-10 01:14:57 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:14:57 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 01:14:57 - booksage - INFO - 6. Saving models... 2026-02-10 01:14:57 - booksage - INFO - Saving models and processed data... 2026-02-10 01:14:57 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:14:57 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:14:58 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:14:58 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:14:58 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:14:58 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:14:58 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:14:58 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:14:58 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:14:58 - booksage - INFO - All models saved to: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 01:14:58 - booksage - INFO - ============================================================ 2026-02-10 01:14:58 - booksage - INFO - Model training completed successfully! 2026-02-10 01:14:58 - booksage - INFO - ============================================================ 2026-02-10 01:14:58 - booksage - INFO - ============================================================ 2026-02-10 01:14:58 - booksage - INFO - SUCCESS: All models trained and saved! 2026-02-10 01:14:58 - booksage - INFO - You can now run the application with: 2026-02-10 01:14:58 - booksage - INFO - uvicorn app.main:app --reload --host 0.0.0.0 --port 8000 2026-02-10 01:14:58 - booksage - INFO - ============================================================ 2026-02-10 01:15:11 - booksage - INFO - Loading models and processed data... 2026-02-10 01:15:12 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 01:21:11 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:21:11 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:21:11 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:21:11 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:21:11 - booksage - WARNING - Model not trained yet 2026-02-10 01:21:11 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:21:11 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:21:11 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-10 01:21:11 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:21:11 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:21:11 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:21:11 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-10 01:21:11 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:21:11 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:21:11 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:21:11 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:21:11 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-10 01:21:11 - booksage - INFO - Training content-based model... 2026-02-10 01:21:11 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:21:11 - booksage - INFO - Training content-based model... 2026-02-10 01:21:11 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:21:11 - booksage - INFO - Training content-based model... 2026-02-10 01:21:11 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:21:11 - booksage - WARNING - Model not trained yet 2026-02-10 01:21:11 - booksage - INFO - Training content-based model... 2026-02-10 01:21:11 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:21:11 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-10 01:21:11 - booksage - INFO - Training content-based model... 2026-02-10 01:21:11 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:21:11 - booksage - INFO - Training content-based model... 2026-02-10 01:21:11 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:21:11 - booksage - INFO - Training content-based model... 2026-02-10 01:21:11 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-10 01:21:11 - booksage - INFO - Training content-based model... 2026-02-10 01:21:11 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:21:12 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-10 01:23:25 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:23:25 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:23:25 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:23:25 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:23:25 - booksage - WARNING - Model not trained yet 2026-02-10 01:23:25 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:23:25 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:23:25 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-10 01:23:25 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:23:25 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:23:25 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:23:25 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-10 01:23:25 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:23:25 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:23:25 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:23:25 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:23:25 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-10 01:23:25 - booksage - INFO - Training content-based model... 2026-02-10 01:23:25 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:23:25 - booksage - INFO - Training content-based model... 2026-02-10 01:23:25 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:23:25 - booksage - INFO - Training content-based model... 2026-02-10 01:23:25 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:23:25 - booksage - WARNING - Model not trained yet 2026-02-10 01:23:25 - booksage - INFO - Training content-based model... 2026-02-10 01:23:25 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:23:25 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-10 01:23:25 - booksage - INFO - Training content-based model... 2026-02-10 01:23:25 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:23:25 - booksage - INFO - Training content-based model... 2026-02-10 01:23:25 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:23:25 - booksage - INFO - Training content-based model... 2026-02-10 01:23:25 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-10 01:23:25 - booksage - INFO - Training content-based model... 2026-02-10 01:23:25 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:23:25 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-10 01:23:25 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-10 01:23:25 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-10\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-10 01:23:25 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-10 01:23:25 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-10\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-10 01:23:25 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-10 01:23:25 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-10\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-10 01:23:25 - booksage - INFO - Filtered to 4 active users 2026-02-10 01:23:25 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:23:25 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:23:25 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:23:25 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-10 01:23:25 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:23:25 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:23:25 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:23:25 - booksage - ERROR - Must call filter_popular_books first 2026-02-10 01:23:25 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:23:25 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:23:25 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:23:25 - booksage - INFO - Filtered to 4 active users 2026-02-10 01:23:25 - booksage - INFO - Merged data shape: (9, 8) 2026-02-10 01:23:25 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-10 01:23:25 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:23:26 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-10 01:23:26 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-10 01:23:26 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-10 01:23:26 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-10 01:23:26 - booksage - WARNING - Engine not ready for search 2026-02-10 01:23:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:23:26 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:23:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:23:26 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:23:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:23:26 - booksage - WARNING - No recommendations found from either model 2026-02-10 01:23:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:23:26 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 01:23:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:23:26 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 01:23:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:23:26 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:23:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:23:26 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:23:26 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:23:26 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-10 01:23:26 - booksage - INFO - Saving models and processed data... 2026-02-10 01:23:26 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:23:26 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-10\test_save_models_success0 2026-02-10 01:23:26 - booksage - INFO - Saving models and processed data... 2026-02-10 01:23:26 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-10 01:23:26 - booksage - INFO - Saving models and processed data... 2026-02-10 01:23:26 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:23:26 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-10\test_load_models_success0 2026-02-10 01:23:26 - booksage - INFO - Loading models and processed data... 2026-02-10 01:23:26 - booksage - INFO - All models loaded from: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-10\test_load_models_success0 2026-02-10 01:23:26 - booksage - INFO - Loading models and processed data... 2026-02-10 01:23:26 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-10 01:23:26 - booksage - INFO - Loading models and processed data... 2026-02-10 01:23:26 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-10 01:23:26 - booksage - INFO - Loading models and processed data... 2026-02-10 01:23:26 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-10 01:23:26 - booksage - INFO - Saving models and processed data... 2026-02-10 01:23:26 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:23:26 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:23:26 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-10\test_models_exist_true0 2026-02-10 01:23:26 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:23:26 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-10 01:23:26 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:23:26 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:23:26 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:23:26 - booksage - WARNING - No trained models found 2026-02-10 01:23:26 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:23:26 - booksage - INFO - Models loaded successfully! 2026-02-10 01:23:26 - booksage - INFO - ============================================================ 2026-02-10 01:23:26 - booksage - INFO - Starting model training... 2026-02-10 01:23:26 - booksage - INFO - ============================================================ 2026-02-10 01:23:26 - booksage - INFO - 1. Loading data... 2026-02-10 01:23:26 - booksage - ERROR - Failed to load data 2026-02-10 01:23:26 - booksage - INFO - ============================================================ 2026-02-10 01:23:26 - booksage - INFO - Starting model training... 2026-02-10 01:23:26 - booksage - INFO - ============================================================ 2026-02-10 01:23:26 - booksage - INFO - 1. Loading data... 2026-02-10 01:23:26 - booksage - INFO - 2. Preprocessing data... 2026-02-10 01:23:26 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 01:23:26 - booksage - INFO - 4. Training content-based model... 2026-02-10 01:23:26 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 01:23:26 - booksage - INFO - 6. Saving models... 2026-02-10 01:23:26 - booksage - INFO - ============================================================ 2026-02-10 01:23:26 - booksage - INFO - Model training completed successfully! 2026-02-10 01:23:26 - booksage - INFO - ============================================================ 2026-02-10 01:23:26 - booksage - INFO - ============================================================ 2026-02-10 01:23:26 - booksage - INFO - Starting model training... 2026-02-10 01:23:26 - booksage - INFO - ============================================================ 2026-02-10 01:23:26 - booksage - INFO - 1. Loading data... 2026-02-10 01:23:26 - booksage - INFO - 2. Preprocessing data... 2026-02-10 01:23:26 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 01:23:26 - booksage - INFO - 4. Training content-based model... 2026-02-10 01:23:26 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 01:23:26 - booksage - INFO - 6. Saving models... 2026-02-10 01:23:26 - booksage - ERROR - Failed to save models 2026-02-10 01:23:26 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:23:26 - booksage - ERROR - Failed to load models 2026-02-10 01:25:13 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:13 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:13 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:13 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:13 - booksage - WARNING - Model not trained yet 2026-02-10 01:25:13 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:13 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:13 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-10 01:25:13 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:13 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:13 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:13 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-10 01:25:13 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:13 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:13 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:13 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:13 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-10 01:25:13 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:13 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:13 - booksage - ERROR - Error in collaborative recommendations: Expected n_neighbors <= n_samples_fit, but n_neighbors = 6, n_samples_fit = 5, n_samples = 1 2026-02-10 01:25:14 - booksage - INFO - Training content-based model... 2026-02-10 01:25:14 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:14 - booksage - INFO - Training content-based model... 2026-02-10 01:25:14 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:14 - booksage - INFO - Training content-based model... 2026-02-10 01:25:14 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:14 - booksage - WARNING - Model not trained yet 2026-02-10 01:25:14 - booksage - INFO - Training content-based model... 2026-02-10 01:25:14 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:14 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-10 01:25:14 - booksage - INFO - Training content-based model... 2026-02-10 01:25:14 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:14 - booksage - INFO - Training content-based model... 2026-02-10 01:25:14 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:14 - booksage - INFO - Training content-based model... 2026-02-10 01:25:14 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-10 01:25:14 - booksage - INFO - Training content-based model... 2026-02-10 01:25:14 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:14 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-10 01:25:14 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-10 01:25:14 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-11\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-10 01:25:14 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-10 01:25:14 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-11\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-10 01:25:14 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-10 01:25:14 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-11\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-10 01:25:14 - booksage - INFO - Filtered to 4 active users 2026-02-10 01:25:14 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:25:14 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:25:14 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:25:14 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-10 01:25:14 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:25:14 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:25:14 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:25:14 - booksage - ERROR - Must call filter_popular_books first 2026-02-10 01:25:14 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:25:14 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:25:14 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:25:14 - booksage - INFO - Filtered to 4 active users 2026-02-10 01:25:14 - booksage - INFO - Merged data shape: (9, 8) 2026-02-10 01:25:14 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-10 01:25:14 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:25:14 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-10 01:25:14 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-10 01:25:14 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-10 01:25:14 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-10 01:25:14 - booksage - WARNING - Engine not ready for search 2026-02-10 01:25:14 - booksage - DEBUG - Search for 'test' returned 1 results 2026-02-10 01:25:14 - booksage - DEBUG - Search for 'test' returned 3 results 2026-02-10 01:25:14 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:25:14 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-10 01:25:14 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 01:25:14 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:25:14 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 01:25:14 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:14 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:25:14 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:14 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:25:14 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:14 - booksage - WARNING - No recommendations found from either model 2026-02-10 01:25:14 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:14 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 01:25:14 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:14 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 01:25:14 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:14 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:25:14 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:14 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:25:14 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:14 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-10 01:25:14 - booksage - INFO - Saving models and processed data... 2026-02-10 01:25:14 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:25:14 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-11\test_save_models_success0 2026-02-10 01:25:14 - booksage - INFO - Saving models and processed data... 2026-02-10 01:25:14 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-10 01:25:14 - booksage - INFO - Saving models and processed data... 2026-02-10 01:25:14 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:25:14 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-11\test_load_models_success0 2026-02-10 01:25:14 - booksage - INFO - Loading models and processed data... 2026-02-10 01:25:14 - booksage - INFO - All models loaded from: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-11\test_load_models_success0 2026-02-10 01:25:14 - booksage - INFO - Loading models and processed data... 2026-02-10 01:25:14 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-10 01:25:14 - booksage - INFO - Loading models and processed data... 2026-02-10 01:25:14 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-10 01:25:14 - booksage - INFO - Loading models and processed data... 2026-02-10 01:25:14 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-10 01:25:14 - booksage - INFO - Saving models and processed data... 2026-02-10 01:25:14 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:25:14 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:25:14 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-11\test_models_exist_true0 2026-02-10 01:25:14 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:25:14 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-10 01:25:14 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:25:14 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:25:14 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:25:14 - booksage - WARNING - No trained models found 2026-02-10 01:25:14 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:25:14 - booksage - INFO - Models loaded successfully! 2026-02-10 01:25:14 - booksage - INFO - ============================================================ 2026-02-10 01:25:14 - booksage - INFO - Starting model training... 2026-02-10 01:25:14 - booksage - INFO - ============================================================ 2026-02-10 01:25:14 - booksage - INFO - 1. Loading data... 2026-02-10 01:25:14 - booksage - ERROR - Failed to load data 2026-02-10 01:25:14 - booksage - INFO - ============================================================ 2026-02-10 01:25:14 - booksage - INFO - Starting model training... 2026-02-10 01:25:14 - booksage - INFO - ============================================================ 2026-02-10 01:25:14 - booksage - INFO - 1. Loading data... 2026-02-10 01:25:14 - booksage - INFO - 2. Preprocessing data... 2026-02-10 01:25:14 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 01:25:14 - booksage - INFO - 4. Training content-based model... 2026-02-10 01:25:14 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 01:25:14 - booksage - INFO - 6. Saving models... 2026-02-10 01:25:14 - booksage - INFO - ============================================================ 2026-02-10 01:25:14 - booksage - INFO - Model training completed successfully! 2026-02-10 01:25:14 - booksage - INFO - ============================================================ 2026-02-10 01:25:14 - booksage - INFO - ============================================================ 2026-02-10 01:25:14 - booksage - INFO - Starting model training... 2026-02-10 01:25:14 - booksage - INFO - ============================================================ 2026-02-10 01:25:14 - booksage - INFO - 1. Loading data... 2026-02-10 01:25:14 - booksage - INFO - 2. Preprocessing data... 2026-02-10 01:25:14 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 01:25:14 - booksage - INFO - 4. Training content-based model... 2026-02-10 01:25:14 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 01:25:14 - booksage - INFO - 6. Saving models... 2026-02-10 01:25:14 - booksage - ERROR - Failed to save models 2026-02-10 01:25:14 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:25:14 - booksage - ERROR - Failed to load models 2026-02-10 01:25:52 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:52 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:52 - booksage - WARNING - Model not trained yet 2026-02-10 01:25:52 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:52 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-10 01:25:52 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:52 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:52 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-10 01:25:52 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:52 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:52 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-10 01:25:52 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:25:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:25:52 - booksage - ERROR - Error in collaborative recommendations: Expected n_neighbors <= n_samples_fit, but n_neighbors = 6, n_samples_fit = 5, n_samples = 1 2026-02-10 01:25:52 - booksage - INFO - Training content-based model... 2026-02-10 01:25:52 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:52 - booksage - INFO - Training content-based model... 2026-02-10 01:25:52 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:52 - booksage - INFO - Training content-based model... 2026-02-10 01:25:52 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:52 - booksage - WARNING - Model not trained yet 2026-02-10 01:25:52 - booksage - INFO - Training content-based model... 2026-02-10 01:25:52 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:52 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-10 01:25:52 - booksage - INFO - Training content-based model... 2026-02-10 01:25:52 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:52 - booksage - INFO - Training content-based model... 2026-02-10 01:25:52 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:52 - booksage - INFO - Training content-based model... 2026-02-10 01:25:52 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-10 01:25:52 - booksage - INFO - Training content-based model... 2026-02-10 01:25:52 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:25:52 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-10 01:25:52 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-10 01:25:52 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-12\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-10 01:25:52 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-10 01:25:52 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-12\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-10 01:25:52 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-10 01:25:52 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-12\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-10 01:25:52 - booksage - INFO - Filtered to 4 active users 2026-02-10 01:25:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:25:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:25:52 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:25:52 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-10 01:25:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:25:52 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:25:52 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:25:52 - booksage - ERROR - Must call filter_popular_books first 2026-02-10 01:25:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:25:52 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:25:52 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:25:52 - booksage - INFO - Filtered to 4 active users 2026-02-10 01:25:52 - booksage - INFO - Merged data shape: (9, 8) 2026-02-10 01:25:52 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-10 01:25:52 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:25:52 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-10 01:25:52 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-10 01:25:52 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-10 01:25:52 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-10 01:25:52 - booksage - WARNING - Engine not ready for search 2026-02-10 01:25:52 - booksage - DEBUG - Search for 'test' returned 1 results 2026-02-10 01:25:52 - booksage - DEBUG - Search for 'test' returned 3 results 2026-02-10 01:25:52 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:25:52 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-10 01:25:52 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 01:25:52 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:25:52 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 01:25:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:52 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:25:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:52 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:25:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:52 - booksage - WARNING - No recommendations found from either model 2026-02-10 01:25:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:52 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 01:25:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:52 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 01:25:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:52 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:25:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:52 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:25:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:25:52 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-10 01:25:52 - booksage - INFO - Saving models and processed data... 2026-02-10 01:25:52 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:25:52 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-12\test_save_models_success0 2026-02-10 01:25:52 - booksage - INFO - Saving models and processed data... 2026-02-10 01:25:52 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-10 01:25:52 - booksage - INFO - Saving models and processed data... 2026-02-10 01:25:52 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:25:52 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-12\test_load_models_success0 2026-02-10 01:25:52 - booksage - INFO - Loading models and processed data... 2026-02-10 01:25:52 - booksage - INFO - All models loaded from: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-12\test_load_models_success0 2026-02-10 01:25:52 - booksage - INFO - Loading models and processed data... 2026-02-10 01:25:52 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-10 01:25:52 - booksage - INFO - Loading models and processed data... 2026-02-10 01:25:52 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-10 01:25:52 - booksage - INFO - Loading models and processed data... 2026-02-10 01:25:52 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-10 01:25:52 - booksage - INFO - Saving models and processed data... 2026-02-10 01:25:52 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:25:52 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:25:52 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-12\test_models_exist_true0 2026-02-10 01:25:53 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:25:53 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-10 01:25:53 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:25:53 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:25:53 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:25:53 - booksage - WARNING - No trained models found 2026-02-10 01:25:53 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:25:53 - booksage - INFO - Models loaded successfully! 2026-02-10 01:25:53 - booksage - INFO - ============================================================ 2026-02-10 01:25:53 - booksage - INFO - Starting model training... 2026-02-10 01:25:53 - booksage - INFO - ============================================================ 2026-02-10 01:25:53 - booksage - INFO - 1. Loading data... 2026-02-10 01:25:53 - booksage - ERROR - Failed to load data 2026-02-10 01:25:53 - booksage - INFO - ============================================================ 2026-02-10 01:25:53 - booksage - INFO - Starting model training... 2026-02-10 01:25:53 - booksage - INFO - ============================================================ 2026-02-10 01:25:53 - booksage - INFO - 1. Loading data... 2026-02-10 01:25:53 - booksage - INFO - 2. Preprocessing data... 2026-02-10 01:25:53 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 01:25:53 - booksage - INFO - 4. Training content-based model... 2026-02-10 01:25:53 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 01:25:53 - booksage - INFO - 6. Saving models... 2026-02-10 01:25:53 - booksage - INFO - ============================================================ 2026-02-10 01:25:53 - booksage - INFO - Model training completed successfully! 2026-02-10 01:25:53 - booksage - INFO - ============================================================ 2026-02-10 01:25:53 - booksage - INFO - ============================================================ 2026-02-10 01:25:53 - booksage - INFO - Starting model training... 2026-02-10 01:25:53 - booksage - INFO - ============================================================ 2026-02-10 01:25:53 - booksage - INFO - 1. Loading data... 2026-02-10 01:25:53 - booksage - INFO - 2. Preprocessing data... 2026-02-10 01:25:53 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 01:25:53 - booksage - INFO - 4. Training content-based model... 2026-02-10 01:25:53 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 01:25:53 - booksage - INFO - 6. Saving models... 2026-02-10 01:25:53 - booksage - ERROR - Failed to save models 2026-02-10 01:25:53 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:25:53 - booksage - ERROR - Failed to load models 2026-02-10 01:27:58 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:27:58 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:28:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:28:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:28:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:28:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:28:38 - booksage - WARNING - Model not trained yet 2026-02-10 01:28:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:28:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:28:38 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-10 01:28:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:28:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:28:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:28:38 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-10 01:28:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:28:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:28:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:28:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:28:38 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-10 01:28:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 01:28:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 01:28:38 - booksage - INFO - Training content-based model... 2026-02-10 01:28:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:28:38 - booksage - INFO - Training content-based model... 2026-02-10 01:28:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:28:38 - booksage - INFO - Training content-based model... 2026-02-10 01:28:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:28:38 - booksage - WARNING - Model not trained yet 2026-02-10 01:28:38 - booksage - INFO - Training content-based model... 2026-02-10 01:28:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:28:38 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-10 01:28:38 - booksage - INFO - Training content-based model... 2026-02-10 01:28:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:28:38 - booksage - INFO - Training content-based model... 2026-02-10 01:28:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:28:38 - booksage - INFO - Training content-based model... 2026-02-10 01:28:38 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-10 01:28:38 - booksage - INFO - Training content-based model... 2026-02-10 01:28:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 01:28:38 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-10 01:28:38 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-10 01:28:38 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-13\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-10 01:28:38 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-10 01:28:38 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-13\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-10 01:28:38 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-10 01:28:38 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-13\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-10 01:28:38 - booksage - INFO - Filtered to 4 active users 2026-02-10 01:28:38 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:28:38 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:28:38 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:28:38 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-10 01:28:38 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:28:38 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:28:38 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:28:38 - booksage - ERROR - Must call filter_popular_books first 2026-02-10 01:28:38 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 01:28:38 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 01:28:38 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:28:38 - booksage - INFO - Filtered to 4 active users 2026-02-10 01:28:38 - booksage - INFO - Merged data shape: (9, 8) 2026-02-10 01:28:38 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-10 01:28:38 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 01:28:39 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-10 01:28:39 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-10 01:28:39 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-10 01:28:39 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-10 01:28:39 - booksage - WARNING - Engine not ready for search 2026-02-10 01:28:39 - booksage - DEBUG - Search for 'test' returned 1 results 2026-02-10 01:28:39 - booksage - DEBUG - Search for 'test' returned 3 results 2026-02-10 01:28:39 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:28:39 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-10 01:28:39 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 01:28:39 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:28:39 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 01:28:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:28:39 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:28:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:28:39 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:28:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:28:39 - booksage - WARNING - No recommendations found from either model 2026-02-10 01:28:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:28:39 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 01:28:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:28:39 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 01:28:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:28:39 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:28:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:28:39 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 01:28:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 01:28:39 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-10 01:28:39 - booksage - INFO - Saving models and processed data... 2026-02-10 01:28:39 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:28:39 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-13\test_save_models_success0 2026-02-10 01:28:39 - booksage - INFO - Saving models and processed data... 2026-02-10 01:28:39 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-10 01:28:39 - booksage - INFO - Saving models and processed data... 2026-02-10 01:28:39 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:28:39 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-13\test_load_models_success0 2026-02-10 01:28:39 - booksage - INFO - Loading models and processed data... 2026-02-10 01:28:39 - booksage - INFO - All models loaded from: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-13\test_load_models_success0 2026-02-10 01:28:39 - booksage - INFO - Loading models and processed data... 2026-02-10 01:28:39 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-10 01:28:39 - booksage - INFO - Loading models and processed data... 2026-02-10 01:28:39 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-10 01:28:39 - booksage - INFO - Loading models and processed data... 2026-02-10 01:28:39 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-10 01:28:39 - booksage - INFO - Saving models and processed data... 2026-02-10 01:28:39 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 01:28:39 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 01:28:39 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-13\test_models_exist_true0 2026-02-10 01:28:39 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:28:39 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-10 01:28:39 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:28:39 - booksage - WARNING - Models not trained or loaded 2026-02-10 01:28:39 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:28:39 - booksage - WARNING - No trained models found 2026-02-10 01:28:39 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:28:39 - booksage - INFO - Models loaded successfully! 2026-02-10 01:28:39 - booksage - INFO - ============================================================ 2026-02-10 01:28:39 - booksage - INFO - Starting model training... 2026-02-10 01:28:39 - booksage - INFO - ============================================================ 2026-02-10 01:28:39 - booksage - INFO - 1. Loading data... 2026-02-10 01:28:39 - booksage - ERROR - Failed to load data 2026-02-10 01:28:39 - booksage - INFO - ============================================================ 2026-02-10 01:28:39 - booksage - INFO - Starting model training... 2026-02-10 01:28:39 - booksage - INFO - ============================================================ 2026-02-10 01:28:39 - booksage - INFO - 1. Loading data... 2026-02-10 01:28:39 - booksage - INFO - 2. Preprocessing data... 2026-02-10 01:28:39 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 01:28:39 - booksage - INFO - 4. Training content-based model... 2026-02-10 01:28:39 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 01:28:39 - booksage - INFO - 6. Saving models... 2026-02-10 01:28:39 - booksage - INFO - ============================================================ 2026-02-10 01:28:39 - booksage - INFO - Model training completed successfully! 2026-02-10 01:28:39 - booksage - INFO - ============================================================ 2026-02-10 01:28:39 - booksage - INFO - ============================================================ 2026-02-10 01:28:39 - booksage - INFO - Starting model training... 2026-02-10 01:28:39 - booksage - INFO - ============================================================ 2026-02-10 01:28:39 - booksage - INFO - 1. Loading data... 2026-02-10 01:28:39 - booksage - INFO - 2. Preprocessing data... 2026-02-10 01:28:39 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 01:28:39 - booksage - INFO - 4. Training content-based model... 2026-02-10 01:28:39 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 01:28:39 - booksage - INFO - 6. Saving models... 2026-02-10 01:28:39 - booksage - ERROR - Failed to save models 2026-02-10 01:28:39 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:28:39 - booksage - ERROR - Failed to load models 2026-02-10 01:33:19 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:33:19 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:33:19 - booksage - INFO - Loading models and processed data... 2026-02-10 01:33:19 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 01:33:19 - booksage - INFO - Models loaded successfully! 2026-02-10 01:33:41 - booksage - DEBUG - Generating hybrid recommendations for: Wild Animus 2026-02-10 01:33:41 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 01:33:41 - booksage - INFO - Generated 9 hybrid recommendations for 'Wild Animus' 2026-02-10 01:33:50 - booksage - INFO - Generated 9 collaborative recommendations for 'Exclusive' 2026-02-10 01:44:13 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 01:44:15 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:44:15 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:44:15 - booksage - INFO - Loading models and processed data... 2026-02-10 01:44:15 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 01:44:15 - booksage - INFO - Models loaded successfully! 2026-02-10 01:44:22 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:44:22 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:44:22 - booksage - INFO - Loading models and processed data... 2026-02-10 01:44:22 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 01:44:22 - booksage - INFO - Models loaded successfully! 2026-02-10 01:44:46 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-10 01:45:35 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:45:35 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:45:35 - booksage - INFO - Loading models and processed data... 2026-02-10 01:45:35 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 01:45:35 - booksage - INFO - Models loaded successfully! 2026-02-10 01:47:10 - booksage - DEBUG - Search for 'tj' returned 9 results 2026-02-10 01:47:13 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-10 01:47:13 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-10 01:47:33 - booksage - DEBUG - Generating hybrid recommendations for: The Kitchen God's Wife 2026-02-10 01:47:33 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 01:47:33 - booksage - INFO - Generated 9 hybrid recommendations for 'The Kitchen God's Wife' 2026-02-10 01:47:42 - booksage - INFO - Generated 9 collaborative recommendations for 'The Kitchen God's Wife' 2026-02-10 01:47:55 - booksage - DEBUG - Search for 'wi' returned 9 results 2026-02-10 01:47:55 - booksage - DEBUG - Search for 'wil' returned 5 results 2026-02-10 01:47:56 - booksage - DEBUG - Search for 'wild' returned 9 results 2026-02-10 01:48:07 - booksage - DEBUG - Generating hybrid recommendations for: The Nanny Diaries: A Novel 2026-02-10 01:48:07 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 01:48:07 - booksage - INFO - Generated 9 hybrid recommendations for 'The Nanny Diaries: A Novel' 2026-02-10 01:55:07 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 01:55:09 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:55:09 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:55:09 - booksage - INFO - Loading models and processed data... 2026-02-10 01:55:09 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 01:55:09 - booksage - INFO - Models loaded successfully! 2026-02-10 01:57:23 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 01:57:26 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 01:57:26 - booksage - INFO - Checking for existing trained models... 2026-02-10 01:57:26 - booksage - INFO - Loading models and processed data... 2026-02-10 01:57:26 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 01:57:26 - booksage - INFO - Models loaded successfully! 2026-02-10 02:02:58 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 02:02:58 - booksage - INFO - Checking for existing trained models... 2026-02-10 02:02:58 - booksage - INFO - Loading models and processed data... 2026-02-10 02:02:59 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 02:02:59 - booksage - INFO - Models loaded successfully! 2026-02-10 02:05:00 - booksage - DEBUG - Generating hybrid recommendations for: The Nanny Diaries: A Novel 2026-02-10 02:05:00 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 02:05:00 - booksage - INFO - Generated 9 hybrid recommendations for 'The Nanny Diaries: A Novel' 2026-02-10 02:05:17 - booksage - DEBUG - Generating hybrid recommendations for: The Notebook 2026-02-10 02:05:17 - booksage - ERROR - Error in content recommendations: index 2602 is out of bounds for axis 0 with size 742 2026-02-10 02:05:17 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 02:05:17 - booksage - INFO - Generated 9 hybrid recommendations for 'The Notebook' 2026-02-10 02:05:33 - booksage - INFO - Generated 9 collaborative recommendations for 'The Guardian' 2026-02-10 02:05:42 - booksage - INFO - Generated 9 content recommendations for 'The Rescue' 2026-02-10 02:06:03 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-10 02:06:04 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-10 02:06:20 - booksage - DEBUG - Generating hybrid recommendations for: The Lovely Bones: A Novel 2026-02-10 02:06:20 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 02:06:20 - booksage - INFO - Generated 9 hybrid recommendations for 'The Lovely Bones: A Novel' 2026-02-10 10:41:40 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 10:41:40 - booksage - INFO - Checking for existing trained models... 2026-02-10 10:41:40 - booksage - INFO - Loading models and processed data... 2026-02-10 10:41:40 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 10:41:40 - booksage - INFO - Models loaded successfully! 2026-02-10 10:42:19 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-10 10:42:23 - booksage - DEBUG - Search for 'wil' returned 5 results 2026-02-10 10:42:26 - booksage - DEBUG - Search for 'wi' returned 9 results 2026-02-10 10:44:45 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-10 10:44:54 - booksage - DEBUG - Search for 'The Joy Luck Club' returned 2 results 2026-02-10 10:44:58 - booksage - INFO - Generated 9 content recommendations for 'The Joy Luck Club' 2026-02-10 10:45:20 - booksage - DEBUG - Generating hybrid recommendations for: The Firm 2026-02-10 10:45:20 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 10:45:20 - booksage - INFO - Generated 9 hybrid recommendations for 'The Firm' 2026-02-10 10:45:26 - booksage - ERROR - Error in content recommendations: index 780 is out of bounds for axis 0 with size 742 2026-02-10 10:45:26 - booksage - INFO - Generated 0 content recommendations for 'The Two Towers (The Lord of the Rings, Part 2)' 2026-02-10 10:45:54 - booksage - DEBUG - Generating hybrid recommendations for: The Lovely Bones: A Novel 2026-02-10 10:45:54 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 10:45:54 - booksage - INFO - Generated 9 hybrid recommendations for 'The Lovely Bones: A Novel' 2026-02-10 10:46:04 - booksage - INFO - Generated 9 collaborative recommendations for 'Where the Heart Is (Oprah's Book Club (Paperback))' 2026-02-10 10:46:06 - booksage - ERROR - Error in content recommendations: index 12923 is out of bounds for axis 0 with size 742 2026-02-10 10:46:06 - booksage - INFO - Generated 0 content recommendations for 'Blue Diary' 2026-02-10 10:46:19 - booksage - DEBUG - Generating hybrid recommendations for: Blue Diary 2026-02-10 10:46:19 - booksage - ERROR - Error in content recommendations: index 12923 is out of bounds for axis 0 with size 742 2026-02-10 10:46:19 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 10:46:19 - booksage - INFO - Generated 9 hybrid recommendations for 'Blue Diary' 2026-02-10 10:48:40 - booksage - DEBUG - Generating hybrid recommendations for: Bridget Jones's Diary 2026-02-10 10:48:40 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 10:48:40 - booksage - INFO - Generated 9 hybrid recommendations for 'Bridget Jones's Diary' 2026-02-10 10:48:56 - booksage - INFO - Generated 9 collaborative recommendations for 'Harvest' 2026-02-10 10:48:58 - booksage - ERROR - Error in content recommendations: index 14395 is out of bounds for axis 0 with size 742 2026-02-10 10:48:58 - booksage - INFO - Generated 0 content recommendations for 'Vector' 2026-02-10 10:50:04 - booksage - DEBUG - Generating hybrid recommendations for: Bridget Jones's Diary 2026-02-10 10:50:04 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 10:50:04 - booksage - INFO - Generated 9 hybrid recommendations for 'Bridget Jones's Diary' 2026-02-10 10:52:17 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 10:52:19 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 10:52:19 - booksage - INFO - Checking for existing trained models... 2026-02-10 10:52:19 - booksage - INFO - Loading models and processed data... 2026-02-10 10:52:19 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 10:52:19 - booksage - INFO - Models loaded successfully! 2026-02-10 11:19:37 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:19:37 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:19:37 - booksage - INFO - Loading models and processed data... 2026-02-10 11:19:38 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:19:38 - booksage - INFO - Models loaded successfully! 2026-02-10 11:19:49 - booksage - DEBUG - Search for 'wild' returned 9 results 2026-02-10 11:19:54 - booksage - DEBUG - Generating hybrid recommendations for: Wild Animus 2026-02-10 11:19:54 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 11:19:54 - booksage - INFO - Generated 9 hybrid recommendations for 'Wild Animus' 2026-02-10 11:20:13 - booksage - DEBUG - Generating hybrid recommendations for: Exclusive 2026-02-10 11:20:13 - booksage - ERROR - Error in content recommendations: index 19148 is out of bounds for axis 0 with size 742 2026-02-10 11:20:13 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 11:20:13 - booksage - INFO - Generated 9 hybrid recommendations for 'Exclusive' 2026-02-10 11:21:06 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:21:06 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:21:06 - booksage - INFO - Loading models and processed data... 2026-02-10 11:21:07 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:21:07 - booksage - INFO - Models loaded successfully! 2026-02-10 11:21:15 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-10 11:21:19 - booksage - DEBUG - Generating hybrid recommendations for: The Testament 2026-02-10 11:21:19 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 11:21:19 - booksage - INFO - Generated 9 hybrid recommendations for 'The Testament' 2026-02-10 11:21:26 - booksage - INFO - Generated 9 content recommendations for 'The Street Lawyer' 2026-02-10 11:21:28 - booksage - INFO - Generated 9 collaborative recommendations for 'The Tommyknockers' 2026-02-10 11:21:31 - booksage - ERROR - Error in content recommendations: index 6235 is out of bounds for axis 0 with size 742 2026-02-10 11:21:31 - booksage - INFO - Generated 0 content recommendations for 'The Regulators' 2026-02-10 11:27:22 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:27:22 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:27:22 - booksage - INFO - Loading models and processed data... 2026-02-10 11:27:23 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:27:23 - booksage - INFO - Models loaded successfully! 2026-02-10 11:32:44 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:32:44 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:32:44 - booksage - INFO - Loading models and processed data... 2026-02-10 11:32:45 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:32:45 - booksage - INFO - Models loaded successfully! 2026-02-10 11:33:17 - booksage - DEBUG - Generating hybrid recommendations for: Bridget Jones's Diary 2026-02-10 11:33:17 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 11:33:17 - booksage - INFO - Generated 9 hybrid recommendations for 'Bridget Jones's Diary' 2026-02-10 11:45:24 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:45:24 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:45:24 - booksage - INFO - Loading models and processed data... 2026-02-10 11:45:24 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:45:24 - booksage - INFO - Models loaded successfully! 2026-02-10 11:46:33 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:46:33 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:46:33 - booksage - INFO - Loading models and processed data... 2026-02-10 11:46:33 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:46:33 - booksage - INFO - Models loaded successfully! 2026-02-10 11:47:14 - booksage - INFO - Generated 9 collaborative recommendations for 'The Firm' 2026-02-10 11:49:29 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 11:49:30 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 11:49:32 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:49:32 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:49:32 - booksage - INFO - Loading models and processed data... 2026-02-10 11:49:32 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:49:32 - booksage - INFO - Models loaded successfully! 2026-02-10 11:49:32 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:49:32 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:49:32 - booksage - INFO - Loading models and processed data... 2026-02-10 11:49:32 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:49:32 - booksage - INFO - Models loaded successfully! 2026-02-10 11:50:39 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:50:39 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:50:39 - booksage - INFO - Loading models and processed data... 2026-02-10 11:50:39 - booksage - INFO - All models loaded from: c:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:50:39 - booksage - INFO - Models loaded successfully! 2026-02-10 11:51:00 - booksage - INFO - Generated 9 collaborative recommendations for 'The Pelican Brief' 2026-02-10 11:51:02 - booksage - DEBUG - Generating hybrid recommendations for: The Firm 2026-02-10 11:51:02 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 11:51:02 - booksage - INFO - Generated 9 hybrid recommendations for 'The Firm' 2026-02-10 11:51:04 - booksage - ERROR - Error in content recommendations: index 1571 is out of bounds for axis 0 with size 742 2026-02-10 11:51:04 - booksage - INFO - Generated 0 content recommendations for 'The Fellowship of the Ring (The Lord of the Rings, Part 1)' 2026-02-10 11:51:06 - booksage - INFO - Generated 9 collaborative recommendations for 'The Fellowship of the Ring (The Lord of the Rings, Part 1)' 2026-02-10 11:51:12 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-10 11:52:28 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 11:52:30 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:52:30 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:52:30 - booksage - INFO - Loading models and processed data... 2026-02-10 11:52:31 - booksage - INFO - All models loaded from: c:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:52:31 - booksage - INFO - Models loaded successfully! 2026-02-10 11:53:46 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:53:46 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:53:46 - booksage - INFO - Loading models and processed data... 2026-02-10 11:53:46 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:53:46 - booksage - INFO - Models loaded successfully! 2026-02-10 11:53:57 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:53:57 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:53:57 - booksage - INFO - Loading models and processed data... 2026-02-10 11:53:57 - booksage - INFO - All models loaded from: c:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 11:53:57 - booksage - INFO - Models loaded successfully! 2026-02-10 11:54:13 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-10 11:54:18 - booksage - INFO - Generated 9 content recommendations for 'Bridget Jones's Diary' 2026-02-10 11:54:20 - booksage - DEBUG - Generating hybrid recommendations for: Harvest 2026-02-10 11:54:20 - booksage - ERROR - Error in content recommendations: index 1785 is out of bounds for axis 0 with size 742 2026-02-10 11:54:20 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 11:54:20 - booksage - INFO - Generated 9 hybrid recommendations for 'Harvest' 2026-02-10 11:54:22 - booksage - DEBUG - Generating hybrid recommendations for: Harvest 2026-02-10 11:54:22 - booksage - ERROR - Error in content recommendations: index 1785 is out of bounds for axis 0 with size 742 2026-02-10 11:54:22 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-10 11:54:22 - booksage - INFO - Generated 9 hybrid recommendations for 'Harvest' 2026-02-10 11:55:34 - booksage - INFO - Training collaborative filtering model... 2026-02-10 11:55:34 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 11:55:34 - booksage - INFO - Training collaborative filtering model... 2026-02-10 11:55:34 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 11:55:34 - booksage - WARNING - Model not trained yet 2026-02-10 11:55:34 - booksage - INFO - Training collaborative filtering model... 2026-02-10 11:55:34 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 11:55:34 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-10 11:55:34 - booksage - INFO - Training collaborative filtering model... 2026-02-10 11:55:34 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 11:55:34 - booksage - INFO - Training collaborative filtering model... 2026-02-10 11:55:34 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-10 11:55:34 - booksage - INFO - Training collaborative filtering model... 2026-02-10 11:55:34 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 11:55:34 - booksage - INFO - Training collaborative filtering model... 2026-02-10 11:55:34 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 11:55:34 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-10 11:55:34 - booksage - INFO - Training collaborative filtering model... 2026-02-10 11:55:34 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 11:55:34 - booksage - INFO - Training content-based model... 2026-02-10 11:55:34 - booksage - INFO - Content-based model trained successfully 2026-02-10 11:55:34 - booksage - INFO - Training content-based model... 2026-02-10 11:55:34 - booksage - INFO - Content-based model trained successfully 2026-02-10 11:55:34 - booksage - INFO - Training content-based model... 2026-02-10 11:55:34 - booksage - INFO - Content-based model trained successfully 2026-02-10 11:55:34 - booksage - WARNING - Model not trained yet 2026-02-10 11:55:34 - booksage - INFO - Training content-based model... 2026-02-10 11:55:34 - booksage - INFO - Content-based model trained successfully 2026-02-10 11:55:34 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-10 11:55:34 - booksage - INFO - Training content-based model... 2026-02-10 11:55:34 - booksage - INFO - Content-based model trained successfully 2026-02-10 11:55:34 - booksage - INFO - Training content-based model... 2026-02-10 11:55:34 - booksage - INFO - Content-based model trained successfully 2026-02-10 11:55:34 - booksage - INFO - Training content-based model... 2026-02-10 11:55:34 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-10 11:55:34 - booksage - INFO - Training content-based model... 2026-02-10 11:55:34 - booksage - INFO - Content-based model trained successfully 2026-02-10 11:55:34 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-10 11:55:34 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-10 11:55:34 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-14\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-10 11:55:34 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-10 11:55:34 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-14\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-10 11:55:34 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-10 11:55:34 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-14\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-10 11:55:34 - booksage - INFO - Filtered to 4 active users 2026-02-10 11:55:34 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 11:55:34 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 11:55:34 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 11:55:34 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-10 11:55:34 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 11:55:34 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 11:55:34 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 11:55:34 - booksage - ERROR - Must call filter_popular_books first 2026-02-10 11:55:34 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 11:55:34 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 11:55:34 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 11:55:34 - booksage - INFO - Filtered to 4 active users 2026-02-10 11:55:34 - booksage - INFO - Merged data shape: (9, 8) 2026-02-10 11:55:34 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-10 11:55:34 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 11:55:34 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-10 11:55:35 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-10 11:55:35 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-10 11:55:35 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-10 11:55:35 - booksage - WARNING - Engine not ready for search 2026-02-10 11:55:35 - booksage - DEBUG - Search for 'test' returned 1 results 2026-02-10 11:55:35 - booksage - DEBUG - Search for 'test' returned 3 results 2026-02-10 11:55:35 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:55:35 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-10 11:55:35 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 11:55:35 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 11:55:35 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 11:55:35 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 11:55:35 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 11:55:35 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 11:55:35 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 11:55:35 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 11:55:35 - booksage - WARNING - No recommendations found from either model 2026-02-10 11:55:35 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 11:55:35 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 11:55:35 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 11:55:35 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 11:55:35 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 11:55:35 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 11:55:35 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 11:55:35 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 11:55:35 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 11:55:35 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-10 11:55:35 - booksage - INFO - Saving models and processed data... 2026-02-10 11:55:35 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 11:55:35 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-14\test_save_models_success0 2026-02-10 11:55:35 - booksage - INFO - Saving models and processed data... 2026-02-10 11:55:35 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-10 11:55:35 - booksage - INFO - Saving models and processed data... 2026-02-10 11:55:35 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 11:55:35 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-14\test_load_models_success0 2026-02-10 11:55:35 - booksage - INFO - Loading models and processed data... 2026-02-10 11:55:35 - booksage - INFO - All models loaded from: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-14\test_load_models_success0 2026-02-10 11:55:35 - booksage - INFO - Loading models and processed data... 2026-02-10 11:55:35 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-10 11:55:35 - booksage - INFO - Loading models and processed data... 2026-02-10 11:55:35 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-10 11:55:35 - booksage - INFO - Loading models and processed data... 2026-02-10 11:55:35 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-10 11:55:35 - booksage - INFO - Saving models and processed data... 2026-02-10 11:55:35 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 11:55:35 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 11:55:35 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-14\test_models_exist_true0 2026-02-10 11:55:35 - booksage - WARNING - Models not trained or loaded 2026-02-10 11:55:35 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-10 11:55:35 - booksage - WARNING - Models not trained or loaded 2026-02-10 11:55:35 - booksage - WARNING - Models not trained or loaded 2026-02-10 11:55:35 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:55:35 - booksage - WARNING - No trained models found 2026-02-10 11:55:35 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:55:35 - booksage - INFO - Models loaded successfully! 2026-02-10 11:55:35 - booksage - INFO - ============================================================ 2026-02-10 11:55:35 - booksage - INFO - Starting model training... 2026-02-10 11:55:35 - booksage - INFO - ============================================================ 2026-02-10 11:55:35 - booksage - INFO - 1. Loading data... 2026-02-10 11:55:35 - booksage - ERROR - Failed to load data 2026-02-10 11:55:35 - booksage - INFO - ============================================================ 2026-02-10 11:55:35 - booksage - INFO - Starting model training... 2026-02-10 11:55:35 - booksage - INFO - ============================================================ 2026-02-10 11:55:35 - booksage - INFO - 1. Loading data... 2026-02-10 11:55:35 - booksage - INFO - 2. Preprocessing data... 2026-02-10 11:55:35 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 11:55:35 - booksage - INFO - 4. Training content-based model... 2026-02-10 11:55:35 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 11:55:35 - booksage - INFO - 6. Saving models... 2026-02-10 11:55:35 - booksage - INFO - ============================================================ 2026-02-10 11:55:35 - booksage - INFO - Model training completed successfully! 2026-02-10 11:55:35 - booksage - INFO - ============================================================ 2026-02-10 11:55:35 - booksage - INFO - ============================================================ 2026-02-10 11:55:35 - booksage - INFO - Starting model training... 2026-02-10 11:55:35 - booksage - INFO - ============================================================ 2026-02-10 11:55:35 - booksage - INFO - 1. Loading data... 2026-02-10 11:55:35 - booksage - INFO - 2. Preprocessing data... 2026-02-10 11:55:35 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 11:55:35 - booksage - INFO - 4. Training content-based model... 2026-02-10 11:55:35 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 11:55:35 - booksage - INFO - 6. Saving models... 2026-02-10 11:55:35 - booksage - ERROR - Failed to save models 2026-02-10 11:55:35 - booksage - INFO - Checking for existing trained models... 2026-02-10 11:55:35 - booksage - ERROR - Failed to load models 2026-02-10 12:09:50 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 12:09:52 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 12:09:52 - booksage - INFO - Checking for existing trained models... 2026-02-10 12:09:52 - booksage - INFO - Loading models and processed data... 2026-02-10 12:09:52 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 12:09:52 - booksage - INFO - Models loaded successfully! 2026-02-10 12:17:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 12:17:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 12:17:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 12:17:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 12:17:38 - booksage - WARNING - Model not trained yet 2026-02-10 12:17:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 12:17:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 12:17:38 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-10 12:17:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 12:17:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 12:17:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 12:17:38 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-10 12:17:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 12:17:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 12:17:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 12:17:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 12:17:38 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-10 12:17:38 - booksage - INFO - Training collaborative filtering model... 2026-02-10 12:17:38 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-10 12:17:38 - booksage - INFO - Training content-based model... 2026-02-10 12:17:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 12:17:38 - booksage - INFO - Training content-based model... 2026-02-10 12:17:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 12:17:38 - booksage - INFO - Training content-based model... 2026-02-10 12:17:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 12:17:38 - booksage - WARNING - Model not trained yet 2026-02-10 12:17:38 - booksage - INFO - Training content-based model... 2026-02-10 12:17:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 12:17:38 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-10 12:17:38 - booksage - INFO - Training content-based model... 2026-02-10 12:17:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 12:17:38 - booksage - INFO - Training content-based model... 2026-02-10 12:17:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 12:17:38 - booksage - INFO - Training content-based model... 2026-02-10 12:17:38 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-10 12:17:38 - booksage - INFO - Training content-based model... 2026-02-10 12:17:38 - booksage - INFO - Content-based model trained successfully 2026-02-10 12:17:38 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-10 12:17:38 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-10 12:17:38 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-15\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-10 12:17:38 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-10 12:17:38 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-15\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-10 12:17:38 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-10 12:17:38 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\emon1\\AppData\\Local\\Temp\\pytest-of-emon1\\pytest-15\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-10 12:17:38 - booksage - INFO - Filtered to 4 active users 2026-02-10 12:17:38 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 12:17:38 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 12:17:38 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 12:17:38 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-10 12:17:38 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 12:17:38 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 12:17:38 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 12:17:38 - booksage - ERROR - Must call filter_popular_books first 2026-02-10 12:17:38 - booksage - INFO - Merged data shape: (10, 8) 2026-02-10 12:17:38 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-10 12:17:38 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 12:17:38 - booksage - INFO - Filtered to 4 active users 2026-02-10 12:17:38 - booksage - INFO - Merged data shape: (9, 8) 2026-02-10 12:17:38 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-10 12:17:38 - booksage - INFO - Books content shape: (5, 7) 2026-02-10 12:17:38 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-10 12:17:38 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-10 12:17:38 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-10 12:17:38 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-10 12:17:39 - booksage - WARNING - Engine not ready for search 2026-02-10 12:17:39 - booksage - DEBUG - Search for 'test' returned 1 results 2026-02-10 12:17:39 - booksage - DEBUG - Search for 'test' returned 3 results 2026-02-10 12:17:39 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 12:17:39 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-10 12:17:39 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 12:17:39 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 12:17:39 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 12:17:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 12:17:39 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 12:17:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 12:17:39 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 12:17:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 12:17:39 - booksage - WARNING - No recommendations found from either model 2026-02-10 12:17:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 12:17:39 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 12:17:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 12:17:39 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-10 12:17:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 12:17:39 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 12:17:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 12:17:39 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-10 12:17:39 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-10 12:17:39 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-10 12:17:39 - booksage - INFO - Saving models and processed data... 2026-02-10 12:17:39 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 12:17:39 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-15\test_save_models_success0 2026-02-10 12:17:39 - booksage - INFO - Saving models and processed data... 2026-02-10 12:17:39 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-10 12:17:39 - booksage - INFO - Saving models and processed data... 2026-02-10 12:17:39 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 12:17:39 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-15\test_load_models_success0 2026-02-10 12:17:39 - booksage - INFO - Loading models and processed data... 2026-02-10 12:17:39 - booksage - INFO - All models loaded from: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-15\test_load_models_success0 2026-02-10 12:17:39 - booksage - INFO - Loading models and processed data... 2026-02-10 12:17:39 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-10 12:17:39 - booksage - INFO - Loading models and processed data... 2026-02-10 12:17:39 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-10 12:17:39 - booksage - INFO - Loading models and processed data... 2026-02-10 12:17:39 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-10 12:17:39 - booksage - INFO - Saving models and processed data... 2026-02-10 12:17:39 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: books_content.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-10 12:17:39 - booksage - DEBUG - Saved: books_data.pkl 2026-02-10 12:17:39 - booksage - INFO - All models saved to: C:\Users\emon1\AppData\Local\Temp\pytest-of-emon1\pytest-15\test_models_exist_true0 2026-02-10 12:17:39 - booksage - WARNING - Models not trained or loaded 2026-02-10 12:17:39 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-10 12:17:39 - booksage - WARNING - Models not trained or loaded 2026-02-10 12:17:39 - booksage - WARNING - Models not trained or loaded 2026-02-10 12:17:39 - booksage - INFO - Checking for existing trained models... 2026-02-10 12:17:39 - booksage - WARNING - No trained models found 2026-02-10 12:17:39 - booksage - INFO - Checking for existing trained models... 2026-02-10 12:17:39 - booksage - INFO - Models loaded successfully! 2026-02-10 12:17:39 - booksage - INFO - ============================================================ 2026-02-10 12:17:39 - booksage - INFO - Starting model training... 2026-02-10 12:17:39 - booksage - INFO - ============================================================ 2026-02-10 12:17:39 - booksage - INFO - 1. Loading data... 2026-02-10 12:17:39 - booksage - ERROR - Failed to load data 2026-02-10 12:17:39 - booksage - INFO - ============================================================ 2026-02-10 12:17:39 - booksage - INFO - Starting model training... 2026-02-10 12:17:39 - booksage - INFO - ============================================================ 2026-02-10 12:17:39 - booksage - INFO - 1. Loading data... 2026-02-10 12:17:39 - booksage - INFO - 2. Preprocessing data... 2026-02-10 12:17:39 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 12:17:39 - booksage - INFO - 4. Training content-based model... 2026-02-10 12:17:39 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 12:17:39 - booksage - INFO - 6. Saving models... 2026-02-10 12:17:39 - booksage - INFO - ============================================================ 2026-02-10 12:17:39 - booksage - INFO - Model training completed successfully! 2026-02-10 12:17:39 - booksage - INFO - ============================================================ 2026-02-10 12:17:39 - booksage - INFO - ============================================================ 2026-02-10 12:17:39 - booksage - INFO - Starting model training... 2026-02-10 12:17:39 - booksage - INFO - ============================================================ 2026-02-10 12:17:39 - booksage - INFO - 1. Loading data... 2026-02-10 12:17:39 - booksage - INFO - 2. Preprocessing data... 2026-02-10 12:17:39 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-10 12:17:39 - booksage - INFO - 4. Training content-based model... 2026-02-10 12:17:39 - booksage - INFO - 5. Creating hybrid model... 2026-02-10 12:17:39 - booksage - INFO - 6. Saving models... 2026-02-10 12:17:39 - booksage - ERROR - Failed to save models 2026-02-10 12:17:39 - booksage - INFO - Checking for existing trained models... 2026-02-10 12:17:39 - booksage - ERROR - Failed to load models 2026-02-10 12:19:51 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-10 12:19:53 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 12:19:53 - booksage - INFO - Checking for existing trained models... 2026-02-10 12:19:53 - booksage - INFO - Loading models and processed data... 2026-02-10 12:19:53 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 12:19:53 - booksage - INFO - Models loaded successfully! 2026-02-10 12:19:55 - booksage - INFO - Starting BookSage-AI application... 2026-02-10 12:19:55 - booksage - INFO - Checking for existing trained models... 2026-02-10 12:19:55 - booksage - INFO - Loading models and processed data... 2026-02-10 12:19:55 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\another project structure\BookSage-AI\models 2026-02-10 12:19:55 - booksage - INFO - Models loaded successfully! 2026-02-15 12:57:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:57:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:57:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:57:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:57:52 - booksage - WARNING - Model not trained yet 2026-02-15 12:57:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:57:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:57:52 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-15 12:57:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:57:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:57:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:57:52 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-15 12:57:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:57:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:57:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:57:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:57:52 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-15 12:57:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:57:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:57:52 - booksage - INFO - Training content-based model... 2026-02-15 12:57:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:57:52 - booksage - INFO - Training content-based model... 2026-02-15 12:57:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:57:52 - booksage - INFO - Training content-based model... 2026-02-15 12:57:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:57:52 - booksage - WARNING - Model not trained yet 2026-02-15 12:57:52 - booksage - INFO - Training content-based model... 2026-02-15 12:57:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:57:52 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-15 12:57:52 - booksage - INFO - Training content-based model... 2026-02-15 12:57:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:57:52 - booksage - INFO - Training content-based model... 2026-02-15 12:57:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:57:52 - booksage - INFO - Training content-based model... 2026-02-15 12:57:52 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-15 12:57:52 - booksage - INFO - Training content-based model... 2026-02-15 12:57:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:57:52 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-15 12:57:52 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-15 12:57:52 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-0\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-15 12:57:52 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-15 12:57:52 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-0\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-15 12:57:52 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-15 12:57:52 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-0\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-15 12:57:52 - booksage - INFO - Filtered to 4 active users 2026-02-15 12:57:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 12:57:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 12:57:52 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 12:57:52 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-15 12:57:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 12:57:52 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 12:57:52 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 12:57:52 - booksage - ERROR - Must call filter_popular_books first 2026-02-15 12:57:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 12:57:52 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 12:57:52 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 12:57:52 - booksage - INFO - Filtered to 4 active users 2026-02-15 12:57:52 - booksage - INFO - Merged data shape: (9, 8) 2026-02-15 12:57:52 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-15 12:57:52 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 12:57:53 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 12:57:53 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-15 12:57:53 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 12:57:53 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 12:57:53 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 12:57:53 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:57:53 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 12:57:53 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:57:53 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 12:57:53 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:57:53 - booksage - WARNING - No recommendations found from either model 2026-02-15 12:57:53 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:57:53 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-15 12:57:53 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:57:53 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-15 12:57:53 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:57:53 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 12:57:53 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:57:53 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 12:57:53 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:57:53 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-15 12:57:53 - booksage - INFO - Saving models and processed data... 2026-02-15 12:57:53 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 12:57:53 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-0\test_save_models_success0 2026-02-15 12:57:53 - booksage - INFO - Saving models and processed data... 2026-02-15 12:57:53 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-15 12:57:53 - booksage - INFO - Saving models and processed data... 2026-02-15 12:57:53 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 12:57:53 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-0\test_load_models_success0 2026-02-15 12:57:53 - booksage - INFO - Loading models and processed data... 2026-02-15 12:57:53 - booksage - INFO - All models loaded from: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-0\test_load_models_success0 2026-02-15 12:57:53 - booksage - INFO - Loading models and processed data... 2026-02-15 12:57:53 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-15 12:57:53 - booksage - INFO - Loading models and processed data... 2026-02-15 12:57:53 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-15 12:57:53 - booksage - INFO - Loading models and processed data... 2026-02-15 12:57:53 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-15 12:57:53 - booksage - INFO - Saving models and processed data... 2026-02-15 12:57:53 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 12:57:53 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 12:57:53 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-0\test_models_exist_true0 2026-02-15 12:57:53 - booksage - WARNING - Models not trained or loaded 2026-02-15 12:57:53 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-15 12:57:53 - booksage - WARNING - Models not trained or loaded 2026-02-15 12:57:53 - booksage - WARNING - Models not trained or loaded 2026-02-15 12:57:53 - booksage - INFO - Checking for existing trained models... 2026-02-15 12:57:53 - booksage - WARNING - No trained models found 2026-02-15 12:57:53 - booksage - INFO - Checking for existing trained models... 2026-02-15 12:57:53 - booksage - INFO - Models loaded successfully! 2026-02-15 12:57:53 - booksage - INFO - ============================================================ 2026-02-15 12:57:53 - booksage - INFO - Starting model training... 2026-02-15 12:57:53 - booksage - INFO - ============================================================ 2026-02-15 12:57:53 - booksage - INFO - 1. Loading data... 2026-02-15 12:57:53 - booksage - ERROR - Failed to load data 2026-02-15 12:57:53 - booksage - INFO - ============================================================ 2026-02-15 12:57:53 - booksage - INFO - Starting model training... 2026-02-15 12:57:53 - booksage - INFO - ============================================================ 2026-02-15 12:57:53 - booksage - INFO - 1. Loading data... 2026-02-15 12:57:53 - booksage - INFO - 2. Preprocessing data... 2026-02-15 12:57:53 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-15 12:57:53 - booksage - INFO - 4. Training content-based model... 2026-02-15 12:57:53 - booksage - INFO - 5. Creating hybrid model... 2026-02-15 12:57:53 - booksage - INFO - 6. Saving models... 2026-02-15 12:57:53 - booksage - INFO - ============================================================ 2026-02-15 12:57:53 - booksage - INFO - Model training completed successfully! 2026-02-15 12:57:53 - booksage - INFO - ============================================================ 2026-02-15 12:57:53 - booksage - INFO - ============================================================ 2026-02-15 12:57:53 - booksage - INFO - Starting model training... 2026-02-15 12:57:53 - booksage - INFO - ============================================================ 2026-02-15 12:57:53 - booksage - INFO - 1. Loading data... 2026-02-15 12:57:53 - booksage - INFO - 2. Preprocessing data... 2026-02-15 12:57:53 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-15 12:57:53 - booksage - INFO - 4. Training content-based model... 2026-02-15 12:57:53 - booksage - INFO - 5. Creating hybrid model... 2026-02-15 12:57:53 - booksage - INFO - 6. Saving models... 2026-02-15 12:57:53 - booksage - ERROR - Failed to save models 2026-02-15 12:57:53 - booksage - INFO - Checking for existing trained models... 2026-02-15 12:57:53 - booksage - ERROR - Failed to load models 2026-02-15 12:58:23 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:58:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:58:23 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:58:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:58:23 - booksage - WARNING - Model not trained yet 2026-02-15 12:58:23 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:58:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:58:23 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-15 12:58:23 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:58:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:58:23 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:58:23 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-15 12:58:23 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:58:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:58:23 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:58:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:58:23 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-15 12:58:23 - booksage - INFO - Training collaborative filtering model... 2026-02-15 12:58:23 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 12:58:23 - booksage - INFO - Training content-based model... 2026-02-15 12:58:23 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:58:23 - booksage - INFO - Training content-based model... 2026-02-15 12:58:23 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:58:23 - booksage - INFO - Training content-based model... 2026-02-15 12:58:23 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:58:23 - booksage - WARNING - Model not trained yet 2026-02-15 12:58:23 - booksage - INFO - Training content-based model... 2026-02-15 12:58:23 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:58:23 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-15 12:58:23 - booksage - INFO - Training content-based model... 2026-02-15 12:58:23 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:58:23 - booksage - INFO - Training content-based model... 2026-02-15 12:58:23 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:58:23 - booksage - INFO - Training content-based model... 2026-02-15 12:58:23 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-15 12:58:23 - booksage - INFO - Training content-based model... 2026-02-15 12:58:23 - booksage - INFO - Content-based model trained successfully 2026-02-15 12:58:23 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-15 12:58:23 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-15 12:58:23 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-1\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-15 12:58:23 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-15 12:58:23 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-1\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-15 12:58:23 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-15 12:58:23 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-1\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-15 12:58:23 - booksage - INFO - Filtered to 4 active users 2026-02-15 12:58:23 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 12:58:23 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 12:58:23 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 12:58:23 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-15 12:58:24 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 12:58:24 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 12:58:24 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 12:58:24 - booksage - ERROR - Must call filter_popular_books first 2026-02-15 12:58:24 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 12:58:24 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 12:58:24 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 12:58:24 - booksage - INFO - Filtered to 4 active users 2026-02-15 12:58:24 - booksage - INFO - Merged data shape: (9, 8) 2026-02-15 12:58:24 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-15 12:58:24 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 12:58:24 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-15 12:58:24 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-15 12:58:24 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-15 12:58:24 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-15 12:58:24 - booksage - WARNING - Engine not ready for search 2026-02-15 12:58:24 - booksage - DEBUG - Search for 'test' returned 1 results 2026-02-15 12:58:24 - booksage - DEBUG - Search for 'test' returned 3 results 2026-02-15 12:58:24 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 12:58:24 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-15 12:58:24 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 12:58:24 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 12:58:24 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 12:58:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:58:24 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 12:58:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:58:24 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 12:58:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:58:24 - booksage - WARNING - No recommendations found from either model 2026-02-15 12:58:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:58:24 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-15 12:58:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:58:24 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-15 12:58:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:58:24 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 12:58:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:58:24 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 12:58:24 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 12:58:24 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-15 12:58:24 - booksage - INFO - Saving models and processed data... 2026-02-15 12:58:24 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 12:58:24 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-1\test_save_models_success0 2026-02-15 12:58:24 - booksage - INFO - Saving models and processed data... 2026-02-15 12:58:24 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-15 12:58:24 - booksage - INFO - Saving models and processed data... 2026-02-15 12:58:24 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 12:58:24 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-1\test_load_models_success0 2026-02-15 12:58:24 - booksage - INFO - Loading models and processed data... 2026-02-15 12:58:24 - booksage - INFO - All models loaded from: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-1\test_load_models_success0 2026-02-15 12:58:24 - booksage - INFO - Loading models and processed data... 2026-02-15 12:58:24 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-15 12:58:24 - booksage - INFO - Loading models and processed data... 2026-02-15 12:58:24 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-15 12:58:24 - booksage - INFO - Loading models and processed data... 2026-02-15 12:58:24 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-15 12:58:24 - booksage - INFO - Saving models and processed data... 2026-02-15 12:58:24 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 12:58:24 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 12:58:24 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-1\test_models_exist_true0 2026-02-15 12:58:24 - booksage - WARNING - Models not trained or loaded 2026-02-15 12:58:24 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-15 12:58:24 - booksage - WARNING - Models not trained or loaded 2026-02-15 12:58:24 - booksage - WARNING - Models not trained or loaded 2026-02-15 12:58:24 - booksage - INFO - Checking for existing trained models... 2026-02-15 12:58:24 - booksage - WARNING - No trained models found 2026-02-15 12:58:24 - booksage - INFO - Checking for existing trained models... 2026-02-15 12:58:24 - booksage - INFO - Models loaded successfully! 2026-02-15 12:58:24 - booksage - INFO - ============================================================ 2026-02-15 12:58:24 - booksage - INFO - Starting model training... 2026-02-15 12:58:24 - booksage - INFO - ============================================================ 2026-02-15 12:58:24 - booksage - INFO - 1. Loading data... 2026-02-15 12:58:24 - booksage - ERROR - Failed to load data 2026-02-15 12:58:24 - booksage - INFO - ============================================================ 2026-02-15 12:58:24 - booksage - INFO - Starting model training... 2026-02-15 12:58:24 - booksage - INFO - ============================================================ 2026-02-15 12:58:24 - booksage - INFO - 1. Loading data... 2026-02-15 12:58:24 - booksage - INFO - 2. Preprocessing data... 2026-02-15 12:58:24 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-15 12:58:24 - booksage - INFO - 4. Training content-based model... 2026-02-15 12:58:24 - booksage - INFO - 5. Creating hybrid model... 2026-02-15 12:58:24 - booksage - INFO - 6. Saving models... 2026-02-15 12:58:24 - booksage - INFO - ============================================================ 2026-02-15 12:58:24 - booksage - INFO - Model training completed successfully! 2026-02-15 12:58:24 - booksage - INFO - ============================================================ 2026-02-15 12:58:24 - booksage - INFO - ============================================================ 2026-02-15 12:58:24 - booksage - INFO - Starting model training... 2026-02-15 12:58:24 - booksage - INFO - ============================================================ 2026-02-15 12:58:24 - booksage - INFO - 1. Loading data... 2026-02-15 12:58:24 - booksage - INFO - 2. Preprocessing data... 2026-02-15 12:58:24 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-15 12:58:24 - booksage - INFO - 4. Training content-based model... 2026-02-15 12:58:24 - booksage - INFO - 5. Creating hybrid model... 2026-02-15 12:58:24 - booksage - INFO - 6. Saving models... 2026-02-15 12:58:24 - booksage - ERROR - Failed to save models 2026-02-15 12:58:24 - booksage - INFO - Checking for existing trained models... 2026-02-15 12:58:24 - booksage - ERROR - Failed to load models 2026-02-15 13:01:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:01:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:01:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:01:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:01:52 - booksage - WARNING - Model not trained yet 2026-02-15 13:01:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:01:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:01:52 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-15 13:01:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:01:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:01:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:01:52 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-15 13:01:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:01:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:01:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:01:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:01:52 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-15 13:01:52 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:01:52 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:01:52 - booksage - INFO - Training content-based model... 2026-02-15 13:01:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:01:52 - booksage - INFO - Training content-based model... 2026-02-15 13:01:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:01:52 - booksage - INFO - Training content-based model... 2026-02-15 13:01:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:01:52 - booksage - WARNING - Model not trained yet 2026-02-15 13:01:52 - booksage - INFO - Training content-based model... 2026-02-15 13:01:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:01:52 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-15 13:01:52 - booksage - INFO - Training content-based model... 2026-02-15 13:01:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:01:52 - booksage - INFO - Training content-based model... 2026-02-15 13:01:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:01:52 - booksage - INFO - Training content-based model... 2026-02-15 13:01:52 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-15 13:01:52 - booksage - INFO - Training content-based model... 2026-02-15 13:01:52 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:01:52 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-15 13:01:52 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-15 13:01:52 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-2\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-15 13:01:52 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-15 13:01:52 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-2\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-15 13:01:52 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-15 13:01:52 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-2\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-15 13:01:52 - booksage - INFO - Filtered to 4 active users 2026-02-15 13:01:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:01:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:01:52 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 13:01:52 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-15 13:01:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:01:52 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 13:01:52 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 13:01:52 - booksage - ERROR - Must call filter_popular_books first 2026-02-15 13:01:52 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:01:52 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 13:01:52 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 13:01:52 - booksage - INFO - Filtered to 4 active users 2026-02-15 13:01:52 - booksage - INFO - Merged data shape: (9, 8) 2026-02-15 13:01:52 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-15 13:01:52 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 13:01:52 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-15 13:01:52 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-15 13:01:52 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-15 13:01:52 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-15 13:01:52 - booksage - WARNING - Engine not ready for search 2026-02-15 13:01:52 - booksage - DEBUG - Search for 'test' returned 1 results 2026-02-15 13:01:52 - booksage - DEBUG - Search for 'test' returned 3 results 2026-02-15 13:01:52 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:01:52 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-15 13:01:52 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 13:01:52 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:01:52 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 13:01:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:01:52 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:01:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:01:52 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:01:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:01:52 - booksage - WARNING - No recommendations found from either model 2026-02-15 13:01:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:01:52 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-15 13:01:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:01:52 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-15 13:01:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:01:52 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:01:52 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:01:52 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:01:53 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:01:53 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-15 13:01:53 - booksage - INFO - Saving models and processed data... 2026-02-15 13:01:53 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 13:01:53 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-2\test_save_models_success0 2026-02-15 13:01:53 - booksage - INFO - Saving models and processed data... 2026-02-15 13:01:53 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-15 13:01:53 - booksage - INFO - Saving models and processed data... 2026-02-15 13:01:53 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 13:01:53 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-2\test_load_models_success0 2026-02-15 13:01:53 - booksage - INFO - Loading models and processed data... 2026-02-15 13:01:53 - booksage - INFO - All models loaded from: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-2\test_load_models_success0 2026-02-15 13:01:53 - booksage - INFO - Loading models and processed data... 2026-02-15 13:01:53 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-15 13:01:53 - booksage - INFO - Loading models and processed data... 2026-02-15 13:01:53 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-15 13:01:53 - booksage - INFO - Loading models and processed data... 2026-02-15 13:01:53 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-15 13:01:53 - booksage - INFO - Saving models and processed data... 2026-02-15 13:01:53 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 13:01:53 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 13:01:53 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-2\test_models_exist_true0 2026-02-15 13:01:53 - booksage - WARNING - Models not trained or loaded 2026-02-15 13:01:53 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-15 13:01:53 - booksage - WARNING - Models not trained or loaded 2026-02-15 13:01:53 - booksage - WARNING - Models not trained or loaded 2026-02-15 13:01:53 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:01:53 - booksage - WARNING - No trained models found 2026-02-15 13:01:53 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:01:53 - booksage - INFO - Models loaded successfully! 2026-02-15 13:01:53 - booksage - INFO - ============================================================ 2026-02-15 13:01:53 - booksage - INFO - Starting model training... 2026-02-15 13:01:53 - booksage - INFO - ============================================================ 2026-02-15 13:01:53 - booksage - INFO - 1. Loading data... 2026-02-15 13:01:53 - booksage - ERROR - Failed to load data 2026-02-15 13:01:53 - booksage - INFO - ============================================================ 2026-02-15 13:01:53 - booksage - INFO - Starting model training... 2026-02-15 13:01:53 - booksage - INFO - ============================================================ 2026-02-15 13:01:53 - booksage - INFO - 1. Loading data... 2026-02-15 13:01:53 - booksage - INFO - 2. Preprocessing data... 2026-02-15 13:01:53 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-15 13:01:53 - booksage - INFO - 4. Training content-based model... 2026-02-15 13:01:53 - booksage - INFO - 5. Creating hybrid model... 2026-02-15 13:01:53 - booksage - INFO - 6. Saving models... 2026-02-15 13:01:53 - booksage - INFO - ============================================================ 2026-02-15 13:01:53 - booksage - INFO - Model training completed successfully! 2026-02-15 13:01:53 - booksage - INFO - ============================================================ 2026-02-15 13:01:53 - booksage - INFO - ============================================================ 2026-02-15 13:01:53 - booksage - INFO - Starting model training... 2026-02-15 13:01:53 - booksage - INFO - ============================================================ 2026-02-15 13:01:53 - booksage - INFO - 1. Loading data... 2026-02-15 13:01:53 - booksage - INFO - 2. Preprocessing data... 2026-02-15 13:01:53 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-15 13:01:53 - booksage - INFO - 4. Training content-based model... 2026-02-15 13:01:53 - booksage - INFO - 5. Creating hybrid model... 2026-02-15 13:01:53 - booksage - INFO - 6. Saving models... 2026-02-15 13:01:53 - booksage - ERROR - Failed to save models 2026-02-15 13:01:53 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:01:53 - booksage - ERROR - Failed to load models 2026-02-15 13:20:31 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:20:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:20:31 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:20:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:20:31 - booksage - WARNING - Model not trained yet 2026-02-15 13:20:31 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:20:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:20:31 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-15 13:20:31 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:20:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:20:31 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:20:31 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-15 13:20:31 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:20:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:20:31 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:20:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:20:31 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-15 13:20:31 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:20:31 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:20:31 - booksage - INFO - Training content-based model... 2026-02-15 13:20:31 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:20:31 - booksage - INFO - Training content-based model... 2026-02-15 13:20:31 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:20:31 - booksage - INFO - Training content-based model... 2026-02-15 13:20:31 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:20:31 - booksage - WARNING - Model not trained yet 2026-02-15 13:20:31 - booksage - INFO - Training content-based model... 2026-02-15 13:20:31 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:20:31 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-15 13:20:31 - booksage - INFO - Training content-based model... 2026-02-15 13:20:31 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:20:31 - booksage - INFO - Training content-based model... 2026-02-15 13:20:31 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:20:31 - booksage - INFO - Training content-based model... 2026-02-15 13:20:31 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-15 13:20:31 - booksage - INFO - Training content-based model... 2026-02-15 13:20:31 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:20:31 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-15 13:20:31 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-15 13:20:31 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-3\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-15 13:20:31 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-15 13:20:31 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-3\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-15 13:20:31 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-15 13:20:31 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-3\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-15 13:20:31 - booksage - INFO - Filtered to 4 active users 2026-02-15 13:20:31 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:20:31 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:20:31 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 13:20:31 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-15 13:20:31 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:20:31 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 13:20:31 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 13:20:31 - booksage - ERROR - Must call filter_popular_books first 2026-02-15 13:20:31 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:20:31 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 13:20:31 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 13:20:31 - booksage - INFO - Filtered to 4 active users 2026-02-15 13:20:31 - booksage - INFO - Merged data shape: (9, 8) 2026-02-15 13:20:31 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-15 13:20:31 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 13:20:31 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-15 13:20:31 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-15 13:20:31 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-15 13:20:31 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-15 13:20:31 - booksage - WARNING - Engine not ready for search 2026-02-15 13:20:32 - booksage - DEBUG - Search for 'test' returned 1 results 2026-02-15 13:20:32 - booksage - DEBUG - Search for 'test' returned 3 results 2026-02-15 13:20:32 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:20:32 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-15 13:20:32 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 13:20:32 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:20:32 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 13:20:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:20:32 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:20:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:20:32 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:20:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:20:32 - booksage - WARNING - No recommendations found from either model 2026-02-15 13:20:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:20:32 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-15 13:20:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:20:32 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-15 13:20:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:20:32 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:20:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:20:32 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:20:32 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:20:32 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-15 13:20:32 - booksage - INFO - Saving models and processed data... 2026-02-15 13:20:32 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 13:20:32 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-3\test_save_models_success0 2026-02-15 13:20:32 - booksage - INFO - Saving models and processed data... 2026-02-15 13:20:32 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-15 13:20:32 - booksage - INFO - Saving models and processed data... 2026-02-15 13:20:32 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 13:20:32 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-3\test_load_models_success0 2026-02-15 13:20:32 - booksage - INFO - Loading models and processed data... 2026-02-15 13:20:32 - booksage - INFO - All models loaded from: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-3\test_load_models_success0 2026-02-15 13:20:32 - booksage - INFO - Loading models and processed data... 2026-02-15 13:20:32 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-15 13:20:32 - booksage - INFO - Loading models and processed data... 2026-02-15 13:20:32 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-15 13:20:32 - booksage - INFO - Loading models and processed data... 2026-02-15 13:20:32 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-15 13:20:32 - booksage - INFO - Saving models and processed data... 2026-02-15 13:20:32 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 13:20:32 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 13:20:32 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-3\test_models_exist_true0 2026-02-15 13:20:32 - booksage - WARNING - Models not trained or loaded 2026-02-15 13:20:32 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-15 13:20:32 - booksage - WARNING - Models not trained or loaded 2026-02-15 13:20:32 - booksage - WARNING - Models not trained or loaded 2026-02-15 13:20:32 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:20:32 - booksage - WARNING - No trained models found 2026-02-15 13:20:32 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:20:32 - booksage - INFO - Models loaded successfully! 2026-02-15 13:20:32 - booksage - INFO - ============================================================ 2026-02-15 13:20:32 - booksage - INFO - Starting model training... 2026-02-15 13:20:32 - booksage - INFO - ============================================================ 2026-02-15 13:20:32 - booksage - INFO - 1. Loading data... 2026-02-15 13:20:32 - booksage - ERROR - Failed to load data 2026-02-15 13:20:32 - booksage - INFO - ============================================================ 2026-02-15 13:20:32 - booksage - INFO - Starting model training... 2026-02-15 13:20:32 - booksage - INFO - ============================================================ 2026-02-15 13:20:32 - booksage - INFO - 1. Loading data... 2026-02-15 13:20:32 - booksage - INFO - 2. Preprocessing data... 2026-02-15 13:20:32 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-15 13:20:32 - booksage - INFO - 4. Training content-based model... 2026-02-15 13:20:32 - booksage - INFO - 5. Creating hybrid model... 2026-02-15 13:20:32 - booksage - INFO - 6. Saving models... 2026-02-15 13:20:32 - booksage - INFO - ============================================================ 2026-02-15 13:20:32 - booksage - INFO - Model training completed successfully! 2026-02-15 13:20:32 - booksage - INFO - ============================================================ 2026-02-15 13:20:32 - booksage - INFO - ============================================================ 2026-02-15 13:20:32 - booksage - INFO - Starting model training... 2026-02-15 13:20:32 - booksage - INFO - ============================================================ 2026-02-15 13:20:32 - booksage - INFO - 1. Loading data... 2026-02-15 13:20:32 - booksage - INFO - 2. Preprocessing data... 2026-02-15 13:20:32 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-15 13:20:32 - booksage - INFO - 4. Training content-based model... 2026-02-15 13:20:32 - booksage - INFO - 5. Creating hybrid model... 2026-02-15 13:20:32 - booksage - INFO - 6. Saving models... 2026-02-15 13:20:32 - booksage - ERROR - Failed to save models 2026-02-15 13:20:32 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:20:32 - booksage - ERROR - Failed to load models 2026-02-15 13:24:16 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:24:16 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:24:16 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:24:16 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:24:16 - booksage - WARNING - Model not trained yet 2026-02-15 13:24:16 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:24:16 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:24:16 - booksage - WARNING - Book 'Nonexistent Book' not found in collaborative filtering data 2026-02-15 13:24:16 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:24:16 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:24:16 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:24:16 - booksage - ERROR - Error training collaborative filtering model: 'rating' 2026-02-15 13:24:16 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:24:16 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:24:16 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:24:16 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:24:16 - booksage - ERROR - Error in collaborative recommendations: 'NoneType' object is not subscriptable 2026-02-15 13:24:16 - booksage - INFO - Training collaborative filtering model... 2026-02-15 13:24:16 - booksage - INFO - Collaborative filtering model trained successfully 2026-02-15 13:24:16 - booksage - INFO - Training content-based model... 2026-02-15 13:24:16 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:24:16 - booksage - INFO - Training content-based model... 2026-02-15 13:24:16 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:24:16 - booksage - INFO - Training content-based model... 2026-02-15 13:24:16 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:24:16 - booksage - WARNING - Model not trained yet 2026-02-15 13:24:16 - booksage - INFO - Training content-based model... 2026-02-15 13:24:16 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:24:16 - booksage - WARNING - Book 'Nonexistent Book' not found in content-based data 2026-02-15 13:24:16 - booksage - INFO - Training content-based model... 2026-02-15 13:24:16 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:24:16 - booksage - INFO - Training content-based model... 2026-02-15 13:24:16 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:24:16 - booksage - INFO - Training content-based model... 2026-02-15 13:24:16 - booksage - ERROR - Error training content-based model: 'content_features' 2026-02-15 13:24:16 - booksage - INFO - Training content-based model... 2026-02-15 13:24:16 - booksage - INFO - Content-based model trained successfully 2026-02-15 13:24:16 - booksage - ERROR - Error in content recommendations: 'NoneType' object is not subscriptable 2026-02-15 13:24:16 - booksage - INFO - Books data loaded successfully. Shape: (5, 6) 2026-02-15 13:24:16 - booksage - ERROR - Error loading books data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-4\\test_load_books_file_not_found0\\nonexistent.csv' 2026-02-15 13:24:16 - booksage - INFO - Users data loaded successfully. Shape: (5, 3) 2026-02-15 13:24:16 - booksage - ERROR - Error loading users data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-4\\test_load_users_file_not_found0\\nonexistent.csv' 2026-02-15 13:24:16 - booksage - INFO - Ratings data loaded successfully. Shape: (10, 3) 2026-02-15 13:24:16 - booksage - ERROR - Error loading ratings data: [Errno 2] No such file or directory: 'C:\\Users\\codix\\AppData\\Local\\Temp\\pytest-of-codix\\pytest-4\\test_load_ratings_file_not_fou0\\nonexistent.csv' 2026-02-15 13:24:16 - booksage - INFO - Filtered to 4 active users 2026-02-15 13:24:16 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:24:16 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:24:16 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 13:24:16 - booksage - ERROR - Must call merge_ratings_with_books first 2026-02-15 13:24:16 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:24:16 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 13:24:16 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 13:24:16 - booksage - ERROR - Must call filter_popular_books first 2026-02-15 13:24:16 - booksage - INFO - Merged data shape: (10, 8) 2026-02-15 13:24:16 - booksage - INFO - Final rating data shape: (10, 9) 2026-02-15 13:24:16 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 13:24:16 - booksage - INFO - Filtered to 4 active users 2026-02-15 13:24:16 - booksage - INFO - Merged data shape: (9, 8) 2026-02-15 13:24:16 - booksage - INFO - Final rating data shape: (9, 9) 2026-02-15 13:24:16 - booksage - INFO - Books content shape: (5, 7) 2026-02-15 13:24:16 - booksage - INFO - Generated 1 hybrid recommendations for 'The Great Gatsby' 2026-02-15 13:24:16 - booksage - INFO - Generated 1 collaborative recommendations for 'The Great Gatsby' 2026-02-15 13:24:16 - booksage - INFO - Generated 1 content recommendations for 'The Great Gatsby' 2026-02-15 13:24:16 - booksage - DEBUG - Search for 'gatsby' returned 1 results 2026-02-15 13:24:16 - booksage - WARNING - Engine not ready for search 2026-02-15 13:24:16 - booksage - DEBUG - Search for 'test' returned 1 results 2026-02-15 13:24:17 - booksage - DEBUG - Search for 'test' returned 3 results 2026-02-15 13:24:17 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:24:17 - booksage - WARNING - No pre-trained models found. Please train models first using the training script. 2026-02-15 13:24:17 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 13:24:17 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:24:17 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 13:24:17 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:24:17 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:24:17 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:24:17 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:24:17 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:24:17 - booksage - WARNING - No recommendations found from either model 2026-02-15 13:24:17 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:24:17 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-15 13:24:17 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:24:17 - booksage - DEBUG - Generated 2 hybrid recommendations 2026-02-15 13:24:17 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:24:17 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:24:17 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:24:17 - booksage - DEBUG - Generated 3 hybrid recommendations 2026-02-15 13:24:17 - booksage - DEBUG - Generating hybrid recommendations for: Test Book 2026-02-15 13:24:17 - booksage - ERROR - Error in hybrid recommendations: Test error 2026-02-15 13:24:17 - booksage - INFO - Saving models and processed data... 2026-02-15 13:24:17 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 13:24:17 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-4\test_save_models_success0 2026-02-15 13:24:17 - booksage - INFO - Saving models and processed data... 2026-02-15 13:24:17 - booksage - ERROR - Error saving models: [Errno 2] No such file or directory: '\\invalid\\path\\that\\does\\not\\exist\\cf_model.pkl' 2026-02-15 13:24:17 - booksage - INFO - Saving models and processed data... 2026-02-15 13:24:17 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 13:24:17 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-4\test_load_models_success0 2026-02-15 13:24:17 - booksage - INFO - Loading models and processed data... 2026-02-15 13:24:17 - booksage - INFO - All models loaded from: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-4\test_load_models_success0 2026-02-15 13:24:17 - booksage - INFO - Loading models and processed data... 2026-02-15 13:24:17 - booksage - ERROR - Required file not found: cf_model.pkl 2026-02-15 13:24:17 - booksage - INFO - Loading models and processed data... 2026-02-15 13:24:17 - booksage - ERROR - Required file not found: cb_model.pkl 2026-02-15 13:24:17 - booksage - INFO - Loading models and processed data... 2026-02-15 13:24:17 - booksage - ERROR - Error loading models: pickle data was truncated 2026-02-15 13:24:17 - booksage - INFO - Saving models and processed data... 2026-02-15 13:24:17 - booksage - DEBUG - Saved: cf_model.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: cb_model.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: book_pivot.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: tfidf_vectorizer.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: content_sim_matrix.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: title_to_idx.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: books_content.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: final_rating.pkl 2026-02-15 13:24:17 - booksage - DEBUG - Saved: books_data.pkl 2026-02-15 13:24:17 - booksage - INFO - All models saved to: C:\Users\codix\AppData\Local\Temp\pytest-of-codix\pytest-4\test_models_exist_true0 2026-02-15 13:24:17 - booksage - WARNING - Models not trained or loaded 2026-02-15 13:24:17 - booksage - WARNING - Invalid method. Use 'collaborative', 'content', or 'hybrid' 2026-02-15 13:24:17 - booksage - WARNING - Models not trained or loaded 2026-02-15 13:24:17 - booksage - WARNING - Models not trained or loaded 2026-02-15 13:24:17 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:24:17 - booksage - WARNING - No trained models found 2026-02-15 13:24:17 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:24:17 - booksage - INFO - Models loaded successfully! 2026-02-15 13:24:17 - booksage - INFO - ============================================================ 2026-02-15 13:24:17 - booksage - INFO - Starting model training... 2026-02-15 13:24:17 - booksage - INFO - ============================================================ 2026-02-15 13:24:17 - booksage - INFO - 1. Loading data... 2026-02-15 13:24:17 - booksage - ERROR - Failed to load data 2026-02-15 13:24:17 - booksage - INFO - ============================================================ 2026-02-15 13:24:17 - booksage - INFO - Starting model training... 2026-02-15 13:24:17 - booksage - INFO - ============================================================ 2026-02-15 13:24:17 - booksage - INFO - 1. Loading data... 2026-02-15 13:24:17 - booksage - INFO - 2. Preprocessing data... 2026-02-15 13:24:17 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-15 13:24:17 - booksage - INFO - 4. Training content-based model... 2026-02-15 13:24:17 - booksage - INFO - 5. Creating hybrid model... 2026-02-15 13:24:17 - booksage - INFO - 6. Saving models... 2026-02-15 13:24:17 - booksage - INFO - ============================================================ 2026-02-15 13:24:17 - booksage - INFO - Model training completed successfully! 2026-02-15 13:24:17 - booksage - INFO - ============================================================ 2026-02-15 13:24:17 - booksage - INFO - ============================================================ 2026-02-15 13:24:17 - booksage - INFO - Starting model training... 2026-02-15 13:24:17 - booksage - INFO - ============================================================ 2026-02-15 13:24:17 - booksage - INFO - 1. Loading data... 2026-02-15 13:24:17 - booksage - INFO - 2. Preprocessing data... 2026-02-15 13:24:17 - booksage - INFO - 3. Training collaborative filtering model... 2026-02-15 13:24:17 - booksage - INFO - 4. Training content-based model... 2026-02-15 13:24:17 - booksage - INFO - 5. Creating hybrid model... 2026-02-15 13:24:17 - booksage - INFO - 6. Saving models... 2026-02-15 13:24:17 - booksage - ERROR - Failed to save models 2026-02-15 13:24:17 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:24:17 - booksage - ERROR - Failed to load models 2026-02-15 13:29:27 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:29:27 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:29:27 - booksage - INFO - Loading models and processed data... 2026-02-15 13:29:28 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 13:29:28 - booksage - INFO - Models loaded successfully! 2026-02-15 13:52:41 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:52:41 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:52:41 - booksage - INFO - Loading models and processed data... 2026-02-15 13:52:41 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 13:52:41 - booksage - INFO - Models loaded successfully! 2026-02-15 13:52:41 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 13:53:19 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:53:19 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:53:19 - booksage - INFO - Loading models and processed data... 2026-02-15 13:53:19 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 13:53:19 - booksage - INFO - Models loaded successfully! 2026-02-15 13:53:19 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 13:54:51 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:54:51 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:54:51 - booksage - INFO - Loading models and processed data... 2026-02-15 13:54:51 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 13:54:51 - booksage - INFO - Models loaded successfully! 2026-02-15 13:55:01 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 13:55:30 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 13:55:30 - booksage - INFO - Checking for existing trained models... 2026-02-15 13:55:30 - booksage - INFO - Loading models and processed data... 2026-02-15 13:55:30 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 13:55:30 - booksage - INFO - Models loaded successfully! 2026-02-15 13:57:17 - booksage - DEBUG - Search for 'Wild Animus' returned 1 results 2026-02-15 13:57:49 - booksage - DEBUG - Generating hybrid recommendations for: Wild Animus 2026-02-15 13:57:49 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-15 13:57:49 - booksage - INFO - Generated 9 hybrid recommendations for 'Wild Animus' 2026-02-15 14:05:37 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 14:05:37 - booksage - INFO - Checking for existing trained models... 2026-02-15 14:05:37 - booksage - INFO - Loading models and processed data... 2026-02-15 14:05:37 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 14:05:37 - booksage - INFO - Models loaded successfully! 2026-02-15 14:13:11 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 14:13:11 - booksage - INFO - Checking for existing trained models... 2026-02-15 14:13:11 - booksage - INFO - Loading models and processed data... 2026-02-15 14:13:12 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 14:13:12 - booksage - INFO - Models loaded successfully! 2026-02-15 14:13:23 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 14:13:27 - booksage - DEBUG - Search for 'wil' returned 5 results 2026-02-15 14:13:27 - booksage - DEBUG - Search for 'wild' returned 9 results 2026-02-15 14:13:31 - booksage - INFO - Generated 9 collaborative recommendations for 'Wild Animus' 2026-02-15 14:13:48 - booksage - INFO - Generated 9 collaborative recommendations for 'The Andromeda Strain' 2026-02-15 14:13:52 - booksage - DEBUG - Generating hybrid recommendations for: The Hot Zone 2026-02-15 14:13:52 - booksage - ERROR - Error in content recommendations: index 4481 is out of bounds for axis 0 with size 742 2026-02-15 14:13:52 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-15 14:13:52 - booksage - INFO - Generated 9 hybrid recommendations for 'The Hot Zone' 2026-02-15 14:15:18 - booksage - INFO - Generated 9 content recommendations for 'Pigs in Heaven' 2026-02-15 15:06:14 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 15:06:19 - booksage - INFO - Generated 9 collaborative recommendations for 'The Testament' 2026-02-15 15:06:39 - booksage - DEBUG - Generating hybrid recommendations for: The Pelican Brief 2026-02-15 15:06:39 - booksage - ERROR - Error in content recommendations: index 2445 is out of bounds for axis 0 with size 742 2026-02-15 15:06:39 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-15 15:06:39 - booksage - INFO - Generated 9 hybrid recommendations for 'The Pelican Brief' 2026-02-15 15:13:15 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 15:13:15 - booksage - INFO - Checking for existing trained models... 2026-02-15 15:13:15 - booksage - INFO - Loading models and processed data... 2026-02-15 15:13:15 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 15:13:15 - booksage - INFO - Models loaded successfully! 2026-02-15 15:13:28 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 15:13:29 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 15:13:32 - booksage - INFO - Generated 9 content recommendations for 'The Testament' 2026-02-15 15:13:53 - booksage - DEBUG - Generating hybrid recommendations for: Christine 2026-02-15 15:13:53 - booksage - ERROR - Error in content recommendations: index 3803 is out of bounds for axis 0 with size 742 2026-02-15 15:13:53 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-15 15:13:53 - booksage - INFO - Generated 9 hybrid recommendations for 'Christine' 2026-02-15 15:17:49 - booksage - INFO - Generated 9 collaborative recommendations for 'Bridget Jones's Diary' 2026-02-15 15:23:10 - booksage - INFO - Generated 9 collaborative recommendations for 'Bridget Jones's Diary' 2026-02-15 15:23:38 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 15:24:00 - booksage - INFO - Generated 9 collaborative recommendations for 'The Testament' 2026-02-15 15:26:16 - booksage - DEBUG - Generating hybrid recommendations for: The Client 2026-02-15 15:26:16 - booksage - DEBUG - Generated 9 hybrid recommendations 2026-02-15 15:26:16 - booksage - INFO - Generated 9 hybrid recommendations for 'The Client' 2026-02-15 15:28:04 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 15:28:04 - booksage - INFO - Checking for existing trained models... 2026-02-15 15:28:04 - booksage - INFO - Loading models and processed data... 2026-02-15 15:28:04 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 15:28:04 - booksage - INFO - Models loaded successfully! 2026-02-15 15:28:38 - booksage - INFO - Generated 9 content recommendations for 'The Lovely Bones: A Novel' 2026-02-15 15:37:29 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 15:37:29 - booksage - INFO - Checking for existing trained models... 2026-02-15 15:37:29 - booksage - INFO - Loading models and processed data... 2026-02-15 15:37:29 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 15:37:29 - booksage - INFO - Models loaded successfully! 2026-02-15 15:37:47 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 15:37:47 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 15:37:55 - booksage - INFO - Generated 9 content recommendations for 'The Testament' 2026-02-15 15:42:08 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 15:42:08 - booksage - INFO - Checking for existing trained models... 2026-02-15 15:42:08 - booksage - INFO - Loading models and processed data... 2026-02-15 15:42:08 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 15:42:08 - booksage - INFO - Models loaded successfully! 2026-02-15 15:42:35 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 15:42:35 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 15:42:38 - booksage - INFO - Generated 9 collaborative recommendations for 'The Testament' 2026-02-15 15:44:57 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 15:44:57 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 15:45:00 - booksage - INFO - Generated 9 content recommendations for 'The Testament' 2026-02-15 15:50:09 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 15:50:09 - booksage - INFO - Checking for existing trained models... 2026-02-15 15:50:09 - booksage - INFO - Loading models and processed data... 2026-02-15 15:50:09 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 15:50:09 - booksage - INFO - Models loaded successfully! 2026-02-15 15:51:07 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 15:51:08 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 15:51:17 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 15:51:17 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 15:51:20 - booksage - INFO - Generated 9 collaborative recommendations for 'The Testament' 2026-02-15 15:53:31 - booksage - INFO - Generated 9 collaborative recommendations for 'The Lovely Bones: A Novel' 2026-02-15 15:59:32 - booksage - DEBUG - Search for ' t' returned 9 results 2026-02-15 15:59:32 - booksage - DEBUG - Search for ' th' returned 9 results 2026-02-15 15:59:32 - booksage - DEBUG - Search for ' the' returned 9 results 2026-02-15 15:59:35 - booksage - INFO - Generated 9 collaborative recommendations for 'From the Corner of His Eye' 2026-02-15 16:01:48 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 16:01:48 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 16:01:53 - booksage - INFO - Generated 9 content recommendations for 'The Testament' 2026-02-15 16:02:56 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 16:02:56 - booksage - INFO - Checking for existing trained models... 2026-02-15 16:02:56 - booksage - INFO - Loading models and processed data... 2026-02-15 16:02:56 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 16:02:56 - booksage - INFO - Models loaded successfully! 2026-02-15 16:03:00 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 16:03:00 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 16:03:05 - booksage - INFO - Generated 10 collaborative recommendations for 'The Joy Luck Club' 2026-02-15 16:10:24 - booksage - DEBUG - Generating hybrid recommendations for: Bridget Jones's Diary 2026-02-15 16:10:24 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:10:24 - booksage - INFO - Generated 10 hybrid recommendations for 'Bridget Jones's Diary' 2026-02-15 16:11:42 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 16:11:42 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 16:11:54 - booksage - DEBUG - Generating hybrid recommendations for: Divine Secrets of the Ya-Ya Sisterhood: A Novel 2026-02-15 16:11:54 - booksage - ERROR - Error in content recommendations: index 1105 is out of bounds for axis 0 with size 742 2026-02-15 16:11:54 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:11:54 - booksage - INFO - Generated 10 hybrid recommendations for 'Divine Secrets of the Ya-Ya Sisterhood: A Novel' 2026-02-15 16:12:08 - booksage - INFO - Generated 10 collaborative recommendations for 'The Secret Life of Bees' 2026-02-15 16:12:15 - booksage - ERROR - Error in content recommendations: index 1105 is out of bounds for axis 0 with size 742 2026-02-15 16:12:15 - booksage - INFO - Generated 0 content recommendations for 'Divine Secrets of the Ya-Ya Sisterhood: A Novel' 2026-02-15 16:13:06 - booksage - DEBUG - Generating hybrid recommendations for: The Pelican Brief 2026-02-15 16:13:06 - booksage - ERROR - Error in content recommendations: index 2445 is out of bounds for axis 0 with size 742 2026-02-15 16:14:03 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 16:14:03 - booksage - INFO - Checking for existing trained models... 2026-02-15 16:14:03 - booksage - INFO - Loading models and processed data... 2026-02-15 16:14:03 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 16:14:03 - booksage - INFO - Models loaded successfully! 2026-02-15 16:14:31 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 16:14:32 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 16:14:32 - booksage - DEBUG - Search for 'the ' returned 9 results 2026-02-15 16:14:36 - booksage - INFO - Generated 10 content recommendations for 'The Testament' 2026-02-15 16:14:46 - booksage - DEBUG - Generating hybrid recommendations for: Love in the Time of Cholera (Penguin Great Books of the 20th Century) 2026-02-15 16:14:46 - booksage - ERROR - Error in content recommendations: index 3494 is out of bounds for axis 0 with size 742 2026-02-15 16:14:46 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:14:46 - booksage - INFO - Generated 10 hybrid recommendations for 'Love in the Time of Cholera (Penguin Great Books of the 20th Century)' 2026-02-15 16:14:48 - booksage - ERROR - Error in content recommendations: index 9750 is out of bounds for axis 0 with size 742 2026-02-15 16:14:48 - booksage - INFO - Generated 0 content recommendations for 'Foucault's Pendulum' 2026-02-15 16:14:51 - booksage - DEBUG - Generating hybrid recommendations for: Foucault's Pendulum 2026-02-15 16:14:52 - booksage - ERROR - Error in content recommendations: index 9750 is out of bounds for axis 0 with size 742 2026-02-15 16:14:52 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:14:52 - booksage - INFO - Generated 10 hybrid recommendations for 'Foucault's Pendulum' 2026-02-15 16:14:53 - booksage - INFO - Generated 10 collaborative recommendations for 'Foucault's Pendulum' 2026-02-15 16:15:18 - booksage - DEBUG - Search for 'wi' returned 9 results 2026-02-15 16:21:45 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 16:21:45 - booksage - INFO - Checking for existing trained models... 2026-02-15 16:21:45 - booksage - INFO - Loading models and processed data... 2026-02-15 16:21:45 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 16:21:45 - booksage - INFO - Models loaded successfully! 2026-02-15 16:22:38 - booksage - DEBUG - Search for 'ha' returned 9 results 2026-02-15 16:23:02 - booksage - DEBUG - Generating hybrid recommendations for: The Lovely Bones: A Novel 2026-02-15 16:23:02 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:23:02 - booksage - INFO - Generated 10 hybrid recommendations for 'The Lovely Bones: A Novel' 2026-02-15 16:23:11 - booksage - DEBUG - Search for 'ke' returned 9 results 2026-02-15 16:26:32 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 16:26:32 - booksage - INFO - Checking for existing trained models... 2026-02-15 16:26:32 - booksage - INFO - Loading models and processed data... 2026-02-15 16:26:32 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 16:26:32 - booksage - INFO - Models loaded successfully! 2026-02-15 16:30:16 - booksage - DEBUG - Generating hybrid recommendations for: The Lovely Bones: A Novel 2026-02-15 16:30:16 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:30:16 - booksage - INFO - Generated 10 hybrid recommendations for 'The Lovely Bones: A Novel' 2026-02-15 16:30:30 - booksage - INFO - Generated 10 collaborative recommendations for 'Drowning Ruth (Oprah's Book Club)' 2026-02-15 16:30:41 - booksage - DEBUG - Generating hybrid recommendations for: We Were the Mulvaneys 2026-02-15 16:30:41 - booksage - ERROR - Error in content recommendations: index 5175 is out of bounds for axis 0 with size 742 2026-02-15 16:30:41 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:30:41 - booksage - INFO - Generated 10 hybrid recommendations for 'We Were the Mulvaneys' 2026-02-15 16:36:39 - booksage - INFO - Generated 10 content recommendations for 'Bridget Jones's Diary' 2026-02-15 16:36:45 - booksage - INFO - Generated 10 collaborative recommendations for 'Whispers' 2026-02-15 16:45:44 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 16:45:44 - booksage - INFO - Checking for existing trained models... 2026-02-15 16:45:44 - booksage - INFO - Loading models and processed data... 2026-02-15 16:45:44 - booksage - INFO - All models loaded from: c:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 16:45:44 - booksage - INFO - Models loaded successfully! 2026-02-15 16:45:52 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 16:45:52 - booksage - INFO - Checking for existing trained models... 2026-02-15 16:45:52 - booksage - INFO - Loading models and processed data... 2026-02-15 16:45:52 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 16:45:52 - booksage - INFO - Models loaded successfully! 2026-02-15 16:45:52 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 16:47:34 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 16:47:34 - booksage - INFO - Checking for existing trained models... 2026-02-15 16:47:34 - booksage - INFO - Loading models and processed data... 2026-02-15 16:47:34 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 16:47:34 - booksage - INFO - Models loaded successfully! 2026-02-15 16:48:03 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 16:48:03 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 16:48:09 - booksage - INFO - Generated 10 content recommendations for 'From the Corner of His Eye' 2026-02-15 16:48:54 - booksage - INFO - Generated 10 collaborative recommendations for 'Bleachers' 2026-02-15 16:48:56 - booksage - DEBUG - Generating hybrid recommendations for: The King of Torts 2026-02-15 16:48:56 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:48:56 - booksage - INFO - Generated 10 hybrid recommendations for 'The King of Torts' 2026-02-15 16:48:58 - booksage - INFO - Generated 10 content recommendations for 'The King of Torts' 2026-02-15 16:49:00 - booksage - DEBUG - Generating hybrid recommendations for: The King of Torts 2026-02-15 16:49:00 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:49:00 - booksage - INFO - Generated 10 hybrid recommendations for 'The King of Torts' 2026-02-15 16:49:00 - booksage - INFO - Generated 10 collaborative recommendations for 'The King of Torts' 2026-02-15 16:49:02 - booksage - INFO - Generated 10 content recommendations for 'The King of Torts' 2026-02-15 16:49:02 - booksage - INFO - Generated 10 collaborative recommendations for 'The King of Torts' 2026-02-15 16:49:03 - booksage - DEBUG - Generating hybrid recommendations for: The King of Torts 2026-02-15 16:49:03 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:49:03 - booksage - INFO - Generated 10 hybrid recommendations for 'The King of Torts' 2026-02-15 16:49:07 - booksage - DEBUG - Generating hybrid recommendations for: Postmortem 2026-02-15 16:49:07 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:49:07 - booksage - INFO - Generated 10 hybrid recommendations for 'Postmortem' 2026-02-15 16:49:10 - booksage - INFO - Generated 10 collaborative recommendations for 'The Poisonwood Bible' 2026-02-15 16:50:04 - booksage - DEBUG - Generating hybrid recommendations for: The Pelican Brief 2026-02-15 16:50:04 - booksage - ERROR - Error in content recommendations: index 2445 is out of bounds for axis 0 with size 742 2026-02-15 16:50:04 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 16:50:04 - booksage - INFO - Generated 10 hybrid recommendations for 'The Pelican Brief' 2026-02-15 16:54:53 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 16:54:53 - booksage - INFO - Checking for existing trained models... 2026-02-15 16:54:53 - booksage - INFO - Loading models and processed data... 2026-02-15 16:54:53 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 16:54:53 - booksage - INFO - Models loaded successfully! 2026-02-15 16:59:31 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 16:59:31 - booksage - INFO - Checking for existing trained models... 2026-02-15 16:59:31 - booksage - INFO - Loading models and processed data... 2026-02-15 16:59:31 - booksage - INFO - All models loaded from: c:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 16:59:31 - booksage - INFO - Models loaded successfully! 2026-02-15 17:00:03 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 17:00:03 - booksage - INFO - Checking for existing trained models... 2026-02-15 17:00:03 - booksage - INFO - Loading models and processed data... 2026-02-15 17:00:03 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 17:00:03 - booksage - INFO - Models loaded successfully! 2026-02-15 17:00:03 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 17:01:15 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 17:01:15 - booksage - INFO - Checking for existing trained models... 2026-02-15 17:01:15 - booksage - INFO - Loading models and processed data... 2026-02-15 17:01:15 - booksage - INFO - All models loaded from: c:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 17:01:15 - booksage - INFO - Models loaded successfully! 2026-02-15 17:01:22 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 17:01:22 - booksage - INFO - Checking for existing trained models... 2026-02-15 17:01:22 - booksage - INFO - Loading models and processed data... 2026-02-15 17:01:22 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 17:01:22 - booksage - INFO - Models loaded successfully! 2026-02-15 17:01:22 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 17:05:11 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 17:05:11 - booksage - INFO - Checking for existing trained models... 2026-02-15 17:05:11 - booksage - INFO - Loading models and processed data... 2026-02-15 17:05:11 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 17:05:11 - booksage - INFO - Models loaded successfully! 2026-02-15 17:05:11 - booksage - INFO - Shutting down BookSage-AI application... 2026-02-15 17:05:41 - booksage - INFO - Starting BookSage-AI application... 2026-02-15 17:05:41 - booksage - INFO - Checking for existing trained models... 2026-02-15 17:05:41 - booksage - INFO - Loading models and processed data... 2026-02-15 17:05:41 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\my project\BookSage-AI\backend\app\models 2026-02-15 17:05:41 - booksage - INFO - Models loaded successfully! 2026-02-15 17:08:06 - booksage - DEBUG - Search for 'th' returned 9 results 2026-02-15 17:08:06 - booksage - DEBUG - Search for 'the' returned 9 results 2026-02-15 17:08:08 - booksage - INFO - Generated 10 content recommendations for 'The Testament' 2026-02-15 17:08:11 - booksage - DEBUG - Generating hybrid recommendations for: Pride and Prejudice 2026-02-15 17:08:11 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-15 17:08:11 - booksage - INFO - Generated 10 hybrid recommendations for 'Pride and Prejudice' 2026-02-15 17:08:15 - booksage - INFO - Generated 10 collaborative recommendations for 'Pride and Prejudice' 2026-02-20 18:55:26 - booksage - INFO - Starting BookSage-AI application... 2026-02-20 18:55:26 - booksage - INFO - Checking for existing trained models... 2026-02-20 18:55:26 - booksage - INFO - Loading models and processed data... 2026-02-20 18:55:26 - booksage - INFO - All models loaded from: c:\Users\emon1\Desktop\New folder\BookSage-AI\backend\app\models 2026-02-20 18:55:26 - booksage - INFO - Models loaded successfully! 2026-02-20 18:58:15 - booksage - INFO - Starting BookSage-AI application... 2026-02-20 18:58:15 - booksage - INFO - Checking for existing trained models... 2026-02-20 18:58:15 - booksage - INFO - Loading models and processed data... 2026-02-20 18:58:15 - booksage - INFO - All models loaded from: c:\Users\emon1\Desktop\New folder\BookSage-AI\backend\app\models 2026-02-20 18:58:15 - booksage - INFO - Models loaded successfully! 2026-02-20 18:58:28 - booksage - DEBUG - Generating hybrid recommendations for: Bridget Jones's Diary 2026-02-20 18:58:28 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-20 18:58:28 - booksage - INFO - Generated 10 hybrid recommendations for 'Bridget Jones's Diary' 2026-02-20 19:00:51 - booksage - INFO - Starting BookSage-AI application... 2026-02-20 19:00:51 - booksage - INFO - Checking for existing trained models... 2026-02-20 19:00:51 - booksage - INFO - Loading models and processed data... 2026-02-20 19:00:51 - booksage - INFO - All models loaded from: c:\Users\emon1\Desktop\New folder\BookSage-AI\backend\app\models 2026-02-20 19:00:51 - booksage - INFO - Models loaded successfully! 2026-02-20 19:01:05 - booksage - DEBUG - Generating hybrid recommendations for: The Lovely Bones: A Novel 2026-02-20 19:01:05 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-02-20 19:01:05 - booksage - INFO - Generated 10 hybrid recommendations for 'The Lovely Bones: A Novel' 2026-02-20 20:44:59 - booksage - INFO - Starting BookSage-AI application... 2026-02-20 20:44:59 - booksage - INFO - Checking for existing trained models... 2026-02-20 20:44:59 - booksage - INFO - Loading models and processed data... 2026-02-20 20:44:59 - booksage - INFO - All models loaded from: c:\Users\emon1\Desktop\New folder\BookSage-AI\backend\app\models 2026-02-20 20:44:59 - booksage - INFO - Models loaded successfully! 2026-02-20 20:45:16 - booksage - INFO - Generated 10 content recommendations for 'Bridget Jones's Diary' 2026-03-02 17:31:14 - booksage - INFO - Starting BookSage-AI application... 2026-03-02 17:31:14 - booksage - INFO - Checking for existing trained models... 2026-03-02 17:31:14 - booksage - INFO - Loading models and processed data... 2026-03-02 17:31:15 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\New folder (2)\BookSage-AI\backend\app\models 2026-03-02 17:31:15 - booksage - INFO - Models loaded successfully! 2026-03-02 17:31:15 - booksage - INFO - Shutting down BookSage-AI application... 2026-03-02 17:36:47 - booksage - INFO - Starting BookSage-AI application... 2026-03-02 17:36:47 - booksage - INFO - Checking for existing trained models... 2026-03-02 17:36:47 - booksage - INFO - Loading models and processed data... 2026-03-02 17:36:47 - booksage - INFO - All models loaded from: C:\Users\codix\OneDrive\Desktop\New folder (2)\BookSage-AI\backend\app\models 2026-03-02 17:36:47 - booksage - INFO - Models loaded successfully! 2026-03-02 17:37:50 - booksage - INFO - Generated 10 collaborative recommendations for 'The Lovely Bones: A Novel' 2026-03-02 17:37:52 - booksage - INFO - Generated 10 collaborative recommendations for 'The Lovely Bones: A Novel' 2026-03-02 17:37:56 - booksage - INFO - Generated 10 content recommendations for 'The Lovely Bones: A Novel' 2026-03-02 22:37:13 - booksage - INFO - Starting BookSage-AI application... 2026-03-02 22:37:13 - booksage - INFO - Checking for existing trained models... 2026-03-02 22:37:13 - booksage - INFO - Loading models and processed data... 2026-03-02 22:37:14 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\zzz\BookSage-AI\backend\app\models 2026-03-02 22:37:14 - booksage - INFO - Models loaded successfully! 2026-03-02 22:37:34 - booksage - DEBUG - Generating hybrid recommendations for: The Lovely Bones: A Novel 2026-03-02 22:37:34 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-03-02 22:37:34 - booksage - INFO - Generated 10 hybrid recommendations for 'The Lovely Bones: A Novel' 2026-03-02 22:37:36 - booksage - DEBUG - Generating hybrid recommendations for: The Lovely Bones: A Novel 2026-03-02 22:37:36 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-03-02 22:37:36 - booksage - INFO - Generated 10 hybrid recommendations for 'The Lovely Bones: A Novel' 2026-03-02 22:37:37 - booksage - INFO - Generated 10 collaborative recommendations for 'The Lovely Bones: A Novel' 2026-03-02 22:37:38 - booksage - INFO - Generated 10 content recommendations for 'The Lovely Bones: A Novel' 2026-03-02 22:39:17 - booksage - INFO - Starting BookSage-AI application... 2026-03-02 22:39:17 - booksage - INFO - Checking for existing trained models... 2026-03-02 22:39:17 - booksage - INFO - Loading models and processed data... 2026-03-02 22:39:17 - booksage - INFO - All models loaded from: C:\Users\emon1\Desktop\zzz\BookSage-AI\backend\app\models 2026-03-02 22:39:17 - booksage - INFO - Models loaded successfully! 2026-05-08 13:32:44 - booksage - INFO - Starting BookSage-AI application... 2026-05-08 13:32:44 - booksage - INFO - Checking for existing trained models... 2026-05-08 13:32:44 - booksage - INFO - Loading models and processed data... 2026-05-08 13:32:45 - booksage - INFO - All models loaded from: /app/app/models 2026-05-08 13:32:45 - booksage - INFO - Models loaded successfully! 2026-05-08 13:33:53 - booksage - DEBUG - Search for 'lo' returned 9 results 2026-05-08 13:33:53 - booksage - DEBUG - Search for 'lov' returned 9 results 2026-05-08 13:33:54 - booksage - DEBUG - Search for 'love' returned 9 results 2026-05-08 13:33:56 - booksage - DEBUG - Generating hybrid recommendations for: Beloved (Plume Contemporary Fiction) 2026-05-08 13:33:56 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:33:56 - booksage - INFO - Generated 10 hybrid recommendations for 'Beloved (Plume Contemporary Fiction)' 2026-05-08 13:34:00 - booksage - ERROR - Error in content recommendations: index 7675 is out of bounds for axis 0 with size 742 2026-05-08 13:34:00 - booksage - INFO - Generated 0 content recommendations for 'The Weight of Water : A Novel Tag: Author of Resistance and Strange Fits of Passion' 2026-05-08 13:34:07 - booksage - DEBUG - Search for 'ai' returned 9 results 2026-05-08 13:34:11 - booksage - INFO - Generated 10 collaborative recommendations for 'Airframe' 2026-05-08 13:34:19 - booksage - DEBUG - Generating hybrid recommendations for: Sphere 2026-05-08 13:34:19 - booksage - ERROR - Error in content recommendations: index 2442 is out of bounds for axis 0 with size 742 2026-05-08 13:34:19 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:34:19 - booksage - INFO - Generated 10 hybrid recommendations for 'Sphere' 2026-05-08 13:34:21 - booksage - INFO - Generated 10 collaborative recommendations for 'Airframe' 2026-05-08 13:34:24 - booksage - DEBUG - Generating hybrid recommendations for: Sphere 2026-05-08 13:34:24 - booksage - ERROR - Error in content recommendations: index 2442 is out of bounds for axis 0 with size 742 2026-05-08 13:34:24 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:34:24 - booksage - INFO - Generated 10 hybrid recommendations for 'Sphere' 2026-05-08 13:34:26 - booksage - INFO - Generated 10 content recommendations for 'Airframe' 2026-05-08 13:39:39 - booksage - DEBUG - Search for 'bh' returned 9 results 2026-05-08 13:39:39 - booksage - DEBUG - Search for 'bha' returned 9 results 2026-05-08 13:39:42 - booksage - DEBUG - Search for 'bhag' returned 9 results 2026-05-08 13:39:46 - booksage - DEBUG - Generating hybrid recommendations for: Bhagavadgita (Dover Thrift Editions) 2026-05-08 13:39:46 - booksage - WARNING - Book 'Bhagavadgita (Dover Thrift Editions)' not found in collaborative filtering data 2026-05-08 13:39:46 - booksage - WARNING - Book 'Bhagavadgita (Dover Thrift Editions)' not found in content-based data 2026-05-08 13:39:46 - booksage - WARNING - No recommendations found from either model 2026-05-08 13:39:46 - booksage - INFO - Generated 0 hybrid recommendations for 'Bhagavadgita (Dover Thrift Editions)' 2026-05-08 13:39:50 - booksage - DEBUG - Search for 'bh' returned 9 results 2026-05-08 13:39:50 - booksage - DEBUG - Search for 'bha' returned 9 results 2026-05-08 13:39:52 - booksage - DEBUG - Search for 'bhag' returned 9 results 2026-05-08 13:39:53 - booksage - DEBUG - Search for 'bhagv' returned 0 results 2026-05-08 13:39:53 - booksage - DEBUG - Search for 'bhagvi' returned 0 results 2026-05-08 13:39:53 - booksage - DEBUG - Search for 'bhagv' returned 0 results 2026-05-08 13:39:53 - booksage - DEBUG - Search for 'bhag' returned 9 results 2026-05-08 13:39:53 - booksage - DEBUG - Search for 'bha' returned 9 results 2026-05-08 13:39:55 - booksage - DEBUG - Search for 'bh' returned 9 results 2026-05-08 13:39:56 - booksage - DEBUG - Search for 'bh' returned 9 results 2026-05-08 13:39:56 - booksage - DEBUG - Search for 'bha' returned 9 results 2026-05-08 13:40:00 - booksage - DEBUG - Search for 'bhag' returned 9 results 2026-05-08 13:40:00 - booksage - DEBUG - Search for 'bhaga' returned 9 results 2026-05-08 13:40:06 - booksage - WARNING - Book 'Bhagavad Gita As It Is' not found in collaborative filtering data 2026-05-08 13:40:06 - booksage - INFO - Generated 0 collaborative recommendations for 'Bhagavad Gita As It Is' 2026-05-08 13:40:08 - booksage - DEBUG - Search for 'vv' returned 9 results 2026-05-08 13:40:12 - booksage - DEBUG - Search for 'bh' returned 9 results 2026-05-08 13:40:12 - booksage - DEBUG - Search for 'bha' returned 9 results 2026-05-08 13:40:13 - booksage - DEBUG - Search for 'bhag' returned 9 results 2026-05-08 13:40:13 - booksage - DEBUG - Search for 'bhagi' returned 0 results 2026-05-08 13:40:14 - booksage - DEBUG - Search for 'bhag' returned 9 results 2026-05-08 13:40:14 - booksage - DEBUG - Search for 'bha' returned 9 results 2026-05-08 13:40:15 - booksage - DEBUG - Search for 'bhag' returned 9 results 2026-05-08 13:40:19 - booksage - WARNING - Book 'Bhagavad Gita As It Is' not found in content-based data 2026-05-08 13:40:19 - booksage - INFO - Generated 0 content recommendations for 'Bhagavad Gita As It Is' 2026-05-08 13:40:24 - booksage - DEBUG - Search for 'bh' returned 9 results 2026-05-08 13:40:26 - booksage - DEBUG - Search for 'bh' returned 9 results 2026-05-08 13:40:26 - booksage - DEBUG - Search for 'bhu' returned 3 results 2026-05-08 13:40:31 - booksage - DEBUG - Generating hybrid recommendations for: Beyond the Sky and the Earth: A Journey into Bhutan 2026-05-08 13:40:31 - booksage - WARNING - Book 'Beyond the Sky and the Earth: A Journey into Bhutan' not found in collaborative filtering data 2026-05-08 13:40:31 - booksage - WARNING - Book 'Beyond the Sky and the Earth: A Journey into Bhutan' not found in content-based data 2026-05-08 13:40:31 - booksage - WARNING - No recommendations found from either model 2026-05-08 13:40:31 - booksage - INFO - Generated 0 hybrid recommendations for 'Beyond the Sky and the Earth: A Journey into Bhutan' 2026-05-08 13:40:38 - booksage - DEBUG - Search for 'lo' returned 9 results 2026-05-08 13:40:39 - booksage - DEBUG - Search for 'lov' returned 9 results 2026-05-08 13:40:39 - booksage - DEBUG - Search for 'love' returned 9 results 2026-05-08 13:40:39 - booksage - DEBUG - Search for 'love ' returned 9 results 2026-05-08 13:40:39 - booksage - DEBUG - Search for 'love s' returned 9 results 2026-05-08 13:40:40 - booksage - DEBUG - Search for 'love st' returned 9 results 2026-05-08 13:40:40 - booksage - DEBUG - Search for 'love str' returned 1 results 2026-05-08 13:40:40 - booksage - DEBUG - Search for 'love stry' returned 0 results 2026-05-08 13:40:41 - booksage - DEBUG - Search for 'love str' returned 1 results 2026-05-08 13:40:41 - booksage - DEBUG - Search for 'love st' returned 9 results 2026-05-08 13:40:45 - booksage - DEBUG - Generating hybrid recommendations for: Mount Vernon Love Story : A Novel of George and Martha Washington 2026-05-08 13:40:45 - booksage - WARNING - Book 'Mount Vernon Love Story : A Novel of George and Martha Washington' not found in collaborative filtering data 2026-05-08 13:40:45 - booksage - WARNING - Book 'Mount Vernon Love Story : A Novel of George and Martha Washington' not found in content-based data 2026-05-08 13:40:45 - booksage - WARNING - No recommendations found from either model 2026-05-08 13:40:45 - booksage - INFO - Generated 0 hybrid recommendations for 'Mount Vernon Love Story : A Novel of George and Martha Washington' 2026-05-08 13:40:55 - booksage - DEBUG - Generating hybrid recommendations for: Bridget Jones's Diary 2026-05-08 13:40:55 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:40:55 - booksage - INFO - Generated 10 hybrid recommendations for 'Bridget Jones's Diary' 2026-05-08 13:40:59 - booksage - ERROR - Error in content recommendations: index 5607 is out of bounds for axis 0 with size 742 2026-05-08 13:40:59 - booksage - INFO - Generated 0 content recommendations for 'A Walk to Remember' 2026-05-08 13:41:04 - booksage - INFO - Generated 10 collaborative recommendations for 'A Walk to Remember' 2026-05-08 13:41:06 - booksage - DEBUG - Generating hybrid recommendations for: A Walk to Remember 2026-05-08 13:41:06 - booksage - ERROR - Error in content recommendations: index 5607 is out of bounds for axis 0 with size 742 2026-05-08 13:41:06 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:41:06 - booksage - INFO - Generated 10 hybrid recommendations for 'A Walk to Remember' 2026-05-08 13:41:07 - booksage - INFO - Generated 10 collaborative recommendations for 'A Walk to Remember' 2026-05-08 13:41:07 - booksage - ERROR - Error in content recommendations: index 5607 is out of bounds for axis 0 with size 742 2026-05-08 13:41:07 - booksage - INFO - Generated 0 content recommendations for 'A Walk to Remember' 2026-05-08 13:41:08 - booksage - DEBUG - Generating hybrid recommendations for: A Walk to Remember 2026-05-08 13:41:08 - booksage - ERROR - Error in content recommendations: index 5607 is out of bounds for axis 0 with size 742 2026-05-08 13:41:08 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:41:08 - booksage - INFO - Generated 10 hybrid recommendations for 'A Walk to Remember' 2026-05-08 13:41:08 - booksage - INFO - Generated 10 collaborative recommendations for 'A Walk to Remember' 2026-05-08 13:41:08 - booksage - ERROR - Error in content recommendations: index 5607 is out of bounds for axis 0 with size 742 2026-05-08 13:41:08 - booksage - INFO - Generated 0 content recommendations for 'A Walk to Remember' 2026-05-08 13:42:47 - booksage - DEBUG - Generating hybrid recommendations for: love 2026-05-08 13:42:47 - booksage - WARNING - Book 'love' not found in collaborative filtering data 2026-05-08 13:42:47 - booksage - WARNING - Book 'love' not found in content-based data 2026-05-08 13:42:47 - booksage - WARNING - No recommendations found from either model 2026-05-08 13:42:47 - booksage - INFO - Generated 0 hybrid recommendations for 'love' 2026-05-08 13:42:51 - booksage - DEBUG - Search for 'fg' returned 9 results 2026-05-08 13:42:51 - booksage - DEBUG - Search for 'fgh' returned 9 results 2026-05-08 13:42:53 - booksage - DEBUG - Generating hybrid recommendations for: The Sewing Circles of Herat : A Personal Voyage Through Afghanistan 2026-05-08 13:42:53 - booksage - WARNING - Book 'The Sewing Circles of Herat : A Personal Voyage Through Afghanistan' not found in collaborative filtering data 2026-05-08 13:42:53 - booksage - WARNING - Book 'The Sewing Circles of Herat : A Personal Voyage Through Afghanistan' not found in content-based data 2026-05-08 13:42:53 - booksage - WARNING - No recommendations found from either model 2026-05-08 13:42:53 - booksage - INFO - Generated 0 hybrid recommendations for 'The Sewing Circles of Herat : A Personal Voyage Through Afghanistan' 2026-05-08 13:50:08 - booksage - DEBUG - Search for 'li' returned 9 results 2026-05-08 13:50:12 - booksage - DEBUG - Generating hybrid recommendations for: Timeline 2026-05-08 13:50:12 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:50:12 - booksage - INFO - Generated 10 hybrid recommendations for 'Timeline' 2026-05-08 13:50:18 - booksage - INFO - Generated 10 collaborative recommendations for 'Wanderlust' 2026-05-08 13:52:05 - booksage - DEBUG - Generating hybrid recommendations for: The Da Vinci Code 2026-05-08 13:52:05 - booksage - ERROR - Error in content recommendations: index 748 is out of bounds for axis 0 with size 742 2026-05-08 13:52:05 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:52:05 - booksage - INFO - Generated 10 hybrid recommendations for 'The Da Vinci Code' 2026-05-08 13:52:06 - booksage - DEBUG - Generating hybrid recommendations for: The Da Vinci Code 2026-05-08 13:52:06 - booksage - ERROR - Error in content recommendations: index 748 is out of bounds for axis 0 with size 742 2026-05-08 13:52:06 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:52:06 - booksage - INFO - Generated 10 hybrid recommendations for 'The Da Vinci Code' 2026-05-08 13:52:07 - booksage - INFO - Generated 10 collaborative recommendations for 'The Da Vinci Code' 2026-05-08 13:52:07 - booksage - ERROR - Error in content recommendations: index 748 is out of bounds for axis 0 with size 742 2026-05-08 13:52:07 - booksage - INFO - Generated 0 content recommendations for 'The Da Vinci Code' 2026-05-08 13:52:08 - booksage - INFO - Generated 10 collaborative recommendations for 'The Da Vinci Code' 2026-05-08 13:52:12 - booksage - DEBUG - Generating hybrid recommendations for: The Da Vinci Code 2026-05-08 13:52:12 - booksage - ERROR - Error in content recommendations: index 748 is out of bounds for axis 0 with size 742 2026-05-08 13:52:12 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:52:12 - booksage - INFO - Generated 10 hybrid recommendations for 'The Da Vinci Code' 2026-05-08 13:52:13 - booksage - DEBUG - Generating hybrid recommendations for: The Da Vinci Code 2026-05-08 13:52:13 - booksage - ERROR - Error in content recommendations: index 748 is out of bounds for axis 0 with size 742 2026-05-08 13:52:13 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 13:52:13 - booksage - INFO - Generated 10 hybrid recommendations for 'The Da Vinci Code' 2026-05-08 13:52:13 - booksage - INFO - Generated 10 collaborative recommendations for 'The Da Vinci Code' 2026-05-08 13:58:38 - booksage - INFO - Shutting down BookSage-AI application... 2026-05-08 13:58:39 - booksage - INFO - Starting BookSage-AI application... 2026-05-08 13:58:39 - booksage - INFO - Checking for existing trained models... 2026-05-08 13:58:39 - booksage - INFO - Loading models and processed data... 2026-05-08 13:58:40 - booksage - INFO - All models loaded from: /app/app/models 2026-05-08 13:58:40 - booksage - INFO - Models loaded successfully! 2026-05-08 13:58:55 - booksage - INFO - Shutting down BookSage-AI application... 2026-05-08 13:59:07 - booksage - INFO - Starting BookSage-AI application... 2026-05-08 13:59:07 - booksage - INFO - Checking for existing trained models... 2026-05-08 13:59:07 - booksage - INFO - Loading models and processed data... 2026-05-08 13:59:07 - booksage - INFO - All models loaded from: /app/app/models 2026-05-08 13:59:07 - booksage - INFO - Models loaded successfully! 2026-05-08 14:00:03 - booksage - INFO - Shutting down BookSage-AI application... 2026-05-08 14:00:13 - booksage - INFO - Starting BookSage-AI application... 2026-05-08 14:00:13 - booksage - INFO - Checking for existing trained models... 2026-05-08 14:00:13 - booksage - INFO - Loading models and processed data... 2026-05-08 14:00:13 - booksage - INFO - All models loaded from: /app/app/models 2026-05-08 14:00:13 - booksage - INFO - Models loaded successfully! 2026-05-08 14:01:22 - booksage - INFO - Shutting down BookSage-AI application... 2026-05-08 14:01:23 - booksage - INFO - Starting BookSage-AI application... 2026-05-08 14:01:23 - booksage - INFO - Checking for existing trained models... 2026-05-08 14:01:23 - booksage - INFO - Loading models and processed data... 2026-05-08 14:01:23 - booksage - INFO - All models loaded from: /app/app/models 2026-05-08 14:01:23 - booksage - INFO - Models loaded successfully! 2026-05-08 14:01:37 - booksage - INFO - Shutting down BookSage-AI application... 2026-05-08 14:01:47 - booksage - INFO - Starting BookSage-AI application... 2026-05-08 14:01:47 - booksage - INFO - Checking for existing trained models... 2026-05-08 14:01:47 - booksage - INFO - Loading models and processed data... 2026-05-08 14:01:47 - booksage - INFO - All models loaded from: /app/app/models 2026-05-08 14:01:47 - booksage - INFO - Models loaded successfully! 2026-05-08 14:01:59 - booksage - DEBUG - Generating hybrid recommendations for: Wild Animus 2026-05-08 14:01:59 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 14:01:59 - booksage - INFO - Generated 10 hybrid recommendations for 'Wild Animus' 2026-05-08 14:02:02 - booksage - ERROR - Error in content recommendations: index 19148 is out of bounds for axis 0 with size 742 2026-05-08 14:02:02 - booksage - INFO - Generated 0 content recommendations for 'Exclusive' 2026-05-08 14:02:05 - booksage - DEBUG - Generating hybrid recommendations for: Bridget Jones's Diary 2026-05-08 14:02:05 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 14:02:05 - booksage - INFO - Generated 10 hybrid recommendations for 'Bridget Jones's Diary' 2026-05-08 14:02:11 - booksage - DEBUG - Generating hybrid recommendations for: Bridget Jones's Diary 2026-05-08 14:02:11 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 14:02:11 - booksage - INFO - Generated 10 hybrid recommendations for 'Bridget Jones's Diary' 2026-05-08 14:02:16 - booksage - INFO - Generated 10 collaborative recommendations for 'Bridget Jones's Diary' 2026-05-08 14:03:16 - booksage - DEBUG - Search for 'kh' returned 9 results 2026-05-08 14:03:16 - booksage - DEBUG - Search for 'khj' returned 0 results 2026-05-08 14:03:17 - booksage - DEBUG - Search for 'kh' returned 9 results 2026-05-08 14:03:18 - booksage - DEBUG - Search for 'hj' returned 5 results 2026-05-08 14:03:19 - booksage - DEBUG - Search for 'hji' returned 0 results 2026-05-08 14:03:19 - booksage - DEBUG - Search for 'hj' returned 5 results 2026-05-08 14:03:20 - booksage - DEBUG - Search for 'db' returned 9 results 2026-05-08 14:03:22 - booksage - INFO - Generated 10 collaborative recommendations for 'D Is for Deadbeat (Kinsey Millhone Mysteries (Paperback))' 2026-05-08 14:03:34 - booksage - INFO - Generated 10 collaborative recommendations for 'K Is for Killer (Kinsey Millhone Mysteries (Paperback))' 2026-05-08 14:03:36 - booksage - DEBUG - Generating hybrid recommendations for: D Is for Deadbeat (Kinsey Millhone Mysteries (Paperback)) 2026-05-08 14:03:36 - booksage - ERROR - Error in content recommendations: index 5865 is out of bounds for axis 0 with size 742 2026-05-08 14:03:36 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 14:03:36 - booksage - INFO - Generated 10 hybrid recommendations for 'D Is for Deadbeat (Kinsey Millhone Mysteries (Paperback))' 2026-05-08 14:03:42 - booksage - ERROR - Error in content recommendations: index 5466 is out of bounds for axis 0 with size 742 2026-05-08 14:03:42 - booksage - INFO - Generated 0 content recommendations for 'P Is for Peril' 2026-05-08 14:04:35 - booksage - DEBUG - Generating hybrid recommendations for: The Da Vinci Code 2026-05-08 14:04:35 - booksage - ERROR - Error in content recommendations: index 748 is out of bounds for axis 0 with size 742 2026-05-08 14:04:35 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 14:04:35 - booksage - INFO - Generated 10 hybrid recommendations for 'The Da Vinci Code' 2026-05-08 14:04:47 - booksage - DEBUG - Search for 'lo' returned 9 results 2026-05-08 14:04:47 - booksage - DEBUG - Search for 'lov' returned 9 results 2026-05-08 14:04:47 - booksage - DEBUG - Search for 'love' returned 9 results 2026-05-08 14:04:49 - booksage - DEBUG - Generating hybrid recommendations for: Beloved (Plume Contemporary Fiction) 2026-05-08 14:04:49 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 14:04:49 - booksage - INFO - Generated 10 hybrid recommendations for 'Beloved (Plume Contemporary Fiction)' 2026-05-08 14:04:55 - booksage - DEBUG - Generating hybrid recommendations for: The Weight of Water : A Novel Tag: Author of Resistance and Strange Fits of Passion 2026-05-08 14:04:55 - booksage - ERROR - Error in content recommendations: index 7675 is out of bounds for axis 0 with size 742 2026-05-08 14:04:55 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 14:04:55 - booksage - INFO - Generated 10 hybrid recommendations for 'The Weight of Water : A Novel Tag: Author of Resistance and Strange Fits of Passion' 2026-05-08 14:04:58 - booksage - INFO - Generated 10 collaborative recommendations for 'A Day Late and a Dollar Short' 2026-05-08 14:05:04 - booksage - INFO - Generated 10 collaborative recommendations for 'Prodigal Summer' 2026-05-08 14:05:08 - booksage - INFO - Generated 10 collaborative recommendations for 'Prodigal Summer' 2026-05-08 14:05:09 - booksage - ERROR - Error in content recommendations: index 4264 is out of bounds for axis 0 with size 742 2026-05-08 14:05:09 - booksage - INFO - Generated 0 content recommendations for 'Prodigal Summer' 2026-05-08 14:05:09 - booksage - INFO - Generated 10 collaborative recommendations for 'Prodigal Summer' 2026-05-08 14:05:09 - booksage - DEBUG - Generating hybrid recommendations for: Prodigal Summer 2026-05-08 14:05:09 - booksage - ERROR - Error in content recommendations: index 4264 is out of bounds for axis 0 with size 742 2026-05-08 14:05:09 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 14:05:09 - booksage - INFO - Generated 10 hybrid recommendations for 'Prodigal Summer' 2026-05-08 14:05:13 - booksage - DEBUG - Generating hybrid recommendations for: Mother of Pearl 2026-05-08 14:05:13 - booksage - ERROR - Error in content recommendations: index 1220 is out of bounds for axis 0 with size 742 2026-05-08 14:05:13 - booksage - DEBUG - Generated 10 hybrid recommendations 2026-05-08 14:05:13 - booksage - INFO - Generated 10 hybrid recommendations for 'Mother of Pearl' 2026-05-08 14:12:50 - booksage - DEBUG - Search for 'ba' returned 9 results 2026-05-08 14:12:51 - booksage - DEBUG - Search for 'bad' returned 9 results 2026-05-08 14:12:53 - booksage - DEBUG - Search for 'bad ' returned 9 results 2026-05-08 14:12:53 - booksage - DEBUG - Search for 'bad d' returned 9 results 2026-05-08 14:12:55 - booksage - DEBUG - Search for 'bad da' returned 9 results 2026-05-08 14:12:56 - booksage - DEBUG - Search for 'bad dad' returned 0 results 2026-05-08 14:12:56 - booksage - DEBUG - Search for 'bad dada' returned 0 results 2026-05-08 14:12:57 - booksage - DEBUG - Search for 'bad daday' returned 0 results 2026-05-08 14:12:57 - booksage - DEBUG - Search for 'bad dada' returned 0 results 2026-05-08 14:12:57 - booksage - DEBUG - Search for 'bad dad' returned 0 results 2026-05-08 14:12:57 - booksage - DEBUG - Search for 'bad dady' returned 0 results 2026-05-08 14:12:59 - booksage - DEBUG - Generating hybrid recommendations for: bad dady 2026-05-08 14:12:59 - booksage - WARNING - Book 'bad dady' not found in collaborative filtering data 2026-05-08 14:12:59 - booksage - WARNING - Book 'bad dady' not found in content-based data 2026-05-08 14:12:59 - booksage - WARNING - No recommendations found from either model 2026-05-08 14:12:59 - booksage - INFO - Generated 0 hybrid recommendations for 'bad dady'