2025-09-24 12:33:31,663 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 12:33:32,041 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 12:33:33,569 - AgenticMedicalRAG - INFO - Loaded 8 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:34,740 - AgenticMedicalRAG - INFO - Loaded 4 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:36,533 - AgenticMedicalRAG - INFO - Loaded 4 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:37,911 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:40,103 - AgenticMedicalRAG - INFO - Loaded 6 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:42,080 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:43,517 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:44,944 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:50,078 - AgenticMedicalRAG - INFO - Loaded 14 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:55,782 - AgenticMedicalRAG - INFO - Loaded 14 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:57,439 - AgenticMedicalRAG - INFO - Loaded 6 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:59,003 - AgenticMedicalRAG - INFO - Loaded 7 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 12:33:59,003 - AgenticMedicalRAG - INFO - Loaded Markdown document - Disease: Lung Cancer Guidelines, Provider: By Manus 2025-09-24 12:33:59,004 - AgenticMedicalRAG - INFO - Loaded Markdown document - Disease: Lung Cancer Guidelines, Provider: By Manus 2025-09-24 12:34:04,819 - AgenticMedicalRAG - INFO - Loaded 17 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO Guidelines 2025-09-24 12:34:18,923 - AgenticMedicalRAG - INFO - Loaded 21 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO Guidelines 2025-09-24 12:34:23,642 - AgenticMedicalRAG - INFO - Loaded 13 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO Guidelines 2025-09-24 12:34:27,354 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO Guidelines 2025-09-24 12:34:36,711 - AgenticMedicalRAG - INFO - Loaded 19 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO Guidelines 2025-09-24 12:34:49,962 - AgenticMedicalRAG - INFO - Loaded 30 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO Guidelines 2025-09-24 12:34:53,428 - AgenticMedicalRAG - INFO - Loaded 6 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO Guidelines 2025-09-24 12:35:07,647 - AgenticMedicalRAG - INFO - Loaded 21 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO Guidelines 2025-09-24 12:35:12,765 - AgenticMedicalRAG - INFO - Loaded 15 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO Guidelines 2025-09-24 12:35:15,267 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO Guidelines 2025-09-24 12:35:16,067 - AgenticMedicalRAG - INFO - Loaded 4 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 12:35:21,065 - AgenticMedicalRAG - INFO - Loaded 8 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 12:35:55,441 - AgenticMedicalRAG - INFO - Loaded 26 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 12:36:16,203 - AgenticMedicalRAG - INFO - Loaded 34 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 12:36:32,630 - AgenticMedicalRAG - INFO - Loaded 84 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 12:36:41,343 - AgenticMedicalRAG - INFO - Loaded 48 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 12:44:05,468 - AgenticMedicalRAG - INFO - Loaded 287 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 12:44:06,308 - AgenticMedicalRAG - INFO - Loaded 6 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 12:44:44,266 - AgenticMedicalRAG - INFO - Loaded 28 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NICE 2025-09-24 12:44:47,678 - AgenticMedicalRAG - INFO - Loaded 37 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NICE 2025-09-24 12:53:17,215 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 12:53:17,226 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 12:53:17,226 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 12:53:17,456 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 12:53:17,456 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 12:53:17,481 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-24 12:53:17,481 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-24 12:53:31,097 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What are the diagnostic criteria for Lung Cancer S... 2025-09-24 12:53:50,889 - AgenticMedicalRAG - INFO - Successfully processed user input: What are the diagnostic criteria for Lung Cancer S... 2025-09-24 12:54:35,447 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What are the diagnostic criteria for Lung Cancer S... 2025-09-24 12:54:56,222 - AgenticMedicalRAG - INFO - Successfully processed user input: What are the diagnostic criteria for Lung Cancer S... 2025-09-24 12:57:37,656 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 12:57:38,185 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 12:57:38,226 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 12:57:38,238 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 12:57:38,238 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 12:57:38,619 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 12:57:38,620 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 12:57:38,635 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-24 12:57:38,637 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-24 13:20:44,668 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 13:20:45,075 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 13:20:45,120 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 13:20:45,131 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 13:20:45,131 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 13:20:45,520 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 13:20:45,520 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 13:20:45,538 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-24 13:20:45,538 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-24 13:21:01,097 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What are the diagnostic criteria for Lung Cancer S... 2025-09-24 13:21:13,097 - AgenticMedicalRAG - INFO - Successfully processed user input: What are the diagnostic criteria for Lung Cancer S... 2025-09-24 13:24:09,731 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-24 13:24:25,781 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-24 13:30:43,451 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 13:30:43,618 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 13:30:43,658 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 13:30:43,836 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 13:30:43,836 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 13:30:43,994 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 13:30:43,995 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 13:31:43,804 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 13:31:43,965 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 13:31:44,033 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 13:31:44,281 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 13:31:44,281 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 13:31:44,476 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 13:31:44,478 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 13:36:07,048 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 13:36:07,245 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 13:36:07,306 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 13:36:07,526 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 13:36:07,527 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 13:36:07,851 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 13:36:07,851 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 13:39:38,763 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 13:39:39,011 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 13:39:39,098 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 13:39:39,343 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 13:39:39,344 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 13:39:39,544 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 13:39:39,544 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 13:40:11,974 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 13:40:12,122 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 13:40:12,170 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 13:40:12,356 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 13:40:12,356 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 13:40:12,536 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 13:40:12,536 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 14:03:17,328 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 14:03:17,747 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 14:03:18,036 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 14:03:18,047 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 14:03:18,047 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 14:03:18,204 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 14:03:18,204 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 14:06:03,859 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 14:06:04,462 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 14:06:05,910 - AgenticMedicalRAG - INFO - Loaded 8 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:07,247 - AgenticMedicalRAG - INFO - Loaded 4 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:08,957 - AgenticMedicalRAG - INFO - Loaded 4 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:10,336 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:12,480 - AgenticMedicalRAG - INFO - Loaded 6 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:14,462 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:15,790 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:17,215 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:22,289 - AgenticMedicalRAG - INFO - Loaded 14 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:28,276 - AgenticMedicalRAG - INFO - Loaded 14 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:30,061 - AgenticMedicalRAG - INFO - Loaded 6 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:31,741 - AgenticMedicalRAG - INFO - Loaded 7 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ASCO 2025-09-24 14:06:39,031 - AgenticMedicalRAG - INFO - Loaded 17 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO 2025-09-24 14:06:58,683 - AgenticMedicalRAG - INFO - Loaded 21 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO 2025-09-24 14:07:04,896 - AgenticMedicalRAG - INFO - Loaded 13 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO 2025-09-24 14:07:09,572 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO 2025-09-24 14:07:21,785 - AgenticMedicalRAG - INFO - Loaded 19 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO 2025-09-24 14:07:35,607 - AgenticMedicalRAG - INFO - Loaded 30 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO 2025-09-24 14:07:38,906 - AgenticMedicalRAG - INFO - Loaded 6 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO 2025-09-24 14:07:53,046 - AgenticMedicalRAG - INFO - Loaded 21 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO 2025-09-24 14:07:57,983 - AgenticMedicalRAG - INFO - Loaded 15 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO 2025-09-24 14:08:00,381 - AgenticMedicalRAG - INFO - Loaded 5 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: ESMO 2025-09-24 14:08:00,382 - AgenticMedicalRAG - INFO - Loaded Markdown document - Disease: Lung Cancer Guidelines, Provider: Manus 2025-09-24 14:08:00,382 - AgenticMedicalRAG - INFO - Loaded Markdown document - Disease: Lung Cancer Guidelines, Provider: Manus 2025-09-24 14:08:01,124 - AgenticMedicalRAG - INFO - Loaded 4 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 14:08:05,855 - AgenticMedicalRAG - INFO - Loaded 8 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 14:08:40,094 - AgenticMedicalRAG - INFO - Loaded 26 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 14:09:01,060 - AgenticMedicalRAG - INFO - Loaded 34 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 14:09:21,069 - AgenticMedicalRAG - INFO - Loaded 84 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 14:09:33,101 - AgenticMedicalRAG - INFO - Loaded 48 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 14:18:17,764 - AgenticMedicalRAG - INFO - Loaded 287 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 14:18:19,248 - AgenticMedicalRAG - INFO - Loaded 6 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NCCN 2025-09-24 14:19:05,274 - AgenticMedicalRAG - INFO - Loaded 28 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NICE 2025-09-24 14:19:10,146 - AgenticMedicalRAG - INFO - Loaded 37 document pages from PDF - Disease: Lung Cancer Guidelines, Provider: NICE 2025-09-24 14:28:35,383 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 14:28:35,391 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 14:28:35,391 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 14:28:35,566 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 14:28:35,566 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 14:34:45,919 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 14:34:46,019 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 14:34:46,065 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 14:34:46,078 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 14:34:46,078 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 14:34:46,238 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 14:34:46,238 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 14:35:02,380 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 14:35:02,459 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 14:35:02,501 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 14:35:02,512 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 14:35:02,512 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 14:35:02,665 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 14:35:02,666 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 15:28:04,375 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-24 15:28:05,020 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-24 15:28:05,111 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-24 15:28:05,120 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-24 15:28:05,121 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-24 15:28:05,486 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-24 15:28:05,486 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-24 15:28:05,509 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-24 15:28:05,509 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-24 15:28:48,253 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-24 15:29:09,300 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-24 15:29:31,597 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-24 15:29:53,586 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-24 15:29:56,004 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-09-24 15:30:21,791 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-09-24 15:37:04,732 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What are the differences in stage III NSCLC with E... 2025-09-24 15:37:07,666 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-24 15:37:09,667 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): What are the differences in stage III NSCLC with E... 2025-09-24 15:37:12,091 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-24 15:37:14,092 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): What are the differences in stage III NSCLC with E... 2025-09-24 15:37:16,221 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-24 15:37:18,221 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): What are the differences in stage III NSCLC with E... 2025-09-24 15:37:20,035 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-25 10:55:35,848 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 10:55:36,837 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 10:55:36,997 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 10:55:37,016 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 10:55:37,018 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 10:55:37,679 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 10:55:37,681 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 10:55:37,758 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 10:55:37,758 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 10:56:20,804 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-25 10:57:12,813 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-25 11:03:25,974 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 11:03:26,156 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 11:03:26,226 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 11:03:26,474 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 11:03:26,475 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 11:03:26,718 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 11:03:26,719 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 11:44:26,455 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 11:44:26,797 - AgenticMedicalRAG - ERROR - Failed to import required modules: cannot import name 'medical_guidelines_knowledge_tool' from 'tools' (C:\Users\moaze\AppData\Roaming\Python\Python313\site-packages\tools\__init__.py) 2025-09-25 11:44:47,804 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 11:44:48,265 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 11:44:48,315 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 11:44:48,327 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 11:44:48,327 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 11:44:48,704 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 11:44:48,704 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 11:44:48,727 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 11:44:48,727 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 11:45:23,905 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-25 11:46:12,625 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-25 11:46:51,625 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of PD-L1 testing in the managemen... 2025-09-25 11:47:40,839 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of PD-L1 testing in the managemen... 2025-09-25 11:55:51,664 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 11:55:52,071 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 11:55:52,120 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 11:55:52,130 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 11:55:52,130 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 11:55:52,515 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 11:55:52,515 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 11:55:52,533 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 11:55:52,534 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 11:56:22,086 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the expected survival benefit of durvaluma... 2025-09-25 11:56:34,087 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the expected survival benefit of durvaluma... 2025-09-25 11:57:17,093 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-25 11:57:29,006 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-25 12:08:15,798 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 12:08:16,635 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 12:08:16,708 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 12:08:16,733 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 12:08:16,733 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 12:08:17,439 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 12:08:17,439 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 12:08:17,467 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 12:08:17,467 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 12:09:21,041 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-25 12:09:34,174 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-25 12:33:19,691 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 12:33:20,134 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 12:33:20,177 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 12:33:20,188 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 12:33:20,188 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 12:33:20,550 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 12:33:20,551 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 12:33:20,563 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 12:33:20,563 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 12:38:42,020 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-25 12:38:47,424 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-25 12:39:30,232 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-25 12:39:33,410 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-25 12:40:25,958 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 12:40:26,441 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 12:40:26,483 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 12:40:26,496 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 12:40:26,497 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 12:40:26,865 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 12:40:26,865 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 12:40:26,875 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 12:40:26,875 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 12:40:43,498 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-25 12:40:52,880 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-25 13:24:01,123 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 13:24:02,325 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 13:24:02,404 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 13:24:02,427 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 13:24:02,427 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 13:24:03,004 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 13:24:03,005 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 13:24:03,028 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 13:24:03,030 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 13:25:50,875 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the expected survival benefit of durvaluma... 2025-09-25 13:25:55,987 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the expected survival benefit of durvaluma... 2025-09-25 13:29:32,984 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 13:29:33,427 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 13:29:33,473 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 13:29:33,483 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 13:29:33,485 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 13:29:33,859 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 13:29:33,860 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 13:29:33,874 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 13:29:33,874 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 13:29:47,561 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the expected survival benefit of durvaluma... 2025-09-25 13:29:55,342 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the expected survival benefit of durvaluma... 2025-09-25 14:35:48,177 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 14:35:48,992 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 14:35:49,075 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 14:35:49,093 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 14:35:49,094 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 14:35:49,761 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 14:35:49,762 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 14:35:49,781 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 14:35:49,781 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 14:36:56,115 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the expected survival benefit of durvaluma... 2025-09-25 14:37:02,607 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the expected survival benefit of durvaluma... 2025-09-25 14:49:27,524 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 14:49:28,493 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 14:49:28,587 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 14:49:28,611 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 14:49:28,612 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 14:49:29,294 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 14:49:29,295 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 14:49:29,325 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 14:49:29,326 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 14:54:24,150 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the expected survival benefit of durvaluma... 2025-09-25 14:54:34,887 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the expected survival benefit of durvaluma... 2025-09-25 19:59:01,611 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 19:59:02,224 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 19:59:02,280 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 19:59:02,291 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 19:59:02,292 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 19:59:02,670 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 19:59:02,670 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 19:59:02,683 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 19:59:02,683 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 19:59:50,665 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-25 20:00:00,245 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-25 20:09:12,523 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 20:09:12,977 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 20:09:13,031 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 20:09:13,048 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 20:09:13,049 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 20:09:13,418 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 20:09:13,419 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 20:09:13,423 - AgenticMedicalRAG - ERROR - Failed to import required modules: cannot import name 'agent_trace' from 'tracing' (D:\Work\Agentic-Medical-RAG-AI-Advisor\src\tracing.py) 2025-09-25 20:37:56,521 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-25 20:37:56,964 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-25 20:37:57,017 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-25 20:37:57,028 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-25 20:37:57,028 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-25 20:37:57,396 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-25 20:37:57,397 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-25 20:37:57,409 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-25 20:37:57,409 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-25 20:38:19,731 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-25 20:38:36,017 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-25 20:41:14,481 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-25 20:41:27,289 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-26 17:36:44,230 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-26 17:36:45,307 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-26 17:36:45,484 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-26 17:36:45,532 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-26 17:36:45,533 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-26 17:36:46,223 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-26 17:36:46,224 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-26 17:36:46,287 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-26 17:36:46,287 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-26 17:37:26,909 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of PD-L1 testing in the managemen... 2025-09-26 17:37:39,735 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of PD-L1 testing in the managemen... 2025-09-26 18:46:50,328 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-26 18:46:50,959 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-26 18:46:51,040 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-26 18:46:51,072 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-26 18:46:51,072 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-26 18:46:51,473 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-26 18:46:51,473 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-26 18:46:51,485 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-26 18:46:51,486 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-26 18:47:13,691 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): answer these questions 1. What is the recommended... 2025-09-26 18:47:22,877 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 18:47:24,879 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): answer these questions 1. What is the recommended... 2025-09-26 18:47:33,464 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 18:47:35,466 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): answer these questions 1. What is the recommended... 2025-09-26 18:47:42,377 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 18:47:44,377 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): answer these questions 1. What is the recommended... 2025-09-26 18:47:51,259 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 19:23:03,535 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-26 19:23:04,707 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-26 19:23:04,800 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-26 19:23:04,829 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-26 19:23:04,831 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-26 19:23:05,538 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-26 19:23:05,538 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-26 19:23:05,574 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-26 19:23:05,575 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-26 19:23:38,484 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): answer these questions 1. What is the recommended... 2025-09-26 19:23:48,753 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 19:23:50,755 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): answer these questions 1. What is the recommended... 2025-09-26 19:23:59,896 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 19:24:01,899 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): answer these questions 1. What is the recommended... 2025-09-26 19:24:13,219 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 19:24:15,220 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): answer these questions 1. What is the recommended... 2025-09-26 19:24:25,729 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 19:46:48,701 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-26 19:46:49,622 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-26 19:46:49,709 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-26 19:46:49,734 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-26 19:46:49,735 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-26 19:46:50,398 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-26 19:46:50,399 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-26 19:46:50,432 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-26 19:46:50,433 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-26 19:47:19,702 - AgenticMedicalRAG - WARNING - Input too long: 1266 characters 2025-09-26 19:47:31,877 - AgenticMedicalRAG - WARNING - Input too long: 1243 characters 2025-09-26 20:08:25,379 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-26 20:08:26,332 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-26 20:08:26,681 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-26 20:08:26,708 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-26 20:08:26,708 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-26 20:08:27,591 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-26 20:08:27,591 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-26 20:08:27,623 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-26 20:08:27,623 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-26 20:08:32,951 - AgenticMedicalRAG - ERROR - Failed to launch Gradio: Cannot find empty port in range: 7860-7860. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing the `server_port` parameter to `launch()`. 2025-09-26 20:09:39,723 - AgenticMedicalRAG - ERROR - Failed to load embedding model: (MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /api/models/abhinand/MedEmbed-base-v0.1/tree/main/additional_chat_templates?recursive=False&expand=False (Caused by NameResolutionError(": Failed to resolve \'huggingface.co\' ([Errno 11004] getaddrinfo failed)"))'), '(Request ID: 9208b60a-cd11-44be-9664-7c39920579a3)') 2025-09-26 20:11:04,608 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-26 20:11:05,539 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-26 20:11:05,636 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-26 20:11:05,660 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-26 20:11:05,661 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-26 20:11:06,558 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-26 20:11:06,558 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-26 20:11:06,589 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-26 20:11:06,590 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-26 23:45:11,863 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-26 23:45:12,691 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-26 23:45:12,820 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-26 23:45:12,854 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-26 23:45:12,854 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-26 23:45:13,282 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-26 23:45:13,282 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-26 23:45:13,301 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-26 23:45:13,301 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-26 23:45:45,554 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): answer these questions 1. What is the recommended... 2025-09-26 23:46:00,742 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 23:46:02,742 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): answer these questions 1. What is the recommended... 2025-09-26 23:46:12,045 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 23:46:14,047 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): answer these questions 1. What is the recommended... 2025-09-26 23:46:21,991 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 23:46:23,993 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): answer these questions 1. What is the recommended... 2025-09-26 23:46:30,101 - AgenticMedicalRAG - ERROR - Unexpected error in run_agent_streaming: cannot schedule new futures after interpreter shutdown 2025-09-26 23:46:30,103 - AgenticMedicalRAG - ERROR - Traceback: Traceback (most recent call last): File "D:\Work\Agentic-Medical-RAG-AI-Advisor\src\agent.py", line 248, in run_agent_streaming response = await task ^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Work\Agentic-Medical-RAG-AI-Advisor\src\agent.py", line 218, in run_sync return agent_executor.invoke( ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\chains\base.py", line 165, in invoke self._call(inputs, run_manager=run_manager) File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 1625, in _call next_step_output = self._take_next_step( ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 1325, in _take_next_step list( File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 1352, in _iter_next_step output = self._action_agent.plan( ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 573, in plan for chunk in self.runnable.stream(inputs, config={"callbacks": callbacks}): File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 3437, in stream yield from self.transform(iter([input]), config, **kwargs) File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 3423, in transform yield from self._transform_stream_with_config( File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 2214, in _transform_stream_with_config chunk: Output = context.run(next, iterator) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 3385, in _transform yield from final_pipeline File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 1428, in transform for ichunk in input: File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 5650, in transform yield from self.bound.transform( File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 1428, in transform for ichunk in input: File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 1428, in transform for ichunk in input: File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\passthrough.py", line 595, in transform yield from self._transform_stream_with_config( File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 2214, in _transform_stream_with_config chunk: Output = context.run(next, iterator) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\passthrough.py", line 567, in _transform first_map_chunk_future = executor.submit( ^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\config.py", line 530, in submit return super().submit( ^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\concurrent\futures\thread.py", line 169, in submit raise RuntimeError('cannot schedule new futures after ' RuntimeError: cannot schedule new futures after interpreter shutdown 2025-09-26 23:48:08,562 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-26 23:48:09,457 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-26 23:48:09,539 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-26 23:48:09,565 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-26 23:48:09,566 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-26 23:48:10,135 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-26 23:48:10,135 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-26 23:48:10,162 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-26 23:48:10,163 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-26 23:48:39,130 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-26 23:48:42,516 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 23:48:44,516 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): What is the recommended first-line treatment for a... 2025-09-26 23:48:45,810 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 23:48:47,812 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): What is the recommended first-line treatment for a... 2025-09-26 23:48:49,816 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-26 23:48:51,818 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): What is the recommended first-line treatment for a... 2025-09-26 23:48:53,109 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-27 00:01:32,753 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-27 00:01:33,165 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-27 00:01:33,216 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-27 00:01:33,227 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-27 00:01:33,227 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-27 00:01:33,595 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-27 00:01:33,595 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-27 00:01:33,607 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-27 00:01:33,607 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-27 00:01:52,894 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-27 00:01:55,464 - AgenticMedicalRAG - WARNING - Retrieved documents have 13021 tokens, but only 6000 tokens available. Truncating... 2025-09-27 00:01:55,477 - AgenticMedicalRAG - INFO - Documents truncated from 13021 to 6293 tokens 2025-09-27 00:02:04,998 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-27 00:03:49,314 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-27 00:03:49,725 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-27 00:03:49,776 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-27 00:03:49,787 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-27 00:03:49,788 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-27 00:03:50,155 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-27 00:03:50,155 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-27 00:03:50,170 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-27 00:03:50,170 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-27 00:04:10,850 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-27 00:04:13,041 - AgenticMedicalRAG - WARNING - Retrieved documents have 19470 tokens, but only 6000 tokens available. Truncating... 2025-09-27 00:04:13,056 - AgenticMedicalRAG - INFO - Documents truncated from 19470 to 6293 tokens 2025-09-27 00:04:17,388 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-27 00:07:18,132 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-27 00:07:18,894 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-27 00:07:18,966 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-27 00:07:18,989 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-27 00:07:18,989 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-27 00:07:19,549 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-27 00:07:19,549 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-27 00:07:19,574 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-27 00:07:19,574 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-27 00:07:53,864 - AgenticMedicalRAG - WARNING - Input extremely long: 86731 characters 2025-09-27 00:09:10,694 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-27 00:09:11,089 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-27 00:09:11,134 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-27 00:09:11,144 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-27 00:09:11,144 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-27 00:09:11,495 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-27 00:09:11,496 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-27 00:09:11,507 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-27 00:09:11,507 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-27 00:09:41,575 - AgenticMedicalRAG - WARNING - Input text has 13096 tokens, exceeding limit of 12000. Truncating to prevent API errors. 2025-09-27 00:09:41,580 - AgenticMedicalRAG - WARNING - Input text has 13096 tokens, exceeding limit of 12000. Truncating text... 2025-09-27 00:09:41,584 - AgenticMedicalRAG - INFO - Text truncated from 13096 to 12000 tokens 2025-09-27 00:09:41,585 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-27 00:09:43,557 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-27 00:09:45,557 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): What is the recommended first-line treatment for a... 2025-09-27 00:09:46,184 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-27 00:09:48,185 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): What is the recommended first-line treatment for a... 2025-09-27 00:09:48,489 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-27 00:09:50,490 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): What is the recommended first-line treatment for a... 2025-09-27 00:09:50,881 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-27 00:17:44,632 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-27 00:17:44,978 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-27 00:17:45,020 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-27 00:17:45,030 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-27 00:17:45,032 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-27 00:17:45,209 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-27 00:17:45,209 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-27 00:18:01,192 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-27 00:18:01,645 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-27 00:18:01,716 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-27 00:18:01,739 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-27 00:18:01,739 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-27 00:18:02,034 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-27 00:18:02,034 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-27 00:22:06,925 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-27 00:22:16,366 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-28 10:55:59,427 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 10:55:59,969 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 10:56:00,109 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 10:56:00,135 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 10:56:00,137 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 10:56:00,366 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 10:56:00,366 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 10:56:14,325 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 10:56:14,690 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 10:56:14,752 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 10:56:14,769 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 10:56:14,770 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 10:56:15,038 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 10:56:15,039 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 10:56:46,615 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-28 10:56:54,928 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-28 10:57:42,486 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 10:57:43,088 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 10:57:43,167 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 10:57:43,184 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 10:57:43,184 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 10:57:43,466 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 10:57:43,468 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 10:57:58,824 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 10:57:59,636 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 10:57:59,733 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 10:57:59,759 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 10:57:59,761 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 10:58:00,196 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 10:58:00,198 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 10:58:07,507 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-09-28 10:58:14,490 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-09-28 11:06:51,149 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 11:06:52,034 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 11:06:52,098 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 11:06:52,115 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 11:06:52,116 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 11:06:52,686 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 11:06:52,688 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 11:06:52,707 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 11:06:52,707 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 11:07:38,791 - AgenticMedicalRAG - WARNING - Input too long: 1267 characters 2025-09-28 11:08:37,379 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 11:08:37,605 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 11:08:37,964 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 11:08:37,991 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 11:08:37,992 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 11:08:38,319 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 11:08:38,319 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 11:10:48,552 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 11:10:49,497 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 11:10:49,572 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 11:10:49,593 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 11:10:49,594 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 11:10:50,233 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 11:10:50,233 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 11:10:50,263 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 11:10:50,264 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 11:11:02,173 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): answer these questions 1. What is the recommended ... 2025-09-28 11:11:12,208 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-28 11:11:14,210 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): answer these questions 1. What is the recommended ... 2025-09-28 11:11:23,285 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-28 11:11:25,285 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): answer these questions 1. What is the recommended ... 2025-09-28 11:11:34,516 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-28 11:11:36,518 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): answer these questions 1. What is the recommended ... 2025-09-28 11:11:44,732 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-09-28 11:21:12,827 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 11:21:13,831 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 11:21:13,916 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 11:21:13,940 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 11:21:13,941 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 11:21:14,618 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 11:21:14,618 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 11:21:14,651 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 11:21:14,652 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 11:21:39,461 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): answer these questions 1. What is the recommended ... 2025-09-28 11:22:25,243 - AgenticMedicalRAG - INFO - Successfully processed user input: answer these questions 1. What is the recommended ... 2025-09-28 11:29:37,083 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 11:29:37,879 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 11:29:37,951 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 11:29:37,973 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 11:29:37,974 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 11:29:38,532 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 11:29:38,533 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 11:29:38,559 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 11:29:38,561 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 11:30:11,706 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-09-28 11:30:25,318 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-09-28 15:21:23,670 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 15:21:24,225 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 15:21:24,272 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 15:21:24,286 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 15:21:24,286 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 15:21:24,639 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 15:21:24,640 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 15:21:24,644 - AgenticMedicalRAG - ERROR - Failed to import required modules: cannot import name 'side_effect_recording_tool' from 'tools' (D:\Work\Agentic-Medical-RAG-AI-Advisor-GitHub\src\tools.py) 2025-09-28 17:08:24,750 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 17:08:25,619 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 17:08:25,713 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 17:08:25,731 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 17:08:25,732 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 17:08:26,522 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 17:08:26,522 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 17:08:26,586 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 17:08:26,586 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 17:10:42,577 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 17:10:43,221 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 17:10:43,284 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 17:10:43,302 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 17:10:43,302 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 17:10:43,858 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 17:10:43,861 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 17:10:43,884 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 17:10:43,884 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 17:15:47,343 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that afatinib has these side effects Diarr... 2025-09-28 17:15:51,260 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that afatinib has these side effects Diarr... 2025-09-28 17:46:31,824 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 17:46:32,763 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 17:46:32,871 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 17:46:32,894 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 17:46:32,895 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 17:46:33,667 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 17:46:33,669 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 17:46:33,704 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 17:46:33,704 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 17:47:04,888 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that afatinib has these side effects Diarr... 2025-09-28 17:47:08,216 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that afatinib has these side effects Diarr... 2025-09-28 18:24:13,178 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 18:24:14,245 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 18:24:14,321 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 18:24:14,341 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 18:24:14,342 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 18:24:14,965 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 18:24:14,966 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 18:24:14,998 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 18:24:14,998 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 18:25:46,504 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): I found that afatinib can cause the following side... 2025-09-28 18:25:50,523 - AgenticMedicalRAG - INFO - Successfully processed user input: I found that afatinib can cause the following side... 2025-09-28 18:26:46,519 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): 55 male 40ml 3 months... 2025-09-28 18:26:50,308 - AgenticMedicalRAG - INFO - Successfully processed user input: 55 male 40ml 3 months... 2025-09-28 18:27:15,449 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): moderate ongoing... 2025-09-28 18:27:18,443 - AgenticMedicalRAG - INFO - Successfully processed user input: moderate ongoing... 2025-09-28 18:27:50,403 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): save report... 2025-09-28 18:27:53,555 - AgenticMedicalRAG - INFO - Successfully processed user input: save report... 2025-09-28 18:38:17,363 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 18:38:18,153 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 18:38:18,234 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 18:38:18,252 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 18:38:18,252 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 18:38:18,960 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 18:38:18,961 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 18:38:18,995 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 18:38:18,997 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 18:41:37,804 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): I found that afatinib can cause the following side... 2025-09-28 18:41:41,007 - AgenticMedicalRAG - INFO - Successfully processed user input: I found that afatinib can cause the following side... 2025-09-28 18:45:23,962 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): the patient's age is 55 and he is male and dosage ... 2025-09-28 18:45:27,901 - AgenticMedicalRAG - INFO - Successfully processed user input: the patient's age is 55 and he is male and dosage ... 2025-09-28 19:50:08,925 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 19:50:10,345 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 19:50:10,519 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 19:50:10,544 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 19:50:10,545 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 19:50:11,461 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 19:50:11,463 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 19:50:11,528 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 19:50:11,529 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 19:50:38,620 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): I found that afatinib can cause the following side... 2025-09-28 19:50:43,725 - AgenticMedicalRAG - INFO - Successfully processed user input: I found that afatinib can cause the following side... 2025-09-28 19:51:30,734 - AgenticMedicalRAG - INFO - Conversation memory cleared successfully 2025-09-28 19:51:30,734 - AgenticMedicalRAG - INFO - Successfully cleared chat memory and history 2025-09-28 19:58:55,102 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-28 19:58:55,851 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-28 19:58:55,931 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-28 19:58:55,954 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-28 19:58:55,955 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-28 19:58:56,513 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-28 19:58:56,514 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-28 19:58:56,549 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-09-28 19:58:56,549 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-09-28 19:59:36,399 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): I found that afatinib can cause the following side... 2025-09-28 19:59:40,693 - AgenticMedicalRAG - INFO - Successfully processed user input: I found that afatinib can cause the following side... 2025-09-30 12:07:29,525 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 12:07:30,290 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 12:07:30,451 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 12:07:30,470 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 12:07:30,470 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 12:07:30,841 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 12:07:30,842 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-30 12:07:46,793 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 12:07:47,340 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 12:07:47,524 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 12:07:47,553 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 12:07:47,554 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 12:07:47,915 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 12:07:47,916 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-30 12:08:18,007 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-30 12:08:29,664 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-30 12:08:52,204 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-30 12:09:03,518 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-30 14:04:01,384 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 14:04:01,872 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 14:04:01,957 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 14:04:01,979 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 14:04:01,980 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 14:04:02,363 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 14:04:02,364 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-30 14:08:15,099 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 14:08:15,489 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 14:08:15,552 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 14:08:15,567 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 14:08:15,570 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 14:08:15,852 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 14:08:15,854 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-30 14:10:04,366 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 14:10:04,917 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 14:10:05,000 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 14:10:05,017 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 14:10:05,018 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 14:10:05,321 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 14:10:05,323 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-30 14:11:43,739 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 14:11:44,207 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 14:11:44,283 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 14:11:44,307 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 14:11:44,307 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 14:11:44,668 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 14:11:44,669 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-30 14:12:02,431 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 14:12:02,911 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 14:12:02,989 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 14:12:03,008 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 14:12:03,009 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 14:12:03,371 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 14:12:03,371 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-30 14:22:22,453 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 14:22:23,029 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 14:22:23,113 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 14:22:23,133 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 14:22:23,134 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 14:22:23,485 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 14:22:23,486 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-30 14:26:58,213 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 14:26:58,933 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 14:26:59,009 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 14:26:59,029 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 14:26:59,030 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 14:26:59,367 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 14:26:59,367 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-30 14:27:12,980 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-30 14:27:56,532 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-30 14:28:16,414 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-30 14:28:25,301 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-30 21:42:36,452 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 21:42:36,937 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 21:42:37,037 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 21:42:37,047 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 21:42:37,047 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 21:42:37,208 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 21:42:37,208 - AgenticMedicalRAG - INFO - ✅ Retrievers created and hybrid retriever is ready. 2025-09-30 22:04:14,108 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 22:06:21,470 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should stage III NSCLC with EGFR mutations be ... 2025-09-30 22:06:21,470 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-09-30 22:06:21,981 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-09-30 22:06:24,914 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-09-30 22:06:24,915 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-09-30 22:06:24,917 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-09-30 22:06:39,317 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-09-30 22:06:39,390 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-09-30 22:06:39,412 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-09-30 22:06:39,412 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-09-30 22:06:39,712 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-09-30 22:06:39,713 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-09-30 22:06:51,982 - AgenticMedicalRAG - INFO - Successfully processed user input: How should stage III NSCLC with EGFR mutations be ... 2025-09-30 22:09:15,536 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-09-30 22:09:59,812 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): I found that afatinib can cause the following side... 2025-09-30 22:09:59,812 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-09-30 22:10:00,261 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-09-30 22:10:04,676 - AgenticMedicalRAG - INFO - Successfully processed user input: I found that afatinib can cause the following side... 2025-10-01 11:08:17,517 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:08:58,099 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:09:02,449 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:09:06,497 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:09:11,130 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:09:55,514 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 11:09:55,515 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 11:09:56,194 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 11:09:58,163 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 11:09:58,164 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 11:09:58,166 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 11:10:18,154 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 11:10:18,353 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 11:10:18,397 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 11:10:18,398 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 11:10:18,726 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 11:10:18,727 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 11:10:26,024 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 11:13:22,817 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:13:39,242 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:14:03,610 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:27:48,592 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 11:27:48,592 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 11:27:49,013 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 11:27:50,879 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 11:27:50,880 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 11:27:50,882 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 11:28:04,902 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 11:28:04,971 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 11:28:04,990 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 11:28:04,990 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 11:28:05,286 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 11:28:05,287 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 11:28:14,371 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 11:30:17,632 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:30:36,899 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 11:30:36,900 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 11:30:37,354 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 11:30:39,328 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 11:30:39,329 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 11:30:39,330 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 11:30:52,017 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 11:30:52,113 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 11:30:52,133 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 11:30:52,135 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 11:30:52,426 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 11:30:52,427 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 11:30:59,770 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 11:32:34,382 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:32:41,494 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:32:52,116 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:38:23,378 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 11:38:44,969 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 11:38:44,969 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 11:38:45,446 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 11:38:47,664 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 11:38:47,664 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 11:38:47,665 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 11:39:00,379 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 11:39:00,471 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 11:39:00,496 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 11:39:00,498 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 11:39:00,795 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 11:39:00,796 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 11:39:08,907 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 11:57:41,075 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:01:33,774 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 12:01:33,775 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 12:01:34,237 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 12:01:35,987 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 12:01:35,988 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 12:01:35,990 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 12:01:48,472 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 12:01:48,563 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 12:01:48,585 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 12:01:48,585 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 12:01:48,881 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 12:01:48,882 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 12:01:55,918 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 12:03:49,244 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:11:06,958 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:11:34,125 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 12:11:34,126 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 12:11:34,581 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 12:11:36,608 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 12:11:36,608 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 12:11:36,609 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 12:11:50,859 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 12:11:50,974 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 12:11:50,999 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 12:11:51,000 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 12:11:51,305 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 12:11:51,306 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 12:12:03,103 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 12:15:04,808 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:15:12,227 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:15:35,881 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:18:09,901 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:18:22,784 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 12:18:22,785 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 12:18:23,232 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 12:18:24,941 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 12:18:24,943 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 12:18:24,944 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 12:18:37,203 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 12:18:37,294 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 12:18:37,318 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 12:18:37,319 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 12:18:37,621 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 12:18:37,623 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 12:18:49,475 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 12:21:46,365 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:22:00,952 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:22:06,742 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:22:12,344 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:22:26,597 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:22:33,888 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:22:44,821 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 12:22:56,268 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 14:26:12,339 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 14:26:14,168 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 14:26:14,168 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 14:26:48,420 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 14:26:48,421 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 14:26:48,927 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 14:26:51,049 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 14:26:51,050 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 14:26:51,051 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 14:27:05,144 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 14:27:05,220 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 14:27:05,242 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 14:27:05,242 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 14:27:05,587 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 14:27:05,588 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 14:27:25,795 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 14:33:51,285 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 14:33:52,115 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 14:33:52,116 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 14:34:03,074 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 14:34:03,077 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 14:34:03,588 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 14:34:05,104 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 14:34:05,104 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 14:34:05,105 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 14:34:17,293 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 14:34:17,346 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 14:34:17,358 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 14:34:17,358 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 14:34:17,538 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 14:34:17,539 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 14:34:30,405 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 14:39:45,532 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 14:39:46,392 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 14:39:46,392 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 14:39:58,035 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 14:39:58,037 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 14:39:58,533 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 14:40:00,635 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 14:40:00,635 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 14:40:00,636 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 14:40:11,039 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 14:40:11,099 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 14:40:11,115 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 14:40:11,116 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 14:40:11,290 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 14:40:11,291 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 14:40:24,626 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-01 14:40:26,626 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): What is the recommended first-line treatment for a... 2025-10-01 14:40:35,888 - AgenticMedicalRAG - ERROR - Unexpected error in run_agent_streaming: cannot schedule new futures after interpreter shutdown 2025-10-01 14:40:35,889 - AgenticMedicalRAG - ERROR - Traceback: Traceback (most recent call last): File "D:\Work\Agentic-Medical-RAG-AI-Advisor-GitHub\src\agent.py", line 265, in run_agent_streaming response = await task ^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Work\Agentic-Medical-RAG-AI-Advisor-GitHub\src\agent.py", line 235, in run_sync return get_agent_executor().invoke( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\chains\base.py", line 165, in invoke self._call(inputs, run_manager=run_manager) File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 1625, in _call next_step_output = self._take_next_step( ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 1325, in _take_next_step list( File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 1352, in _iter_next_step output = self._action_agent.plan( ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 573, in plan for chunk in self.runnable.stream(inputs, config={"callbacks": callbacks}): File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 3437, in stream yield from self.transform(iter([input]), config, **kwargs) File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 3423, in transform yield from self._transform_stream_with_config( File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 2214, in _transform_stream_with_config chunk: Output = context.run(next, iterator) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 3385, in _transform yield from final_pipeline File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 1428, in transform for ichunk in input: File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 5650, in transform yield from self.bound.transform( File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 1428, in transform for ichunk in input: File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 1428, in transform for ichunk in input: File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\passthrough.py", line 595, in transform yield from self._transform_stream_with_config( File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\base.py", line 2214, in _transform_stream_with_config chunk: Output = context.run(next, iterator) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\passthrough.py", line 567, in _transform first_map_chunk_future = executor.submit( ^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\runnables\config.py", line 530, in submit return super().submit( ^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\concurrent\futures\thread.py", line 169, in submit raise RuntimeError('cannot schedule new futures after ' RuntimeError: cannot schedule new futures after interpreter shutdown 2025-10-01 14:43:33,792 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 14:43:34,650 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 14:43:34,650 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 14:43:46,524 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 14:43:46,525 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 14:43:47,015 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 14:43:48,524 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 14:43:48,525 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 14:43:48,526 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 14:43:58,550 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 14:43:58,592 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 14:43:58,603 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 14:43:58,603 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 14:43:58,758 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 14:43:58,759 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 14:44:14,607 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 15:02:27,184 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 15:02:28,358 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 15:02:28,358 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 15:13:26,105 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 15:13:26,106 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 15:13:26,805 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 15:13:28,991 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 15:13:28,991 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 15:13:28,992 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 15:13:47,296 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 15:13:47,418 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 15:13:47,444 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 15:13:47,444 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 15:13:47,612 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 15:13:47,613 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 15:13:58,481 - AgenticMedicalRAG - ERROR - Unexpected error in run_agent_streaming: 1 validation error for medical_answer_validation_tool retrieved_chunks Field required [type=missing, input_value={'question': 'What is the... The choice of regimen'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.11/v/missing 2025-10-01 15:13:58,482 - AgenticMedicalRAG - ERROR - Traceback: Traceback (most recent call last): File "D:\Work\Agentic-Medical-RAG-AI-Advisor-GitHub\src\agent.py", line 270, in run_agent_streaming response = await task ^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Work\Agentic-Medical-RAG-AI-Advisor-GitHub\src\agent.py", line 240, in run_sync return get_agent_executor().invoke( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\chains\base.py", line 165, in invoke self._call(inputs, run_manager=run_manager) File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 1625, in _call next_step_output = self._take_next_step( ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 1325, in _take_next_step list( File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 1408, in _iter_next_step yield self._perform_agent_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain\agents\agent.py", line 1433, in _perform_agent_action observation = tool.run( ^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\tools\base.py", line 883, in run raise error_to_raise File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\tools\base.py", line 845, in run tool_args, tool_kwargs = self._to_args_and_kwargs( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\tools\base.py", line 760, in _to_args_and_kwargs tool_input = self._parse_input(tool_input, tool_call_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\langchain_core\tools\base.py", line 667, in _parse_input result = input_args.model_validate(tool_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\miniconda3\envs\medical-rag-app\Lib\site-packages\pydantic\main.py", line 705, in model_validate return cls.__pydantic_validator__.validate_python( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 1 validation error for medical_answer_validation_tool retrieved_chunks Field required [type=missing, input_value={'question': 'What is the... The choice of regimen'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.11/v/missing 2025-10-01 15:17:18,358 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 15:17:19,211 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 15:17:19,212 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 15:17:30,254 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 15:17:30,255 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 15:17:30,836 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 15:17:32,781 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 15:17:32,782 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 15:17:32,782 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 15:17:43,455 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 15:17:43,502 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 15:17:43,513 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 15:17:43,513 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 15:17:43,696 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 15:17:43,697 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 15:17:59,773 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 15:27:40,132 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 15:27:41,014 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 15:27:41,014 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 15:27:55,995 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 15:27:55,996 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 15:27:56,437 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 15:27:58,313 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 15:27:58,313 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 15:27:58,315 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 15:28:13,681 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 15:28:13,734 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 15:28:13,749 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 15:28:13,749 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 15:28:13,986 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 15:28:13,987 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 15:28:29,519 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 15:47:00,341 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 15:47:01,626 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 15:47:01,627 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 15:47:12,019 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 15:47:12,022 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 15:47:12,542 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 15:47:14,778 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 15:47:14,778 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 15:47:14,780 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 15:47:30,972 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 15:47:31,088 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 15:47:31,115 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 15:47:31,116 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 15:47:31,492 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 15:47:31,494 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 15:47:43,627 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 16:25:30,425 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 16:25:31,633 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 16:25:31,633 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 16:25:44,961 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 16:25:44,965 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 16:25:45,524 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 16:25:48,592 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 16:25:48,594 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 16:25:48,594 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 16:26:01,777 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 16:26:01,867 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 16:26:01,892 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 16:26:01,892 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 16:26:02,157 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 16:26:02,158 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 16:26:18,371 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 16:35:57,877 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 16:35:59,261 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 16:35:59,263 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 16:36:17,532 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 16:36:17,533 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 16:36:18,046 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 16:36:20,032 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 16:36:20,033 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 16:36:20,034 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 16:36:33,833 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 16:36:33,915 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 16:36:33,936 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 16:36:33,937 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 16:36:34,209 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 16:36:34,212 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 16:36:47,584 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 16:51:01,133 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 16:51:02,390 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 16:51:02,391 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 17:46:46,709 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 17:46:47,940 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 17:46:47,940 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 17:47:00,748 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 17:47:00,750 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 17:47:01,354 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 17:47:36,244 - AgenticMedicalRAG - ERROR - OpenAI API error: Connection error. 2025-10-01 17:47:38,245 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): What is the recommended first-line treatment for a... 2025-10-01 17:48:12,725 - AgenticMedicalRAG - ERROR - OpenAI API error: Connection error. 2025-10-01 17:48:14,726 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): What is the recommended first-line treatment for a... 2025-10-01 17:48:16,023 - AgenticMedicalRAG - ERROR - OpenAI API error: Connection error. 2025-10-01 17:48:18,024 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): What is the recommended first-line treatment for a... 2025-10-01 17:48:19,401 - AgenticMedicalRAG - ERROR - OpenAI API error: Connection error. 2025-10-01 17:54:29,723 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 17:54:31,131 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 17:54:31,131 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 17:54:42,261 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 17:54:42,262 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 17:54:42,705 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 17:54:46,601 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 17:54:46,601 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 17:54:46,602 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 17:54:58,728 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 17:54:58,807 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 17:54:58,823 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 17:54:58,824 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 17:54:59,051 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 17:54:59,051 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 17:55:18,179 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-01 18:19:14,553 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-01 18:19:15,941 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-01 18:19:15,941 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-01 18:20:06,582 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-01 18:20:06,585 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-01 18:20:07,180 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-01 18:20:09,729 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-01 18:20:09,730 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-01 18:20:09,731 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-01 18:20:26,724 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-01 18:20:26,795 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-01 18:20:26,811 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-01 18:20:26,817 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-01 18:20:27,081 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-01 18:20:27,082 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-01 18:20:43,455 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-02 18:36:22,090 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-02 18:36:23,133 - AgenticMedicalRAG - ERROR - Failed to import required modules: cannot import name 'medical_guidelines_knowledge_tool' from 'tools' (C:\Users\moaze\AppData\Roaming\Python\Python313\site-packages\tools\__init__.py) 2025-10-02 19:37:51,324 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-02 19:37:51,755 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-02 19:37:55,058 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-02 19:37:55,058 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-02 19:38:36,766 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended treatment for stage IV NSC... 2025-10-02 19:38:36,767 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-02 19:38:38,415 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-02 19:38:40,711 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-02 19:38:40,711 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-02 19:38:40,712 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-02 19:38:57,251 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-02 19:38:57,821 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-02 19:38:58,358 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-02 19:38:58,358 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-02 19:38:58,695 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-02 19:38:58,696 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-02 19:39:22,186 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-02 19:39:22,188 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-02 19:39:38,655 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended treatment for stage IV NSC... 2025-10-02 19:45:16,628 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-02 19:45:17,072 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-02 19:45:17,858 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-02 19:45:17,859 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-02 19:45:43,221 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended treatment for stage IV NSC... 2025-10-02 19:45:43,223 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-02 19:45:44,433 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-02 19:45:46,353 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-02 19:45:46,354 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-02 19:45:46,355 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-02 19:45:53,977 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-02 19:45:54,065 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-02 19:45:54,386 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-02 19:45:54,387 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-02 19:45:54,621 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-02 19:45:54,621 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-02 19:46:07,764 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-02 19:46:07,765 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-02 19:47:05,025 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended treatment for stage IV NSC... 2025-10-02 19:58:36,581 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-02 19:58:36,996 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-02 19:58:37,843 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-02 19:58:37,843 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-02 19:58:50,737 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended treatment for stage IV NSC... 2025-10-02 19:58:50,738 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-02 19:58:52,005 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-02 19:58:53,484 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-02 19:58:53,484 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-02 19:58:53,485 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-02 19:59:00,460 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-02 19:59:00,537 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-02 19:59:01,072 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-02 19:59:01,073 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-02 19:59:01,318 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-02 19:59:01,319 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-02 19:59:07,390 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-02 19:59:07,392 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-02 19:59:49,818 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended treatment for stage IV NSC... 2025-10-04 17:52:21,573 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-04 17:52:24,124 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-04 17:52:24,125 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-04 17:52:58,282 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-04 17:52:58,285 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-04 17:52:59,182 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-04 17:53:01,439 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-04 17:53:01,439 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-04 17:53:01,442 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-04 17:53:23,385 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-04 17:53:23,612 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-04 17:53:23,664 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-04 17:53:23,664 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-04 17:53:24,021 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-04 17:53:24,023 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-04 17:53:30,195 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-04 17:53:35,609 - AgenticMedicalRAG - ERROR - Failed to parse validation JSON: Expecting value: line 1 column 1 (char 0) 2025-10-04 17:53:35,976 - AgenticMedicalRAG - INFO - Evaluation saved with ID: baf04454-fd01-48b3-9375-8a409059d824 2025-10-04 17:53:36,977 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-04 18:15:53,482 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-04 18:15:54,905 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-04 18:15:54,906 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-04 18:16:05,158 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-04 18:16:05,161 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-04 18:16:05,981 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-04 18:16:08,123 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-04 18:16:08,124 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-04 18:16:08,125 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-04 18:16:21,368 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-04 18:16:21,430 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-04 18:16:21,446 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-04 18:16:21,448 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-04 18:16:21,729 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-04 18:16:21,730 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-04 18:16:26,987 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-04 18:16:33,282 - AgenticMedicalRAG - INFO - Evaluation saved with ID: 84ea1f44-9fed-49d1-a5d8-1656bdb3e704 2025-10-04 18:16:35,149 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-04 19:30:07,921 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-04 19:30:09,618 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-04 19:30:09,619 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-04 19:30:34,744 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-04 19:30:34,745 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-04 19:30:35,398 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-04 19:30:37,778 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-04 19:30:37,779 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-04 19:30:37,779 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-04 19:30:57,624 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-04 19:30:57,767 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-04 19:30:57,799 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-04 19:30:57,801 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-04 19:30:58,199 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-04 19:30:58,200 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-04 19:31:03,763 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-04 19:31:03,814 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-04 19:31:03,815 - AgenticMedicalRAG - ERROR - Error getting next interaction ID: Expecting value: line 1 column 1 (char 0) 2025-10-04 19:31:03,815 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-04 19:31:09,350 - AgenticMedicalRAG - INFO - Evaluation saved with ID: 1 2025-10-04 19:31:16,710 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-04 19:31:51,524 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-04 19:31:56,979 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-04 19:31:56,982 - AgenticMedicalRAG - INFO - Starting validation for interaction 2 2025-10-04 19:32:03,912 - AgenticMedicalRAG - INFO - Evaluation saved with ID: 2 2025-10-05 09:39:56,512 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 09:39:58,032 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-05 09:39:58,033 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-05 09:40:38,205 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-05 09:40:38,207 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 09:40:39,060 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 09:40:41,242 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 09:40:41,243 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 09:40:41,244 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 09:41:01,277 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 09:41:01,467 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 09:41:01,489 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 09:41:01,489 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 09:41:01,845 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 09:41:01,846 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 09:41:08,060 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-05 09:41:08,094 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-05 09:41:08,096 - AgenticMedicalRAG - ERROR - Error getting next interaction ID: Expecting value: line 1 column 1 (char 0) 2025-10-05 09:41:08,096 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-05 09:41:13,992 - AgenticMedicalRAG - INFO - Evaluation saved with ID: 1 2025-10-05 09:41:20,334 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-05 09:54:30,977 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 09:54:32,796 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-05 09:54:32,796 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-05 09:54:32,797 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 09:54:32,798 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 09:54:32,799 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-05 09:54:32,799 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 09:54:32,804 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 09:54:32,935 - AgenticMedicalRAG - ERROR - Failed to launch Gradio: EventListener._setup..event_trigger() got an unexpected keyword argument 'every' 2025-10-05 10:10:31,814 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 10:10:33,865 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-05 10:10:33,865 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-05 10:10:33,865 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 10:10:33,867 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 10:10:33,867 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-05 10:10:33,868 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 10:10:33,871 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 10:10:56,627 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-05 10:10:56,630 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 10:10:56,902 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 10:10:56,903 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-05 10:10:56,905 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-05 10:10:56,905 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 10:10:56,908 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 10:10:57,066 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 10:10:57,121 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 10:10:57,123 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 10:10:57,678 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 10:10:57,680 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 10:10:57,680 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-05 10:10:57,681 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-05 10:10:57,681 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 10:10:58,050 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 10:10:58,050 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 10:10:58,050 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-05 10:10:58,076 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-05 10:11:06,112 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-05 10:11:06,149 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-05 10:11:06,157 - AgenticMedicalRAG - INFO - Starting validation for interaction 2 2025-10-05 10:11:11,523 - AgenticMedicalRAG - INFO - Evaluation saved with ID: 2 2025-10-05 10:11:18,164 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-05 10:13:35,677 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 10:14:15,795 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-05 10:14:15,795 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 10:14:16,303 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 10:14:18,160 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 10:14:18,161 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 10:14:18,163 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 10:14:34,085 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 10:14:34,163 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 10:14:34,189 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 10:14:34,189 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 10:14:34,478 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 10:14:34,479 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 10:14:40,213 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-05 10:14:40,213 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-05 10:14:40,261 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-05 10:14:40,262 - AgenticMedicalRAG - ERROR - Error getting next interaction ID: Expecting value: line 1 column 1 (char 0) 2025-10-05 10:14:40,262 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-05 10:14:47,368 - AgenticMedicalRAG - INFO - Evaluation saved with ID: 1 2025-10-05 10:17:21,663 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 10:17:22,909 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 10:17:22,911 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 10:17:22,911 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 10:17:22,913 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 10:17:39,692 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 10:17:40,915 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 10:17:40,915 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 10:17:40,916 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 10:17:40,918 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 10:17:46,054 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 10:17:47,256 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 10:17:47,257 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 10:17:47,259 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 10:17:47,259 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 10:17:56,489 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 10:17:57,616 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 10:17:57,618 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 10:17:57,618 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 10:17:57,619 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 10:18:06,637 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 10:18:07,880 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 10:18:07,882 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 10:18:07,883 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 10:18:07,884 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 10:18:13,761 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 10:18:14,869 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 10:18:14,870 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 10:18:14,871 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 10:18:14,872 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 10:18:33,045 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 10:18:34,261 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 10:18:34,262 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 10:18:34,264 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 10:18:34,265 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 10:18:50,081 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 10:18:50,081 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-05 10:18:50,082 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-05 10:18:50,082 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 10:18:50,083 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 10:18:50,167 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 10:18:50,193 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 10:18:50,194 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 10:18:50,495 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 10:18:50,496 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 10:18:50,496 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-05 10:18:50,497 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-05 10:18:50,498 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 10:18:50,912 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 10:18:50,912 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-05 10:18:50,913 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-05 11:25:34,292 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 11:25:35,291 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 11:25:35,292 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 11:25:35,292 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 11:25:35,293 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 11:25:52,708 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 11:25:52,709 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-05 11:25:52,710 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-05 11:25:52,710 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 11:25:52,710 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 11:25:52,815 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 11:25:52,844 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 11:25:52,845 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 11:25:53,231 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 11:25:53,232 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 11:25:53,232 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-05 11:25:53,232 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-05 11:25:53,234 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 11:25:53,701 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 11:25:53,702 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-05 11:25:53,702 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-05 11:25:55,088 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-05 11:26:02,082 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-05 11:26:02,083 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-05 11:26:02,128 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-05 11:26:02,129 - AgenticMedicalRAG - INFO - Starting validation for interaction 2 2025-10-05 11:26:08,987 - AgenticMedicalRAG - INFO - Evaluation saved with ID: 2 2025-10-05 14:33:57,468 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 14:33:59,620 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-05 14:33:59,621 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-05 14:33:59,621 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 14:33:59,622 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 14:33:59,622 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-05 14:33:59,623 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 14:33:59,626 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 14:34:19,485 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-05 14:34:19,489 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 14:34:19,650 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 14:34:19,651 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-05 14:34:19,652 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-05 14:34:19,653 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 14:34:19,653 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 14:34:19,968 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 14:34:20,048 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 14:34:20,051 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 14:34:20,480 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 14:34:20,482 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 14:34:20,482 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-05 14:34:20,482 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-05 14:34:20,482 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 14:34:20,844 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 14:34:20,844 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-05 14:34:20,845 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-05 14:34:20,848 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 14:34:27,587 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-05 14:34:27,629 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-05 14:34:27,652 - AgenticMedicalRAG - INFO - Starting validation for interaction 3 2025-10-05 14:34:34,486 - AgenticMedicalRAG - INFO - Evaluation saved with ID: 3 2025-10-05 14:34:41,592 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-05 17:59:55,233 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 17:59:56,921 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-05 17:59:56,921 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-05 17:59:56,922 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 17:59:56,922 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 17:59:56,923 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-05 17:59:56,923 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 17:59:56,926 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 18:00:15,260 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 18:00:15,261 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-05 18:00:15,262 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-05 18:00:15,263 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 18:00:15,263 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 18:00:15,369 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 18:00:15,392 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 18:00:15,393 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 18:00:15,773 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 18:00:15,774 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 18:00:15,774 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-05 18:00:15,774 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-05 18:00:15,774 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 18:00:16,236 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 18:00:16,238 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-05 18:00:16,239 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-05 18:00:19,958 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects feve... 2025-10-05 18:00:25,273 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-05 18:00:25,273 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-05 18:00:25,275 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects feve... 2025-10-05 18:01:23,852 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Patient's age : 55 Patient's gender Male Medicatio... 2025-10-05 18:01:27,947 - AgenticMedicalRAG - INFO - Successfully processed user input: Patient's age : 55 Patient's gender Male Medicatio... 2025-10-05 19:43:38,412 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 19:44:38,933 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 19:47:09,786 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 19:51:49,611 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 19:51:51,290 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-05 19:51:51,290 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-05 19:51:51,290 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 19:51:51,290 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 19:51:51,290 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-05 19:51:51,292 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 19:51:51,292 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 19:52:04,282 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 19:52:04,283 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-05 19:52:04,284 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-05 19:52:04,284 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 19:52:04,284 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 19:52:04,392 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 19:52:04,402 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 19:52:04,403 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 19:52:04,586 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 19:52:04,586 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 19:52:04,587 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-05 19:52:04,587 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-05 19:52:04,587 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 19:52:04,893 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 19:52:04,894 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-05 19:52:04,894 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-05 19:52:12,655 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-05 19:52:16,603 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-05 19:52:16,604 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-05 19:52:16,604 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-05 19:52:30,710 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Patient's age : 55 Patient's gender Male Medicatio... 2025-10-05 19:55:05,153 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 19:57:10,249 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 19:57:10,249 - AgenticMedicalRAG - ERROR - Failed to initialize Google Drive storage: Expecting property name enclosed in double quotes: line 9 column 3 (char 413) 2025-10-05 19:57:10,419 - AgenticMedicalRAG - INFO - Side effects report saved locally: side_effects_reports.csv 2025-10-05 19:57:28,160 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 19:57:29,173 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-05 19:57:29,173 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-05 19:57:29,173 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 19:57:29,173 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 19:57:29,173 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-05 19:57:29,173 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 19:57:29,176 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 19:57:39,609 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 19:57:39,610 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-05 19:57:39,610 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-05 19:57:39,611 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 19:57:39,611 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 19:57:39,651 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 19:57:39,661 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 19:57:39,662 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 19:57:39,830 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 19:57:39,830 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 19:57:39,831 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-05 19:57:39,831 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-05 19:57:39,831 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 19:57:40,048 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 19:57:40,048 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-05 19:57:40,048 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-05 19:58:36,255 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-05 19:58:38,438 - AgenticMedicalRAG - ERROR - Failed to initialize Google Drive storage: Expecting property name enclosed in double quotes: line 9 column 3 (char 413) 2025-10-05 19:58:38,438 - AgenticMedicalRAG - INFO - Side effects report saved locally: side_effects_reports.csv 2025-10-05 19:58:39,867 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-05 21:27:43,347 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 21:27:44,612 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-05 21:27:44,613 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-05 21:27:44,613 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 21:27:44,613 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 21:27:44,613 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-05 21:27:44,613 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 21:27:44,615 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 21:27:59,170 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-05 21:27:59,171 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 21:27:59,304 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 21:27:59,305 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-05 21:27:59,306 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-05 21:27:59,306 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 21:27:59,307 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 21:27:59,425 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 21:27:59,458 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 21:27:59,460 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 21:27:59,806 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 21:27:59,807 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 21:27:59,810 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-05 21:27:59,810 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-05 21:27:59,810 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 21:28:00,148 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 21:28:00,148 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 21:28:00,148 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-05 21:28:00,171 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-05 21:28:05,714 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-05 21:28:05,714 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-05 21:28:05,715 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-05 21:39:44,415 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 21:39:44,418 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-05 21:39:46,161 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-05 21:39:47,781 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-05 21:39:50,681 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-05 21:39:50,683 - AgenticMedicalRAG - INFO - Successfully saved side effects report to GitHub 2025-10-05 21:40:13,033 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 21:40:13,889 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-05 21:40:13,890 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-05 21:40:13,890 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 21:40:13,890 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 21:40:13,890 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-05 21:40:13,890 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 21:40:13,891 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 21:40:23,258 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 21:40:23,258 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-05 21:40:23,259 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-05 21:40:23,259 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 21:40:23,260 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 21:40:23,315 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 21:40:23,329 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 21:40:23,330 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 21:40:23,528 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 21:40:23,528 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 21:40:23,528 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-05 21:40:23,529 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-05 21:40:23,529 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 21:40:23,930 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 21:40:23,931 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-05 21:40:23,931 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-05 21:40:41,816 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-05 21:40:44,691 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-05 21:49:44,148 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-05 21:49:45,213 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-05 21:49:45,214 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-05 21:49:45,214 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-05 21:49:45,215 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-05 21:49:45,215 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-05 21:49:45,215 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-05 21:49:45,216 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-05 21:49:56,902 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-05 21:49:56,902 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-05 21:49:56,903 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-05 21:49:56,903 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-05 21:49:56,903 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-05 21:49:56,973 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-05 21:49:56,994 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-05 21:49:56,995 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-05 21:49:57,312 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-05 21:49:57,313 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-05 21:49:57,313 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-05 21:49:57,313 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-05 21:49:57,314 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-05 21:49:57,715 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-05 21:49:57,716 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-05 21:49:57,717 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-05 21:50:04,692 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-05 21:50:07,050 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-05 21:50:08,456 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-05 21:50:09,916 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-05 21:50:09,916 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-05 21:50:09,916 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-05 21:51:09,241 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-05 21:51:19,034 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-05 21:51:19,071 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-05 21:51:19,071 - AgenticMedicalRAG - ERROR - Error getting next interaction ID: Expecting value: line 1 column 1 (char 0) 2025-10-05 21:51:19,072 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-05 21:51:32,900 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-05 21:51:32,902 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 1 2025-10-05 21:51:42,220 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-06 15:08:37,777 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 15:08:40,423 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-06 15:08:40,424 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-06 15:08:40,424 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-06 15:08:40,425 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-06 15:08:40,425 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-06 15:08:40,426 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-06 15:08:40,430 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-06 15:09:03,246 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-06 15:09:03,248 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-06 15:09:03,248 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-06 15:09:03,249 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-06 15:09:03,250 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-06 15:09:03,472 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-06 15:09:03,523 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-06 15:09:03,524 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-06 15:09:03,905 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-06 15:09:03,906 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-06 15:09:03,906 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-06 15:09:03,907 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-06 15:09:03,907 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-06 15:09:04,562 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-06 15:09:04,562 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-06 15:09:04,564 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-06 15:10:12,041 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-06 15:10:22,109 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 15:10:22,156 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-06 15:10:22,158 - AgenticMedicalRAG - ERROR - Error getting next interaction ID: Expecting value: line 1 column 1 (char 0) 2025-10-06 15:10:22,158 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-06 15:10:29,836 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-06 15:10:31,963 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-06 15:10:31,964 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 1 2025-10-06 15:10:38,504 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-06 15:26:02,901 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 15:26:02,902 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-06 15:26:05,527 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-06 15:27:34,937 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 15:27:36,174 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-06 15:27:36,174 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-06 15:27:36,175 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-06 15:27:36,176 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-06 15:27:36,176 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-06 15:27:36,176 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-06 15:27:36,178 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-06 15:27:46,958 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-06 15:27:46,960 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-06 15:27:47,811 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-06 15:27:49,812 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-06 15:27:49,812 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-06 15:27:49,814 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-06 15:27:51,238 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-06 15:27:51,239 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-06 15:27:51,240 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-06 15:27:51,240 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-06 15:27:51,240 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-06 15:27:51,334 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-06 15:27:51,362 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-06 15:27:51,363 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-06 15:27:51,754 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-06 15:27:51,756 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-06 15:27:51,756 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-06 15:27:51,758 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-06 15:27:51,760 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-06 15:27:51,760 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-06 15:27:53,335 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-06 15:27:53,374 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-06 15:27:53,409 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-06 15:27:53,410 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-06 15:27:53,774 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-06 15:27:53,794 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-06 15:27:58,811 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 15:27:58,849 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-06 15:27:58,850 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-06 15:27:59,357 - AgenticMedicalRAG - ERROR - Error getting next interaction ID: Expecting value: line 1 column 1 (char 0) 2025-10-06 15:27:59,358 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-06 15:28:09,637 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 1 2025-10-06 15:28:11,580 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-06 15:28:11,581 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 1 2025-10-06 15:28:18,941 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-06 15:28:38,365 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should patients with stage IV NSCLC and EGFR m... 2025-10-06 15:28:50,010 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 15:28:50,417 - AgenticMedicalRAG - INFO - Starting validation for interaction 2 2025-10-06 15:30:00,704 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 2 2025-10-06 15:30:02,074 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-06 15:30:02,077 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 2 2025-10-06 15:30:10,446 - AgenticMedicalRAG - INFO - Successfully processed user input: How should patients with stage IV NSCLC and EGFR m... 2025-10-06 15:30:10,477 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How should patients with stage IV NSCLC and EGFR m... 2025-10-06 15:30:17,358 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 15:30:17,923 - AgenticMedicalRAG - INFO - Starting validation for interaction 3 2025-10-06 15:30:32,287 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 3 2025-10-06 15:30:34,351 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-06 15:30:34,352 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 3 2025-10-06 15:30:41,391 - AgenticMedicalRAG - INFO - Successfully processed user input: How should patients with stage IV NSCLC and EGFR m... 2025-10-06 15:30:59,714 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 15:31:00,943 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-06 15:31:00,943 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-06 15:31:00,943 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-06 15:31:00,944 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-06 15:31:00,944 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-06 15:31:00,944 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-06 15:31:00,945 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-06 15:31:16,517 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-06 15:31:16,518 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-06 15:31:16,518 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-06 15:31:16,520 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-06 15:31:16,520 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-06 15:31:16,604 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-06 15:31:16,623 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-06 15:31:16,624 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-06 15:31:16,938 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-06 15:31:16,939 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-06 15:31:16,940 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-06 15:31:16,941 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-06 15:31:16,942 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-06 15:31:17,344 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-06 15:31:17,344 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-06 15:31:17,344 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-06 15:31:23,084 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-06 15:31:30,277 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 15:31:30,310 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-06 15:31:30,310 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-06 15:31:31,135 - AgenticMedicalRAG - INFO - Starting validation for interaction 4 2025-10-06 15:31:38,938 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 4 2025-10-06 15:31:40,976 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-06 15:31:40,977 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 4 2025-10-06 15:31:45,752 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-06 15:32:37,581 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 15:32:38,928 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-06 15:32:38,928 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-06 15:32:38,929 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-06 15:32:38,930 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-06 15:32:38,930 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-06 15:32:38,930 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-06 15:32:38,931 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-06 15:32:53,387 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-06 15:32:53,388 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-06 15:32:53,389 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-06 15:32:53,390 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-06 15:32:53,390 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-06 15:32:53,495 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-06 15:32:53,518 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-06 15:32:53,519 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-06 15:32:53,886 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-06 15:32:53,887 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-06 15:32:53,887 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-06 15:32:53,887 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-06 15:32:53,889 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-06 15:32:54,295 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-06 15:32:54,295 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-06 15:32:54,295 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-06 15:33:36,327 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-06 15:33:39,100 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-06 15:33:41,044 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-06 15:33:42,041 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-06 15:35:17,441 - AgenticMedicalRAG - INFO - Conversation memory cleared successfully 2025-10-06 15:35:17,441 - AgenticMedicalRAG - INFO - Successfully cleared chat memory and history 2025-10-06 15:35:19,806 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-06 15:35:24,045 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-06 15:35:25,023 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 15:35:25,023 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-06 15:35:25,024 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-06 15:36:28,524 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that cisplatin has serious kidney problems... 2025-10-06 15:36:31,841 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 15:36:31,843 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-06 15:36:31,844 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that cisplatin has serious kidney problems... 2025-10-06 15:37:05,351 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i can't provide this information ... 2025-10-06 15:37:09,171 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 15:37:09,172 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-06 15:37:09,173 - AgenticMedicalRAG - INFO - Successfully processed user input: i can't provide this information ... 2025-10-06 17:08:11,705 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 17:09:27,389 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 17:09:28,814 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-06 17:09:28,815 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-06 17:09:28,815 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-06 17:09:28,816 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-06 17:09:28,816 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-06 17:09:28,816 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-06 17:09:28,819 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-06 17:09:46,393 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-06 17:09:46,394 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-06 17:09:46,395 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-06 17:09:46,396 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-06 17:09:46,396 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-06 17:09:46,495 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-06 17:09:46,518 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-06 17:09:46,519 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-06 17:09:46,880 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-06 17:09:46,881 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-06 17:09:46,881 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-06 17:09:46,881 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-06 17:09:46,882 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-06 17:09:47,409 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-06 17:09:47,411 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-06 17:09:47,412 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-06 17:09:58,532 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-06 17:10:01,103 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-06 17:10:02,722 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-06 17:10:04,330 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-06 17:10:54,724 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that cisplatin has serious kidney problems... 2025-10-06 17:10:57,617 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 17:10:57,619 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-06 17:10:57,620 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that cisplatin has serious kidney problems... 2025-10-06 17:11:21,164 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i can't provide more details... 2025-10-06 17:11:23,481 - AgenticMedicalRAG - INFO - Successfully processed user input: i can't provide more details... 2025-10-06 17:11:38,539 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): just save them... 2025-10-06 17:11:42,544 - AgenticMedicalRAG - INFO - Successfully processed user input: just save them... 2025-10-06 17:42:58,305 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 17:42:59,370 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-06 17:43:02,269 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-06 17:43:03,808 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-06 17:43:34,765 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 17:43:36,084 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-06 17:43:36,084 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-06 17:43:36,085 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-06 17:43:36,085 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-06 17:43:36,085 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-06 17:43:36,086 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-06 17:43:36,087 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-06 17:43:49,496 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-06 17:43:49,498 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-06 17:43:49,499 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-06 17:43:49,499 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-06 17:43:49,499 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-06 17:43:49,614 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-06 17:43:49,634 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-06 17:43:49,635 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-06 17:43:49,974 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-06 17:43:49,975 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-06 17:43:49,976 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-06 17:43:49,977 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-06 17:43:49,977 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-06 17:43:50,380 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-06 17:43:50,381 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-06 17:43:50,382 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-06 17:43:54,502 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that cisplatin has serious kidney problems... 2025-10-06 17:43:57,368 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-06 17:43:59,683 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-06 17:44:00,822 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 17:44:00,822 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-06 17:44:00,826 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that cisplatin has serious kidney problems... 2025-10-06 20:21:21,837 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 20:21:23,693 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-06 20:21:23,693 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-06 20:21:23,694 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-06 20:21:23,694 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-06 20:21:23,694 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-06 20:21:23,694 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-06 20:21:23,699 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-06 20:21:42,056 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-06 20:21:42,057 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-06 20:21:42,058 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-06 20:21:42,059 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-06 20:21:42,059 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-06 20:21:42,231 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-06 20:21:42,256 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-06 20:21:42,257 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-06 20:21:42,622 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-06 20:21:42,623 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-06 20:21:42,623 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-06 20:21:42,624 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-06 20:21:42,624 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-06 20:21:43,111 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-06 20:21:43,111 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-06 20:21:43,113 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-06 20:22:04,377 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-06 20:22:09,733 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-06 20:23:49,445 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 20:23:50,770 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-06 20:23:50,770 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-06 20:23:50,771 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-06 20:23:50,771 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-06 20:23:50,771 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-06 20:23:50,772 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-06 20:23:50,773 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-06 20:24:03,943 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-06 20:24:03,944 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-06 20:24:03,944 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-06 20:24:03,944 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-06 20:24:03,944 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-06 20:24:04,036 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-06 20:24:04,053 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-06 20:24:04,055 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-06 20:24:04,351 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-06 20:24:04,351 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-06 20:24:04,353 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-06 20:24:04,354 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-06 20:24:04,354 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-06 20:24:04,706 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-06 20:24:04,707 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-06 20:24:04,708 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-06 20:25:47,904 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-06 20:25:49,148 - AgenticMedicalRAG - INFO - Agentic Medical Guidelines Assistant starting... 2025-10-06 20:25:49,148 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization of components... 2025-10-06 20:25:49,148 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-06 20:25:49,150 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-06 20:25:49,150 - AgenticMedicalRAG - INFO - Starting Gradio interface... 2025-10-06 20:25:49,150 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-06 20:25:49,152 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-06 20:26:02,844 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-06 20:26:02,845 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-06 20:26:02,847 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-06 20:26:02,847 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-06 20:26:02,847 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-06 20:26:02,934 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-06 20:26:02,958 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-06 20:26:02,958 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-06 20:26:03,360 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-06 20:26:03,361 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-06 20:26:03,361 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-06 20:26:03,362 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-06 20:26:03,362 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-06 20:26:03,798 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-06 20:26:03,799 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-06 20:26:03,799 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-06 20:26:08,758 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-06 20:26:20,881 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-06 20:26:20,922 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-06 20:26:20,923 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-06 20:26:21,802 - AgenticMedicalRAG - INFO - Starting validation for interaction 4 2025-10-06 20:26:28,649 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 4 2025-10-06 20:26:30,776 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-06 20:26:30,778 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 4 2025-10-06 20:26:36,348 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-09 18:18:12,151 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-09 18:18:14,230 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-09 18:18:14,231 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-09 18:18:14,232 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-09 18:18:14,233 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-09 18:18:37,093 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-09 18:18:37,094 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-09 18:18:37,095 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-09 18:18:37,096 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-09 18:18:37,096 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-09 18:18:37,318 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-09 18:18:37,369 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-09 18:18:37,370 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-09 18:18:37,831 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-09 18:18:37,832 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-09 18:18:37,832 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-09 18:18:37,833 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-09 18:18:37,834 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-09 18:18:38,491 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-09 18:18:38,492 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-09 18:18:38,493 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-09 18:21:19,426 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): How does consolidation therapy with durvalumab imp... 2025-10-09 18:21:32,307 - AgenticMedicalRAG - INFO - Successfully processed user input: How does consolidation therapy with durvalumab imp... 2025-10-09 18:21:32,308 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-09 18:21:32,355 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-09 18:21:32,355 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-09 18:21:33,079 - AgenticMedicalRAG - INFO - Starting validation for interaction 8 2025-10-09 18:21:40,998 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 8 2025-10-09 18:21:43,940 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-09 18:21:43,942 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 8 2025-10-09 18:28:15,416 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-09 18:28:19,280 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-09 18:28:20,578 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-11 02:09:02,056 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:14:41,928 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:28:08,651 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:28:09,720 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 02:28:09,721 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 02:28:09,721 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 02:28:09,722 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 02:28:28,023 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-11 02:28:28,024 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-11 02:28:28,025 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-11 02:28:28,026 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-11 02:28:28,026 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-11 02:28:28,175 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-11 02:28:28,202 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-11 02:28:28,202 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-11 02:28:28,462 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-11 02:28:28,462 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-11 02:28:28,463 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-11 02:28:28,464 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-11 02:28:28,464 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-11 02:28:29,009 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-11 02:28:29,009 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-11 02:28:29,010 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-11 02:28:44,918 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-11 02:28:53,037 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-11 02:28:53,038 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-11 02:28:53,073 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-11 02:28:53,074 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-11 02:28:53,674 - AgenticMedicalRAG - INFO - Starting validation for interaction 9 2025-10-11 02:29:01,732 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 9 2025-10-11 02:29:04,117 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-11 02:29:04,119 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 9 2025-10-11 02:31:36,593 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:31:49,474 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:31:50,210 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 02:31:50,216 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 02:31:50,217 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 02:31:50,218 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 02:33:35,327 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:35:01,172 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:35:05,338 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 02:35:05,339 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 02:35:05,340 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 02:35:05,340 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 02:35:14,932 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:35:15,896 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 02:35:15,897 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 02:35:15,898 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 02:35:15,899 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 02:35:25,027 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:35:25,876 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 02:35:25,878 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 02:35:25,878 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 02:35:25,878 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 02:35:35,371 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:35:35,387 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:35:36,157 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 02:35:36,158 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 02:35:36,158 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 02:35:36,158 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 02:35:44,205 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:35:44,227 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:35:44,988 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 02:35:44,990 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 02:35:44,990 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 02:35:44,991 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 02:35:52,736 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:35:52,751 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:35:53,477 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 02:35:53,479 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 02:35:53,479 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 02:35:53,479 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 02:36:07,384 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-11 02:36:07,385 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-11 02:36:07,385 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-11 02:36:07,387 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-11 02:36:07,387 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-11 02:36:07,815 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-11 02:36:07,829 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-11 02:36:07,829 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-11 02:36:08,082 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-11 02:36:08,083 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-11 02:36:08,083 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-11 02:36:08,083 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-11 02:36:08,083 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-11 02:36:09,261 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-11 02:36:09,262 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-11 02:36:09,262 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-11 02:38:18,468 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:38:18,488 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:38:19,354 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 02:38:19,355 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 02:38:19,356 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 02:38:19,356 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 02:38:25,791 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-11 02:38:25,791 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-11 02:38:25,791 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-11 02:38:25,793 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-11 02:38:25,793 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-11 02:38:25,877 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-11 02:38:25,893 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-11 02:38:25,893 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-11 02:38:26,272 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-11 02:38:26,274 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-11 02:38:26,274 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-11 02:38:26,274 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-11 02:38:26,275 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-11 02:38:27,189 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-11 02:38:27,189 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-11 02:38:27,190 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-11 02:44:55,723 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:44:55,745 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 02:44:58,299 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 02:44:58,299 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 02:44:58,300 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 02:44:58,300 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 02:45:12,707 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-11 02:45:12,707 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-11 02:45:12,708 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-11 02:45:12,709 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-11 02:45:12,709 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-11 02:45:13,106 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-11 02:45:13,127 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-11 02:45:13,128 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-11 02:45:13,364 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-11 02:45:13,365 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-11 02:45:13,365 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-11 02:45:13,365 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-11 02:45:13,365 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-11 02:45:14,368 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-11 02:45:14,368 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-11 02:45:14,368 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-11 02:46:43,529 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-11 02:46:43,530 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-11 02:46:43,530 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-11 02:46:45,550 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-11 02:46:45,550 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-11 02:46:45,595 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-11 02:46:46,017 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-11 02:46:46,017 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-11 02:46:46,427 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-11 02:46:46,428 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-11 02:46:52,141 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-11 02:46:52,141 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-11 02:46:53,106 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-11 02:46:53,106 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-11 02:46:54,092 - AgenticMedicalRAG - INFO - Starting validation for interaction 10 2025-10-11 02:47:04,166 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 10 2025-10-11 02:47:06,949 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-11 02:47:06,950 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 10 2025-10-11 02:47:14,726 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-11 02:47:16,145 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-11 02:47:18,099 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-11 02:47:18,944 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-11 03:08:18,657 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 03:08:18,686 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 03:08:19,913 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 03:08:19,914 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 03:08:19,914 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 03:08:19,915 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 03:08:28,775 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-11 03:08:28,775 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-11 03:08:28,776 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-11 03:08:28,778 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-11 03:08:28,778 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-11 03:08:28,841 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-11 03:08:28,855 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-11 03:08:28,856 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-11 03:08:29,173 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-11 03:08:29,174 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-11 03:08:29,174 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-11 03:08:29,174 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-11 03:08:29,175 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-11 03:08:30,124 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-11 03:08:30,124 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-11 03:08:30,125 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-11 03:08:58,104 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-11 03:08:58,104 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-11 03:08:58,105 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-11 03:08:59,966 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-11 03:09:01,856 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-11 03:09:03,075 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-11 03:17:32,067 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 03:17:32,086 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 03:17:32,800 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-11 03:17:32,801 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-11 03:17:32,802 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-11 03:17:32,802 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-11 03:17:39,488 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-11 03:17:39,488 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-11 03:17:39,489 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-11 03:17:39,490 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-11 03:17:39,490 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-11 03:17:39,591 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-11 03:17:39,618 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-11 03:17:39,618 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-11 03:17:40,108 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-11 03:17:40,108 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-11 03:17:40,108 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-11 03:17:40,108 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-11 03:17:40,109 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-11 03:17:41,494 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-11 03:17:41,494 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-11 03:17:41,495 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-11 00:36:26,189 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 00:36:26,189 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 00:36:48,003 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 00:36:48,003 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 00:37:16,374 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 00:37:16,375 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 00:41:11,107 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 00:50:24,570 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 04:26:41,002 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 09:48:32,554 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 09:51:20,372 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-11 09:56:42,170 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-11 09:56:42,170 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-11 09:56:43,618 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-11 09:56:49,346 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-11 09:56:51,485 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-11 09:56:53,147 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-11 10:06:17,157 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-11 10:06:21,851 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-11 10:06:23,502 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-11 10:31:03,423 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-11 10:31:07,847 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-11 10:31:09,423 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-11 10:51:36,134 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-11 10:52:02,453 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-11 10:52:04,066 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-11 10:56:32,523 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-11 10:56:36,573 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-11 10:56:37,885 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-11 11:05:26,633 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-11 11:05:32,331 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-11 11:05:33,836 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-12 16:51:11,994 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-12 16:51:13,986 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-12 16:51:13,989 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-12 16:51:13,992 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-12 16:51:13,992 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-12 16:51:31,598 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-12 16:51:31,599 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-12 16:51:31,599 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-12 16:51:31,599 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-12 16:51:31,600 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-12 16:51:31,738 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-12 16:51:31,757 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-12 16:51:31,757 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-12 16:51:32,119 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-12 16:51:32,120 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-12 16:51:32,121 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-12 16:51:32,121 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-12 16:51:32,121 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-12 16:51:32,701 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-12 16:51:32,701 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-12 16:51:32,702 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-12 16:53:20,845 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-12 16:53:30,107 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-12 16:53:30,145 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-12 16:53:30,146 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-12 16:53:30,817 - AgenticMedicalRAG - INFO - Starting validation for interaction 11 2025-10-12 16:53:40,227 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 11 2025-10-12 16:53:43,165 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-12 16:53:43,165 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 11 2025-10-12 16:53:54,539 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-12 16:53:59,171 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-12 16:54:00,252 - AgenticMedicalRAG - INFO - Starting validation for interaction 12 2025-10-12 16:54:09,155 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 12 2025-10-12 16:54:11,255 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-12 16:54:11,256 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 12 2025-10-12 16:59:56,017 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-12 16:59:59,281 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-12 16:59:59,283 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-12 16:59:59,283 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-12 16:59:59,284 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-12 17:00:08,132 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-12 17:00:08,151 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-12 17:00:10,213 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-12 17:00:12,581 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-12 17:00:12,581 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-12 17:00:12,582 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-12 17:00:17,768 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-12 17:00:17,768 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-12 17:00:17,769 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-12 17:00:17,769 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-12 17:00:17,769 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-12 17:00:18,210 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-12 17:00:18,229 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-12 17:00:18,229 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-12 17:00:18,587 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-12 17:00:18,588 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-12 17:00:18,588 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-12 17:00:18,589 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-12 17:00:18,589 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-12 17:00:18,589 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-12 17:00:18,785 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-12 17:00:18,818 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-12 17:00:19,183 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-12 17:00:19,184 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-12 17:00:19,534 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-12 17:00:19,549 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-12 17:00:24,816 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-12 17:00:25,647 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-12 17:00:25,648 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-12 17:00:26,758 - AgenticMedicalRAG - INFO - Starting validation for interaction 13 2025-10-12 17:00:38,031 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 13 2025-10-12 17:00:40,639 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-12 17:00:40,640 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 13 2025-10-12 17:00:47,737 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-12 17:03:03,936 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-12 17:03:10,328 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-12 17:03:11,449 - AgenticMedicalRAG - INFO - Starting validation for interaction 14 2025-10-12 17:03:16,686 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 14 2025-10-12 17:03:19,407 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-12 17:03:19,408 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 14 2025-10-12 17:03:26,937 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-12 17:24:02,291 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-12 17:24:03,301 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-12 17:24:03,302 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-12 17:24:03,302 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-12 17:24:03,303 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-12 17:24:10,746 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-12 17:24:10,747 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-12 17:24:10,747 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-12 17:24:10,747 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-12 17:24:10,747 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-12 17:24:10,869 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-12 17:24:10,890 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-12 17:24:10,890 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-12 17:24:11,161 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-12 17:24:11,161 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-12 17:24:11,161 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-12 17:24:11,162 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-12 17:24:11,162 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-12 17:24:12,040 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-12 17:24:12,041 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-12 17:24:12,041 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-12 17:24:55,855 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-12 17:24:57,314 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-12 17:24:58,667 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-12 17:24:59,974 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-12 21:21:39,520 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-12 21:21:40,685 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-12 21:21:40,686 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-12 21:21:40,687 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-12 21:21:40,688 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-12 21:21:49,755 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-12 21:21:49,756 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-12 21:21:49,756 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-12 21:21:49,756 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-12 21:21:49,757 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-12 21:21:49,920 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-12 21:21:49,972 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-12 21:21:49,973 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-12 21:21:50,411 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-12 21:21:50,411 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-12 21:21:50,411 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-12 21:21:50,412 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-12 21:21:50,412 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-12 21:21:51,729 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-12 21:21:51,730 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-12 21:21:51,730 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-13 00:32:54,720 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-13 00:32:56,274 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-13 00:32:56,275 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-13 00:32:56,276 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-13 00:32:56,277 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-13 00:33:06,087 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-13 00:33:06,087 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-13 00:33:06,088 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-13 00:33:06,088 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-13 00:33:06,088 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-13 00:33:06,241 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-13 00:33:06,266 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-13 00:33:06,266 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-13 00:33:06,618 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-13 00:33:06,619 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-13 00:33:06,619 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-13 00:33:06,619 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-13 00:33:06,620 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-13 00:33:08,049 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-13 00:33:08,049 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-13 00:33:08,050 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-13 00:33:38,905 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-13 00:33:44,470 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-13 00:33:44,471 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-13 00:33:45,323 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-13 00:33:45,323 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-13 00:33:46,100 - AgenticMedicalRAG - INFO - Starting validation for interaction 15 2025-10-13 00:33:57,221 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 15 2025-10-13 00:34:00,069 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-13 00:34:00,070 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 15 2025-10-13 14:42:16,274 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-13 14:42:21,018 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-13 14:42:21,019 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-13 14:42:21,020 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-13 14:42:21,020 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-13 14:42:55,735 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-13 14:42:55,735 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-13 14:42:55,736 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-13 14:42:55,736 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-13 14:42:55,736 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-13 14:42:56,391 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-13 14:42:56,412 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-13 14:42:56,412 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-13 14:42:56,785 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-13 14:42:56,786 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-13 14:42:56,786 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-13 14:42:56,786 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-13 14:42:56,786 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-13 14:42:58,422 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-13 14:42:58,422 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-13 14:42:58,422 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-13 14:43:37,651 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): what is the role of durvalumab in stage III NSCLC ... 2025-10-13 14:43:50,173 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-13 14:43:51,153 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-13 14:43:51,154 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-13 14:43:51,861 - AgenticMedicalRAG - INFO - Starting validation for interaction 17 2025-10-13 14:44:20,096 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 17 2025-10-13 14:44:22,874 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-13 14:44:22,876 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 17 2025-10-13 14:44:30,302 - AgenticMedicalRAG - INFO - Successfully processed user input: what is the role of durvalumab in stage III NSCLC ... 2025-10-14 15:41:24,826 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-14 15:44:15,308 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-14 15:44:25,960 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-14 15:44:27,066 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-14 15:44:27,067 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-14 15:44:27,068 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-14 15:44:27,068 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-14 15:44:47,712 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-14 15:44:47,713 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-14 15:44:47,713 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-14 15:44:47,714 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-14 15:44:47,714 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-14 15:44:48,318 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-14 15:44:48,339 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-14 15:44:48,339 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-14 15:44:48,685 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-14 15:44:48,686 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-14 15:44:48,686 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-14 15:44:48,686 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-14 15:44:48,686 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-14 15:44:50,143 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-14 15:44:50,144 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-14 15:44:50,144 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-14 15:52:34,092 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What treatment options are available for patients ... 2025-10-14 15:52:54,862 - AgenticMedicalRAG - INFO - Successfully processed user input: What treatment options are available for patients ... 2025-10-14 15:52:54,864 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-14 15:52:55,669 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-14 15:52:55,670 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-14 15:52:56,501 - AgenticMedicalRAG - INFO - Starting validation for interaction 25 2025-10-14 15:53:14,642 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 25 2025-10-14 15:53:18,303 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-14 15:53:18,304 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 25 2025-10-14 15:57:28,040 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-14 15:57:39,962 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-14 15:57:39,962 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-14 15:57:41,597 - AgenticMedicalRAG - INFO - Starting validation for interaction 26 2025-10-14 15:57:56,133 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 26 2025-10-14 15:57:59,592 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-14 15:57:59,594 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 26 2025-10-14 15:58:21,176 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): what is the time and date now?... 2025-10-14 15:58:24,707 - AgenticMedicalRAG - INFO - Successfully processed user input: what is the time and date now?... 2025-10-14 16:46:55,870 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-14 16:46:57,972 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-14 16:46:57,973 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-14 16:46:57,974 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-14 16:46:57,974 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-14 16:47:09,402 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-14 16:47:09,403 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-14 16:47:09,403 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-14 16:47:09,404 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-14 16:47:09,404 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-14 16:47:09,613 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-14 16:47:09,639 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-14 16:47:09,640 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-14 16:47:10,145 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-14 16:47:10,146 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-14 16:47:10,146 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-14 16:47:10,147 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-14 16:47:10,147 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-14 16:47:11,616 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-14 16:47:11,616 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-14 16:47:11,616 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-14 17:11:09,277 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-14 17:11:24,127 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-14 17:11:25,676 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-14 17:11:30,459 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-14 17:14:22,599 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-14 17:14:31,615 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-14 17:14:31,616 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-14 17:14:32,474 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-14 17:14:33,302 - AgenticMedicalRAG - INFO - Starting validation for interaction 27 2025-10-14 17:14:42,646 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 27 2025-10-14 17:14:46,267 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-14 17:14:46,268 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 27 2025-10-14 17:15:47,430 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-14 17:15:56,194 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-14 17:15:56,195 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-14 17:15:56,966 - AgenticMedicalRAG - INFO - Starting validation for interaction 28 2025-10-14 17:16:14,221 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 28 2025-10-14 17:16:17,925 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-14 17:16:17,927 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 28 2025-10-14 17:17:13,852 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-14 17:17:26,624 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-14 17:17:26,625 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-14 17:17:27,540 - AgenticMedicalRAG - INFO - Starting validation for interaction 29 2025-10-14 17:17:40,773 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 29 2025-10-14 17:17:45,417 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-14 17:17:45,417 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 29 2025-10-14 18:07:09,416 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-14 18:07:11,854 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-14 18:07:11,855 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-14 18:07:11,856 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-14 18:07:11,856 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-14 18:07:25,095 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-14 18:07:25,096 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-14 18:07:25,096 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-14 18:07:25,096 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-14 18:07:25,097 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-14 18:07:25,521 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-14 18:07:25,558 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-14 18:07:25,559 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-14 18:07:25,780 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-14 18:07:25,780 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-14 18:07:25,780 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-14 18:07:25,781 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-14 18:07:25,781 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-14 18:07:26,711 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-14 18:07:26,711 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-14 18:07:26,711 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-14 18:08:59,424 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-14 18:09:12,456 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-14 18:09:12,456 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-14 18:09:13,022 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-14 18:09:13,023 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-14 18:09:13,856 - AgenticMedicalRAG - INFO - Starting validation for interaction 30 2025-10-14 18:09:25,009 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 30 2025-10-14 18:09:29,260 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-14 18:09:29,261 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 30 2025-10-14 18:13:13,136 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-14 18:13:13,726 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-14 18:13:13,727 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-14 18:13:13,727 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-14 18:13:13,728 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-14 18:13:20,825 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-14 18:13:20,826 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-14 18:13:20,826 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-14 18:13:20,826 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-14 18:13:20,827 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-14 18:13:20,942 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-14 18:13:20,970 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-14 18:13:20,971 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-14 18:13:21,226 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-14 18:13:21,229 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-14 18:13:21,229 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-14 18:13:21,230 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-14 18:13:21,230 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-14 18:13:22,021 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-14 18:13:22,021 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-14 18:13:22,022 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-14 18:19:54,449 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi my name is moaz... 2025-10-14 18:19:56,100 - AgenticMedicalRAG - INFO - Successfully processed user input: hi my name is moaz... 2025-10-14 18:20:13,594 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): do you know my name... 2025-10-14 18:20:33,954 - AgenticMedicalRAG - INFO - Successfully processed user input: do you know my name... 2025-10-14 18:21:23,761 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi do you remember me... 2025-10-14 18:21:25,571 - AgenticMedicalRAG - INFO - Successfully processed user input: hi do you remember me... 2025-10-14 18:21:36,506 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi do you remember me... 2025-10-14 18:21:37,983 - AgenticMedicalRAG - INFO - Successfully processed user input: hi do you remember me... 2025-10-14 18:21:37,983 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-14 18:21:37,983 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-14 18:21:46,097 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi do you remember me... 2025-10-14 18:21:48,641 - AgenticMedicalRAG - INFO - Successfully processed user input: hi do you remember me... 2025-10-14 18:21:48,642 - AgenticMedicalRAG - INFO - Performing automatic validation... 2025-10-14 18:21:48,642 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-14 18:22:02,691 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi do you remember my name... 2025-10-14 18:22:05,972 - AgenticMedicalRAG - INFO - Successfully processed user input: hi do you remember my name... 2025-10-14 18:22:13,839 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi do you remember my name... 2025-10-14 18:22:15,210 - AgenticMedicalRAG - INFO - Successfully processed user input: hi do you remember my name... 2025-10-14 18:30:40,859 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-14 18:30:41,470 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-14 18:30:41,471 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-14 18:30:41,471 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-14 18:30:41,472 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-14 18:30:47,951 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-14 18:30:47,951 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-14 18:30:47,952 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-14 18:30:47,952 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-14 18:30:47,952 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-14 18:30:48,087 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-14 18:30:48,130 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-14 18:30:48,130 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-14 18:30:48,496 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-14 18:30:48,496 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-14 18:30:48,497 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-14 18:30:48,497 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-14 18:30:48,497 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-14 18:30:49,846 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-14 18:30:49,847 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-14 18:30:49,847 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-14 19:12:36,297 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-14 19:12:37,463 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-14 19:12:37,464 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-14 19:12:37,465 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-14 19:12:37,465 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-14 19:12:45,905 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-14 19:12:45,906 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-14 19:12:45,906 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-14 19:12:45,906 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-14 19:12:45,907 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-14 19:12:46,025 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-14 19:12:46,051 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-14 19:12:46,051 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-14 19:12:46,449 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-14 19:12:46,450 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-14 19:12:46,450 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-14 19:12:46,450 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-14 19:12:46,451 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-14 19:12:47,787 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-14 19:12:47,787 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-14 19:12:47,788 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-14 19:13:02,096 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi my name is moaz... 2025-10-14 19:13:03,999 - AgenticMedicalRAG - INFO - Successfully processed user input: hi my name is moaz... 2025-10-14 19:13:12,770 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): what is my name... 2025-10-14 19:13:14,884 - AgenticMedicalRAG - INFO - Performing automatic validation for streaming response... 2025-10-14 19:13:14,885 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-14 19:13:14,886 - AgenticMedicalRAG - INFO - Successfully processed user input: what is my name... 2025-10-14 19:13:24,367 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi what is my name... 2025-10-14 19:13:26,466 - AgenticMedicalRAG - INFO - Successfully processed user input: hi what is my name... 2025-10-15 11:55:21,110 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 11:55:22,611 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-15 11:55:22,612 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-15 11:55:22,612 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-15 11:55:22,613 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-15 11:55:34,494 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-15 11:55:34,495 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-15 11:55:34,496 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-15 11:55:34,496 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-15 11:55:34,496 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-15 11:55:35,068 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-15 11:55:35,089 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-15 11:55:35,089 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-15 11:55:35,445 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-15 11:55:35,445 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-15 11:55:35,446 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-15 11:55:35,446 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-15 11:55:35,446 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-15 11:56:29,506 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 11:56:30,251 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-15 11:56:30,252 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-15 11:56:30,253 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-15 11:56:30,253 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-15 11:56:37,823 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-15 11:56:37,824 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-15 11:56:37,824 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-15 11:56:37,825 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-15 11:56:37,825 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-15 11:56:37,896 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-15 11:56:37,912 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-15 11:56:37,913 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-15 11:56:38,314 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-15 11:56:38,315 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-15 11:56:38,316 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-15 11:56:38,316 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-15 11:56:38,316 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-15 11:56:39,646 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-15 11:56:39,646 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-15 11:56:39,646 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-15 12:03:09,903 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 12:03:10,683 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-15 12:03:10,684 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-15 12:03:10,685 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-15 12:03:10,686 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-15 12:03:18,456 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-15 12:03:18,456 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-15 12:03:18,456 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-15 12:03:18,456 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-15 12:03:18,456 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-15 12:03:18,562 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-15 12:03:18,588 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-15 12:03:18,589 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-15 12:03:18,983 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-15 12:03:18,983 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-15 12:03:18,984 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-15 12:03:18,984 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-15 12:03:18,984 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-15 12:03:20,251 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-15 12:03:20,251 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-15 12:03:20,252 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-15 12:04:12,798 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-15 12:04:23,412 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-15 12:04:24,235 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-15 12:04:24,235 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-15 12:04:37,308 - AgenticMedicalRAG - INFO - Starting validation for interaction 36 2025-10-15 12:04:52,405 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 36 2025-10-15 12:04:56,153 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-15 12:04:56,154 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 36 2025-10-15 12:04:56,154 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 36 2025-10-15 12:04:56,155 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 100/100 2025-10-15 12:04:56,155 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-15 12:04:56,159 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-15 12:05:03,904 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-15 12:05:05,234 - AgenticMedicalRAG - INFO - Starting validation for interaction 37 2025-10-15 12:05:13,869 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 37 2025-10-15 12:05:18,504 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-15 12:05:18,505 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 37 2025-10-15 12:05:18,506 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 37 2025-10-15 12:05:18,506 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-15 12:05:18,506 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-15 12:06:42,357 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): i found that Afinitor has these side effects fever... 2025-10-15 12:06:51,917 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/side_effects_reports.csv to GitHub 2025-10-15 12:06:53,527 - AgenticMedicalRAG - INFO - Successfully processed user input: i found that Afinitor has these side effects fever... 2025-10-15 13:53:10,922 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 13:53:14,459 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-15 13:53:14,460 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-15 13:53:14,461 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-15 13:53:14,461 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-15 13:53:37,561 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-15 13:53:37,561 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-15 13:53:37,562 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-15 13:53:37,562 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-15 13:53:37,562 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-15 13:53:38,204 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-15 13:53:38,256 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-15 13:53:38,257 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-15 13:53:38,599 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-15 13:53:38,599 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-15 13:53:38,600 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-15 13:53:38,600 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-15 13:53:38,600 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-15 13:53:40,070 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-15 13:53:40,071 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-15 13:53:40,071 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-15 15:15:32,001 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 15:21:28,032 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 15:25:20,165 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 15:26:11,107 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 15:28:26,020 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 15:31:26,481 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 15:31:27,943 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-15 15:31:27,944 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-15 15:31:27,945 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-15 15:31:27,945 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-15 15:31:37,240 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-15 15:31:37,240 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-15 15:31:37,240 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-15 15:31:37,241 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-15 15:31:37,241 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-15 15:31:37,355 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-15 15:31:37,381 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-15 15:31:37,381 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-15 15:31:37,816 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-15 15:31:37,816 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-15 15:31:37,816 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-15 15:31:37,817 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-15 15:31:37,817 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-15 15:31:39,116 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-15 15:31:39,117 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-15 15:31:39,117 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-15 15:43:17,615 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi... 2025-10-15 15:43:20,246 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-15 15:43:20,246 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-15 15:43:20,247 - AgenticMedicalRAG - INFO - Successfully processed user input: hi... 2025-10-15 15:43:38,087 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-15 15:43:47,023 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-15 15:43:48,038 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-15 15:43:48,038 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-15 15:43:49,398 - AgenticMedicalRAG - INFO - Starting validation for interaction 38 2025-10-15 15:44:05,399 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 38 2025-10-15 15:44:09,466 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-15 15:44:09,467 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 38 2025-10-15 15:44:09,468 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 38 2025-10-15 15:44:09,468 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 100/100 2025-10-15 15:44:09,468 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-15 15:48:15,410 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 15:48:19,805 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-15 15:48:19,807 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-15 15:48:19,807 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-15 15:48:19,808 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-15 15:48:32,796 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 15:48:34,304 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-15 15:48:34,305 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-15 15:48:34,306 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-15 15:48:34,307 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-15 15:48:56,261 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-15 15:48:56,262 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-15 15:48:56,263 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-15 15:48:56,263 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-15 15:48:56,263 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-15 15:48:56,812 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-15 15:48:56,857 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-15 15:48:56,857 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-15 15:48:57,268 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-15 15:48:57,268 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-15 15:48:57,268 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-15 15:48:57,269 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-15 15:48:57,269 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-15 15:48:58,999 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-15 15:48:59,000 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-15 15:48:59,000 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-15 16:00:25,963 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-15 16:00:27,014 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-15 16:00:27,015 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-15 16:00:27,015 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-15 16:00:27,016 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-15 16:00:35,116 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-15 16:00:35,117 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-15 16:00:35,117 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-15 16:00:35,117 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-15 16:00:35,117 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-15 16:00:35,207 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-15 16:00:35,225 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-15 16:00:35,225 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-15 16:00:35,521 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-15 16:00:35,522 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-15 16:00:35,522 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-15 16:00:35,522 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-15 16:00:35,522 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-15 16:00:36,475 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-15 16:00:36,475 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-15 16:00:36,475 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-15 16:00:59,757 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi... 2025-10-15 16:01:02,437 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-15 16:01:02,437 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-15 16:01:02,438 - AgenticMedicalRAG - INFO - Successfully processed user input: hi... 2025-10-15 16:01:04,703 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-15 16:01:11,862 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-15 16:01:13,014 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-15 16:01:13,015 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-15 16:01:13,844 - AgenticMedicalRAG - INFO - Starting validation for interaction 39 2025-10-15 16:01:27,985 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 39 2025-10-15 16:01:31,979 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-15 16:01:31,980 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 39 2025-10-15 16:01:31,980 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 39 2025-10-15 16:01:31,980 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-15 16:01:31,981 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-15 17:12:17,907 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What first-line systemic therapy does ASCO recomme... 2025-10-15 17:12:24,603 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-15 17:12:25,574 - AgenticMedicalRAG - INFO - Starting validation for interaction 40 2025-10-15 17:12:34,757 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 40 2025-10-15 17:12:39,210 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-15 17:12:39,211 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 40 2025-10-15 17:12:39,212 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 40 2025-10-15 17:12:39,212 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-15 17:12:39,212 - AgenticMedicalRAG - INFO - Successfully processed user input: What first-line systemic therapy does ASCO recomme... 2025-10-16 17:10:06,270 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 17:10:10,577 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 17:10:10,578 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 17:10:10,578 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 17:10:10,579 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 17:10:28,771 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 17:10:28,772 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 17:10:28,772 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 17:10:28,772 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 17:10:28,772 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 17:10:29,263 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 17:10:29,287 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 17:10:29,288 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 17:10:29,622 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 17:10:29,623 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 17:10:29,623 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 17:10:29,623 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-16 17:10:29,624 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 17:10:31,177 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 17:10:31,177 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 17:10:31,178 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 17:11:08,843 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 17:11:09,688 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 17:11:09,689 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 17:11:09,689 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 17:11:09,690 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 17:11:17,354 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 17:11:17,354 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 17:11:17,354 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 17:11:17,355 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 17:11:17,355 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 17:11:17,472 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 17:11:17,500 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 17:11:17,501 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 17:11:17,934 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 17:11:17,934 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 17:11:17,935 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 17:11:17,935 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-16 17:11:17,935 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 17:11:19,229 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 17:11:19,229 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 17:11:19,229 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 17:12:40,772 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 17:12:42,010 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 17:12:42,011 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 17:12:42,012 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 17:12:42,012 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 17:12:50,421 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 17:12:50,422 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 17:12:50,422 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 17:12:50,422 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 17:12:50,423 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 17:12:50,545 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 17:12:50,573 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 17:12:50,573 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 17:12:50,991 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 17:12:50,992 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 17:12:50,992 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 17:12:50,992 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-16 17:12:50,993 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 17:12:52,269 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 17:12:52,269 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 17:12:52,270 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 17:15:55,620 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): hi... 2025-10-16 17:15:58,408 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-16 17:15:58,408 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-16 17:15:58,409 - AgenticMedicalRAG - INFO - Successfully processed user input: hi... 2025-10-16 17:17:12,749 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 17:17:13,561 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 17:17:13,562 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 17:17:13,562 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 17:17:13,562 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 17:17:19,336 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 17:17:19,337 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 17:17:19,337 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 17:17:19,338 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 17:17:19,338 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 17:17:19,434 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 17:17:19,457 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 17:17:19,458 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 17:17:19,883 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 17:17:19,884 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 17:17:19,885 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 17:17:19,885 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-16 17:17:19,885 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 17:17:21,178 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 17:17:21,179 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 17:17:21,179 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 17:21:12,873 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 17:21:13,855 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 17:21:13,856 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 17:21:13,856 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 17:21:13,856 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 17:21:20,064 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 17:21:20,065 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 17:21:20,065 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 17:21:20,065 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 17:21:20,066 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 17:21:20,137 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 17:21:20,155 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 17:21:20,156 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 17:21:20,419 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 17:21:20,419 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 17:21:20,420 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 17:21:20,420 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-16 17:21:20,420 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 17:21:21,314 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 17:21:21,314 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 17:21:21,314 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 17:22:14,161 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 17:22:15,516 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 17:22:15,517 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 17:22:15,518 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 17:22:15,518 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 17:22:24,577 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 17:22:24,577 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 17:22:24,578 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 17:22:24,578 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 17:22:24,579 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 17:22:24,689 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 17:22:24,720 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 17:22:24,720 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 17:22:25,169 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 17:22:25,170 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 17:22:25,170 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 17:22:25,170 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (95%) 2025-10-16 17:22:25,170 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 17:22:26,668 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 17:22:26,669 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 17:22:26,669 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 18:09:29,667 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 18:09:58,243 - AgenticMedicalRAG - INFO - Loaded semantic similarity model: all-MiniLM-L6-v2 2025-10-16 18:10:01,872 - AgenticMedicalRAG - INFO - Loaded semantic similarity model: all-MiniLM-L6-v2 2025-10-16 18:10:04,565 - AgenticMedicalRAG - INFO - Loaded semantic similarity model: all-MiniLM-L6-v2 2025-10-16 18:10:07,451 - AgenticMedicalRAG - INFO - Loaded semantic similarity model: all-MiniLM-L6-v2 2025-10-16 18:10:10,361 - AgenticMedicalRAG - INFO - Loaded semantic similarity model: all-MiniLM-L6-v2 2025-10-16 18:10:13,783 - AgenticMedicalRAG - INFO - Loaded semantic similarity model: all-MiniLM-L6-v2 2025-10-16 18:10:17,385 - AgenticMedicalRAG - INFO - Loaded semantic similarity model: all-MiniLM-L6-v2 2025-10-16 18:10:20,918 - AgenticMedicalRAG - INFO - Loaded semantic similarity model: all-MiniLM-L6-v2 2025-10-16 18:10:23,928 - AgenticMedicalRAG - INFO - Loaded semantic similarity model: all-MiniLM-L6-v2 2025-10-16 21:02:25,618 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:02:28,159 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:02:28,161 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:02:28,161 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:02:28,162 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:02:37,592 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:02:37,592 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:02:37,593 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:02:37,593 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:02:37,593 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:02:38,190 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:02:38,206 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:02:38,207 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:02:38,596 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:02:38,597 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:02:38,597 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:02:38,598 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:02:43,863 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-16 21:02:43,863 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-16 21:02:43,864 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-16 21:02:43,864 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 21:02:45,485 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 21:02:45,486 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 21:02:45,486 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 21:03:59,429 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-16 21:04:03,298 - AgenticMedicalRAG - INFO - Hybrid search returned 17 unique documents (query expansion: True) 2025-10-16 21:04:03,299 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:04:03,309 - AgenticMedicalRAG - ERROR - Unexpected error in run_agent_streaming: name 'logger' is not defined 2025-10-16 21:04:03,339 - AgenticMedicalRAG - ERROR - Traceback: Traceback (most recent call last): File "d:\Work\backend\core\tools.py", line 201, in medical_guidelines_knowledge_tool logger.info(f"Retrieved {len(docs)} documents, enriched {min(5, len(docs))} with surrounding context") ^^^^^^ NameError: name 'logger' is not defined During handling of the above exception, another exception occurred: Traceback (most recent call last): File "d:\Work\backend\core\agent.py", line 424, in run_agent_streaming response = await task ^^^^^^^^^^ File "C:\Program Files\Python313\Lib\concurrent\futures\thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) File "d:\Work\backend\core\agent.py", line 394, in run_sync return get_agent_executor().invoke( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ { ^ ...<3 lines>... config={"callbacks": [streaming_handler]}, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "C:\Users\moaze\AppData\Roaming\Python\Python313\site-packages\langchain\chains\base.py", line 165, in invoke self._call(inputs, run_manager=run_manager) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\moaze\AppData\Roaming\Python\Python313\site-packages\langchain\agents\agent.py", line 1625, in _call next_step_output = self._take_next_step( name_to_tool_map, ...<3 lines>... run_manager=run_manager, ) File "C:\Users\moaze\AppData\Roaming\Python\Python313\site-packages\langchain\agents\agent.py", line 1325, in _take_next_step list( ~~~~^ self._iter_next_step( ^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ), ^^ ), ^ File "C:\Users\moaze\AppData\Roaming\Python\Python313\site-packages\langchain\agents\agent.py", line 1408, in _iter_next_step yield self._perform_agent_action( ~~~~~~~~~~~~~~~~~~~~~~~~~~^ name_to_tool_map, ^^^^^^^^^^^^^^^^^ ...<2 lines>... run_manager, ^^^^^^^^^^^^ ) ^ File "C:\Users\moaze\AppData\Roaming\Python\Python313\site-packages\langchain\agents\agent.py", line 1433, in _perform_agent_action observation = tool.run( agent_action.tool_input, ...<3 lines>... **tool_run_kwargs, ) File "C:\Users\moaze\AppData\Roaming\Python\Python313\site-packages\langchain_core\tools\base.py", line 892, in run raise error_to_raise File "C:\Users\moaze\AppData\Roaming\Python\Python313\site-packages\langchain_core\tools\base.py", line 861, in run response = context.run(self._run, *tool_args, **tool_kwargs) File "C:\Users\moaze\AppData\Roaming\Python\Python313\site-packages\langchain_core\tools\structured.py", line 103, in _run return self.func(*args, **kwargs) ~~~~~~~~~^^^^^^^^^^^^^^^^^ File "d:\Work\backend\core\tools.py", line 221, in medical_guidelines_knowledge_tool logger.error(f"Retrieval error: {str(e)}") ^^^^^^ NameError: name 'logger' is not defined 2025-10-16 21:04:46,568 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:04:47,568 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:04:47,892 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:04:47,893 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:04:47,893 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:04:47,894 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:04:56,312 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:04:56,313 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:04:56,313 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:04:56,313 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:04:56,314 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:04:56,420 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:04:56,446 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:04:56,447 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:04:56,830 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:04:56,831 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:04:56,831 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:04:56,831 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:05:02,070 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-16 21:05:02,070 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-16 21:05:02,071 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-16 21:05:02,071 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 21:05:03,382 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 21:05:03,382 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 21:05:03,383 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 21:05:47,486 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-16 21:05:50,582 - AgenticMedicalRAG - INFO - Hybrid search returned 17 unique documents (query expansion: True) 2025-10-16 21:05:50,583 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:05:50,583 - AgenticMedicalRAG - INFO - Retrieved 17 documents, enriched 5 with surrounding context 2025-10-16 21:06:08,561 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-16 21:06:09,422 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-16 21:06:09,422 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-16 21:06:10,838 - AgenticMedicalRAG - INFO - Starting validation for interaction 48 2025-10-16 21:06:26,244 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 48 2025-10-16 21:06:31,463 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-16 21:06:31,465 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 48 2025-10-16 21:06:31,466 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 48 2025-10-16 21:06:31,466 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-16 21:06:31,466 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the recommended first-line treatment for a... 2025-10-16 21:16:15,762 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-16 21:16:29,192 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-16 21:16:30,128 - AgenticMedicalRAG - INFO - Starting validation for interaction 49 2025-10-16 21:16:40,854 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 49 2025-10-16 21:16:45,399 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-16 21:16:45,400 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 49 2025-10-16 21:16:45,401 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 49 2025-10-16 21:16:45,401 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-16 21:16:45,401 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-16 21:20:52,310 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:20:53,490 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:20:53,894 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:20:53,895 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:20:53,896 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:20:53,897 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:21:03,255 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:21:03,255 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:21:03,256 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:21:03,256 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:21:03,256 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:21:03,334 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:21:03,355 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:21:03,356 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:21:03,741 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:21:03,741 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:21:03,741 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:21:03,742 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:21:09,447 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-16 21:21:09,448 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-16 21:21:09,448 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-16 21:21:09,448 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 21:21:10,929 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 21:21:10,929 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 21:21:10,930 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 21:21:34,612 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:21:35,666 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:21:36,053 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:21:36,054 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:21:36,055 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:21:36,056 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:21:45,346 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:21:45,346 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:21:45,346 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:21:45,347 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:21:45,347 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:21:45,434 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:21:45,457 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:21:45,458 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:21:45,843 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:21:45,844 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:21:45,844 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:21:45,844 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:22:04,350 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:22:05,320 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:22:05,681 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:22:05,682 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:22:05,683 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:22:05,683 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:22:14,695 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:22:14,696 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:22:14,697 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:22:14,697 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:22:14,697 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:22:14,785 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:22:14,811 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:22:14,811 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:22:15,240 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:22:15,241 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:22:15,241 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:22:15,241 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:22:21,515 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-16 21:22:21,516 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-16 21:22:21,516 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-16 21:22:21,516 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 21:22:44,361 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:22:45,427 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:22:45,831 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:22:45,832 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:22:45,833 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:22:45,833 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:22:54,565 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:22:54,565 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:22:54,566 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:22:54,566 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:22:54,567 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:22:54,646 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:22:54,667 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:22:54,667 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:22:55,041 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:22:55,042 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:22:55,042 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:22:55,042 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:23:00,804 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-16 21:23:00,805 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-16 21:23:00,805 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-16 21:23:00,805 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 21:23:02,320 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 21:23:02,321 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 21:23:02,321 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 21:27:19,098 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:27:20,093 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:27:20,434 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:27:20,436 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:27:20,436 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:27:20,437 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:27:28,632 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:27:28,633 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:27:28,633 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:27:28,633 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:27:28,633 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:27:28,748 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:27:28,776 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:27:28,776 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:27:29,158 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:27:29,160 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:27:29,160 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:27:29,160 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:27:34,135 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-16 21:27:34,136 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-16 21:27:34,137 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-16 21:27:34,137 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 21:27:35,578 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 21:27:35,578 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 21:27:35,579 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 21:27:55,371 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-16 21:28:05,218 - AgenticMedicalRAG - INFO - ✅ Response citations validated successfully 2025-10-16 21:28:05,218 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-16 21:28:05,219 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-16 21:28:05,220 - AgenticMedicalRAG - ERROR - Unexpected error in run_agent_streaming: 'ConversationTracker' object has no attribute 'add_turn' 2025-10-16 21:28:05,221 - AgenticMedicalRAG - ERROR - Traceback: Traceback (most recent call last): File "d:\Work\backend\core\agent.py", line 535, in run_agent_streaming conversation_tracker.add_turn(user_input, base_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConversationTracker' object has no attribute 'add_turn' 2025-10-16 21:31:36,429 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the recommended first-line treatment for a... 2025-10-16 21:31:39,274 - AgenticMedicalRAG - INFO - Hybrid search returned 16 unique documents (query expansion: True) 2025-10-16 21:31:39,275 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:31:39,276 - AgenticMedicalRAG - INFO - Retrieved 16 documents, enriched 5 with surrounding context 2025-10-16 21:31:40,248 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-16 21:31:42,250 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): What is the recommended first-line treatment for a... 2025-10-16 21:31:45,888 - AgenticMedicalRAG - INFO - Hybrid search returned 16 unique documents (query expansion: True) 2025-10-16 21:31:45,889 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:31:45,890 - AgenticMedicalRAG - INFO - Retrieved 16 documents, enriched 5 with surrounding context 2025-10-16 21:31:46,221 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-16 21:31:48,223 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): What is the recommended first-line treatment for a... 2025-10-16 21:31:51,160 - AgenticMedicalRAG - INFO - Hybrid search returned 17 unique documents (query expansion: True) 2025-10-16 21:31:51,161 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:31:51,161 - AgenticMedicalRAG - INFO - Retrieved 17 documents, enriched 5 with surrounding context 2025-10-16 21:31:51,675 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-16 21:31:53,677 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): What is the recommended first-line treatment for a... 2025-10-16 21:31:55,140 - AgenticMedicalRAG - INFO - Hybrid search returned 17 unique documents (query expansion: True) 2025-10-16 21:31:55,141 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:31:55,142 - AgenticMedicalRAG - INFO - Retrieved 17 documents, enriched 5 with surrounding context 2025-10-16 21:31:55,586 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-16 21:33:19,865 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:33:20,871 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:33:21,215 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:33:21,218 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:33:21,218 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:33:21,219 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:33:29,337 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:33:29,337 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:33:29,338 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:33:29,338 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:33:29,338 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:33:29,435 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:33:29,457 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:33:29,457 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:33:29,866 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:33:29,866 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:33:29,867 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:33:29,867 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:33:35,039 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-16 21:33:35,040 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-16 21:33:35,040 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-16 21:33:35,040 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 21:33:36,378 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 21:33:36,378 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 21:33:36,379 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 21:34:14,829 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-16 21:34:25,932 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-16 21:34:25,933 - AgenticMedicalRAG - INFO - Skipping validation: insufficient context 2025-10-16 21:34:25,933 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-16 21:36:55,043 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:36:56,048 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:36:56,461 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:36:56,463 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:36:56,463 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:36:56,464 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:37:09,328 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:37:10,328 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:37:10,676 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:37:10,677 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:37:10,678 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:37:10,679 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:37:29,979 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:37:31,168 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:37:31,596 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:37:31,597 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:37:31,598 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:37:31,599 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:37:41,982 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:37:41,983 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:37:41,983 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:37:41,983 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:37:41,983 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:37:42,067 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:37:42,087 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:37:42,087 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:37:42,409 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:37:42,409 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:37:42,410 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:37:42,410 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:37:47,550 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-16 21:37:47,551 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-16 21:37:47,552 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-16 21:37:47,552 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 21:37:48,841 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 21:37:48,842 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 21:37:48,842 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 21:38:55,670 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:38:56,639 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:38:57,003 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:38:57,004 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:38:57,004 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:38:57,005 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:39:05,482 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:39:05,483 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:39:05,483 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:39:05,483 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:39:05,483 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:39:05,576 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:39:05,599 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:39:05,600 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:39:05,946 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:39:05,949 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:39:05,949 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:39:05,949 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:39:11,360 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-16 21:39:11,360 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-16 21:39:11,360 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-16 21:39:11,361 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 21:39:12,929 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 21:39:12,929 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 21:39:12,929 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 21:40:54,436 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-16 21:40:57,562 - AgenticMedicalRAG - INFO - Hybrid search returned 27 unique documents (query expansion: True) 2025-10-16 21:40:57,564 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:40:57,564 - AgenticMedicalRAG - INFO - Retrieved 27 documents, enriched 5 with surrounding context 2025-10-16 21:40:57,941 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-16 21:40:59,943 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): Do you know what is a driver?... 2025-10-16 21:41:01,156 - AgenticMedicalRAG - INFO - Hybrid search returned 27 unique documents (query expansion: True) 2025-10-16 21:41:01,157 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:41:01,157 - AgenticMedicalRAG - INFO - Retrieved 27 documents, enriched 5 with surrounding context 2025-10-16 21:41:01,418 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-16 21:41:03,419 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): Do you know what is a driver?... 2025-10-16 21:41:04,484 - AgenticMedicalRAG - INFO - Hybrid search returned 27 unique documents (query expansion: True) 2025-10-16 21:41:04,485 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:41:04,486 - AgenticMedicalRAG - INFO - Retrieved 27 documents, enriched 5 with surrounding context 2025-10-16 21:41:05,064 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-16 21:41:07,065 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): Do you know what is a driver?... 2025-10-16 21:41:08,619 - AgenticMedicalRAG - INFO - Hybrid search returned 27 unique documents (query expansion: True) 2025-10-16 21:41:08,620 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:41:08,621 - AgenticMedicalRAG - INFO - Retrieved 27 documents, enriched 5 with surrounding context 2025-10-16 21:41:08,904 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-16 21:43:24,613 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-16 21:43:25,598 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-16 21:43:25,912 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-16 21:43:25,913 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-16 21:43:25,914 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-16 21:43:25,914 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-16 21:43:34,252 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-16 21:43:34,253 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-16 21:43:34,253 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-16 21:43:34,253 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-16 21:43:34,253 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-16 21:43:34,403 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-16 21:43:34,432 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-16 21:43:34,433 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-16 21:43:34,857 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-16 21:43:34,857 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-16 21:43:34,857 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-16 21:43:34,858 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-16 21:43:40,204 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-16 21:43:40,205 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-16 21:43:40,205 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-16 21:43:40,206 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-16 21:43:41,623 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-16 21:43:41,624 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-16 21:43:41,624 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-16 21:55:11,433 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-16 21:55:16,567 - AgenticMedicalRAG - INFO - Hybrid search returned 18 unique documents (query expansion: True) 2025-10-16 21:55:16,568 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-16 21:55:16,569 - AgenticMedicalRAG - INFO - Retrieved 18 documents, enriched 5 with surrounding context 2025-10-16 21:55:24,143 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-16 21:55:24,952 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-16 21:55:24,952 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-16 21:55:26,475 - AgenticMedicalRAG - INFO - Starting validation for interaction 50 2025-10-16 21:55:36,176 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 50 2025-10-16 21:55:41,988 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-16 21:55:41,991 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 50 2025-10-16 21:55:41,992 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 50 2025-10-16 21:55:41,992 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-16 21:55:41,992 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-18 03:02:37,271 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:02:42,301 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:02:43,037 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:02:43,039 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:02:43,040 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:02:43,041 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:03:06,394 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 03:03:06,394 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 03:03:06,395 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 03:03:06,395 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 03:03:06,395 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 03:03:07,061 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 03:03:07,110 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 03:03:07,111 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 03:03:07,464 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 03:03:07,465 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 03:03:07,465 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 03:03:07,466 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 03:03:12,122 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 03:03:12,123 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 03:03:12,123 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 03:03:12,124 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 03:03:13,681 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 03:03:13,682 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 03:03:13,682 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 03:09:18,950 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 03:09:22,160 - AgenticMedicalRAG - INFO - Hybrid search returned 18 unique documents (query expansion: True) 2025-10-18 03:09:22,161 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-18 03:09:22,162 - AgenticMedicalRAG - INFO - Retrieved 18 documents, enriched 5 with surrounding context 2025-10-18 03:09:33,572 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 03:09:34,476 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 03:09:34,477 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 03:09:36,000 - AgenticMedicalRAG - INFO - Starting validation for interaction 51 2025-10-18 03:09:49,775 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 51 2025-10-18 03:09:55,718 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 03:09:55,720 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 51 2025-10-18 03:09:55,720 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 51 2025-10-18 03:09:55,721 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-18 03:09:55,721 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-18 03:17:17,498 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:17:18,475 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:17:18,814 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:17:18,815 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:17:18,816 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:17:18,816 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:17:35,114 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:17:36,046 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:17:36,366 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:17:36,367 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:17:36,368 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:17:36,369 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:17:47,625 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:17:48,650 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:17:48,973 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:17:48,974 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:17:48,975 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:17:48,976 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:18:01,178 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:18:02,253 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:18:02,627 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:18:02,628 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:18:02,629 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:18:02,630 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:18:11,612 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 03:18:11,613 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 03:18:11,613 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 03:18:11,614 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 03:18:11,614 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 03:18:11,713 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 03:18:11,736 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 03:18:11,736 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 03:18:12,101 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 03:18:12,102 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 03:18:12,102 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 03:18:12,102 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 03:18:18,166 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 03:18:18,167 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 03:18:18,167 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 03:18:18,168 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 03:18:19,441 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 03:18:19,442 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 03:18:19,442 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 03:19:18,025 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:19:18,773 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:19:19,031 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:19:19,032 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:19:19,032 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:19:19,033 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:19:27,544 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 03:19:27,544 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 03:19:27,545 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 03:19:27,545 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 03:19:27,546 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 03:19:27,659 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 03:19:27,689 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 03:19:27,689 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 03:19:28,173 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 03:19:28,174 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 03:19:28,174 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 03:19:28,174 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 03:19:34,178 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 03:19:34,179 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 03:19:34,179 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 03:19:34,179 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 03:19:35,659 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 03:19:35,659 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 03:19:35,659 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 03:37:43,007 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:37:43,923 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:37:44,238 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:37:44,239 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:37:44,239 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:37:44,240 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:37:53,192 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 03:37:53,193 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 03:37:53,193 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 03:37:53,193 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 03:37:53,194 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 03:37:53,327 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 03:37:53,350 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 03:37:53,350 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 03:37:53,699 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 03:37:53,699 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 03:37:53,700 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 03:37:53,700 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 03:37:58,984 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 03:37:58,985 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 03:37:58,985 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 03:37:58,986 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 03:38:00,337 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 03:38:00,337 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 03:38:00,337 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 03:41:27,590 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 03:41:29,653 - AgenticMedicalRAG - INFO - Hybrid search returned 18 unique documents (query expansion: True) 2025-10-18 03:41:29,654 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-18 03:41:29,654 - AgenticMedicalRAG - INFO - Retrieved 18 documents, enriched 0 with surrounding context 2025-10-18 03:41:36,188 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 03:41:37,027 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 03:41:37,028 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 03:41:38,473 - AgenticMedicalRAG - INFO - Starting validation for interaction 52 2025-10-18 03:41:49,281 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 52 2025-10-18 03:41:55,537 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 03:41:55,539 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 52 2025-10-18 03:41:55,539 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 52 2025-10-18 03:41:55,539 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-18 03:41:55,540 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-18 03:46:27,340 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:46:28,351 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:46:28,721 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:46:28,723 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:46:28,724 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:46:28,724 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:46:40,844 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:46:41,867 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:46:42,208 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:46:42,209 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:46:42,210 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:46:42,210 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:46:51,005 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 03:46:51,005 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 03:46:51,006 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 03:46:51,006 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 03:46:51,006 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 03:46:51,091 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 03:46:51,114 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 03:46:51,115 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 03:46:51,520 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 03:46:51,521 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 03:46:51,522 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 03:46:51,522 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 03:46:57,448 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 03:46:57,449 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 03:46:57,449 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 03:46:57,449 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 03:46:58,943 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 03:46:58,943 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 03:46:58,943 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 03:47:46,385 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:47:47,463 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:47:47,851 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:47:47,853 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:47:47,853 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:47:47,854 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:47:56,736 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 03:47:56,737 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 03:47:56,737 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 03:47:56,737 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 03:47:56,737 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 03:47:56,822 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 03:47:56,846 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 03:47:56,846 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 03:47:57,272 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 03:47:57,273 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 03:47:57,273 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 03:47:57,274 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 03:48:03,504 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 03:48:03,504 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 03:48:03,505 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 03:48:03,505 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 03:48:04,953 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 03:48:04,953 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 03:48:04,954 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 03:57:49,989 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 03:57:50,915 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 03:57:51,244 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 03:57:51,245 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 03:57:51,245 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 03:57:51,245 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 03:57:59,058 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 03:57:59,058 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 03:57:59,058 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 03:57:59,058 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 03:57:59,059 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 03:57:59,145 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 03:57:59,169 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 03:57:59,169 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 03:57:59,533 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 03:57:59,534 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 03:57:59,534 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 03:57:59,535 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 03:58:04,812 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 03:58:04,812 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 03:58:04,813 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 03:58:04,813 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 03:58:06,211 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 03:58:06,211 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 03:58:06,212 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 03:58:53,941 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 03:58:56,215 - AgenticMedicalRAG - INFO - Hybrid search returned 18 unique documents (query expansion: True) 2025-10-18 03:58:56,352 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-18 03:58:56,353 - AgenticMedicalRAG - INFO - Retrieved 18 documents, enriched 5 with surrounding context 2025-10-18 03:58:56,353 - AgenticMedicalRAG - INFO - 📄 Enriched Document 1: jnccn-article-p497.pdf | Primary Page: 27 | Pages Included: [26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28] 2025-10-18 03:58:56,353 - AgenticMedicalRAG - INFO - 📄 Enriched Document 2: jnccn-article-p249.pdf | Primary Page: 20 | Pages Included: [19, 19, 19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21] 2025-10-18 03:58:56,354 - AgenticMedicalRAG - INFO - 📄 Enriched Document 3: ESMO NCSLC Pan Asian Oncogene-addicted metastatic.pdf | Primary Page: 1 | Pages Included: [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2] 2025-10-18 03:58:56,354 - AgenticMedicalRAG - INFO - 📄 Enriched Document 4: nscl.pdf | Primary Page: 236 | Pages Included: [235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237] 2025-10-18 03:58:56,354 - AgenticMedicalRAG - INFO - 📄 Enriched Document 5: NICE NG122.pdf | Primary Page: 0 | Pages Included: [0, 0, 0, 1] 2025-10-18 03:58:57,258 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 03:58:59,259 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): Do you know what is a driver?... 2025-10-18 03:59:00,293 - AgenticMedicalRAG - INFO - Hybrid search returned 18 unique documents (query expansion: True) 2025-10-18 03:59:00,295 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-18 03:59:00,295 - AgenticMedicalRAG - INFO - Retrieved 18 documents, enriched 5 with surrounding context 2025-10-18 03:59:00,296 - AgenticMedicalRAG - INFO - 📄 Enriched Document 1: jnccn-article-p497.pdf | Primary Page: 27 | Pages Included: [26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28] 2025-10-18 03:59:00,296 - AgenticMedicalRAG - INFO - 📄 Enriched Document 2: jnccn-article-p249.pdf | Primary Page: 20 | Pages Included: [19, 19, 19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21] 2025-10-18 03:59:00,296 - AgenticMedicalRAG - INFO - 📄 Enriched Document 3: ESMO NCSLC Pan Asian Oncogene-addicted metastatic.pdf | Primary Page: 1 | Pages Included: [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2] 2025-10-18 03:59:00,296 - AgenticMedicalRAG - INFO - 📄 Enriched Document 4: nscl.pdf | Primary Page: 236 | Pages Included: [235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237] 2025-10-18 03:59:00,297 - AgenticMedicalRAG - INFO - 📄 Enriched Document 5: NICE NG122.pdf | Primary Page: 0 | Pages Included: [0, 0, 0, 1] 2025-10-18 03:59:00,681 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 03:59:02,682 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): Do you know what is a driver?... 2025-10-18 03:59:03,769 - AgenticMedicalRAG - INFO - Hybrid search returned 18 unique documents (query expansion: True) 2025-10-18 03:59:03,771 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-18 03:59:03,771 - AgenticMedicalRAG - INFO - Retrieved 18 documents, enriched 5 with surrounding context 2025-10-18 03:59:03,771 - AgenticMedicalRAG - INFO - 📄 Enriched Document 1: jnccn-article-p497.pdf | Primary Page: 27 | Pages Included: [26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28] 2025-10-18 03:59:03,771 - AgenticMedicalRAG - INFO - 📄 Enriched Document 2: jnccn-article-p249.pdf | Primary Page: 20 | Pages Included: [19, 19, 19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21] 2025-10-18 03:59:03,772 - AgenticMedicalRAG - INFO - 📄 Enriched Document 3: ESMO NCSLC Pan Asian Oncogene-addicted metastatic.pdf | Primary Page: 1 | Pages Included: [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2] 2025-10-18 03:59:03,772 - AgenticMedicalRAG - INFO - 📄 Enriched Document 4: nscl.pdf | Primary Page: 236 | Pages Included: [235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237] 2025-10-18 03:59:03,772 - AgenticMedicalRAG - INFO - 📄 Enriched Document 5: NICE NG122.pdf | Primary Page: 0 | Pages Included: [0, 0, 0, 1] 2025-10-18 03:59:04,309 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 03:59:06,311 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): Do you know what is a driver?... 2025-10-18 03:59:07,314 - AgenticMedicalRAG - INFO - Hybrid search returned 18 unique documents (query expansion: True) 2025-10-18 03:59:07,315 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-18 03:59:07,315 - AgenticMedicalRAG - INFO - Retrieved 18 documents, enriched 5 with surrounding context 2025-10-18 03:59:07,315 - AgenticMedicalRAG - INFO - 📄 Enriched Document 1: jnccn-article-p497.pdf | Primary Page: 27 | Pages Included: [26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28] 2025-10-18 03:59:07,315 - AgenticMedicalRAG - INFO - 📄 Enriched Document 2: jnccn-article-p249.pdf | Primary Page: 20 | Pages Included: [19, 19, 19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21] 2025-10-18 03:59:07,316 - AgenticMedicalRAG - INFO - 📄 Enriched Document 3: ESMO NCSLC Pan Asian Oncogene-addicted metastatic.pdf | Primary Page: 1 | Pages Included: [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2] 2025-10-18 03:59:07,316 - AgenticMedicalRAG - INFO - 📄 Enriched Document 4: nscl.pdf | Primary Page: 236 | Pages Included: [235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237] 2025-10-18 03:59:07,316 - AgenticMedicalRAG - INFO - 📄 Enriched Document 5: NICE NG122.pdf | Primary Page: 0 | Pages Included: [0, 0, 0, 1] 2025-10-18 03:59:07,728 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:11:48,633 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 04:11:49,687 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 04:11:50,042 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 04:11:50,043 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 04:11:50,043 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 04:11:50,044 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 04:11:58,778 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 04:11:58,779 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 04:11:58,779 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 04:11:58,780 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 04:11:58,780 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 04:11:58,887 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 04:11:58,913 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 04:11:58,913 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 04:11:59,277 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 04:11:59,278 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 04:11:59,278 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 04:11:59,278 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 04:12:04,670 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 04:12:04,671 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 04:12:04,671 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 04:12:04,671 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 04:12:06,132 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 04:12:06,132 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 04:12:06,132 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 04:20:22,886 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 04:20:25,409 - AgenticMedicalRAG - INFO - Hybrid search returned 13 unique documents (query expansion: True) 2025-10-18 04:20:25,516 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context 2025-10-18 04:20:25,516 - AgenticMedicalRAG - INFO - Retrieved 13 documents, enriched 5 with surrounding context 2025-10-18 04:20:25,517 - AgenticMedicalRAG - INFO - 📄 Enriched Document 1: jnccn-article-p497.pdf | Primary Page: 27 | Pages Included: [26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28] 2025-10-18 04:20:25,517 - AgenticMedicalRAG - INFO - 📄 Enriched Document 2: jnccn-article-p249.pdf | Primary Page: 20 | Pages Included: [19, 19, 19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21] 2025-10-18 04:20:25,517 - AgenticMedicalRAG - INFO - 📄 Enriched Document 3: ESMO NCSLC Pan Asian Oncogene-addicted metastatic.pdf | Primary Page: 1 | Pages Included: [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2] 2025-10-18 04:20:25,517 - AgenticMedicalRAG - INFO - 📄 Enriched Document 4: nscl.pdf | Primary Page: 236 | Pages Included: [235, 235, 235, 235, 235, 235, 236, 236, 236, 236, 236, 237, 237, 237, 237, 237] 2025-10-18 04:20:25,517 - AgenticMedicalRAG - INFO - 📄 Enriched Document 5: NICE NG122.pdf | Primary Page: 0 | Pages Included: [0, 0, 0, 1] 2025-10-18 04:20:35,331 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 04:20:36,198 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 04:20:36,199 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 04:20:37,228 - AgenticMedicalRAG - INFO - Starting validation for interaction 53 2025-10-18 04:20:46,290 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 53 2025-10-18 04:20:54,241 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 04:20:54,242 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 53 2025-10-18 04:20:54,243 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 53 2025-10-18 04:20:54,243 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-18 04:20:54,243 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-18 04:36:24,859 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 04:36:26,059 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 04:36:26,499 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 04:36:26,500 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 04:36:26,501 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 04:36:26,502 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 04:36:42,927 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 04:36:44,087 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 04:36:44,437 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 04:36:44,438 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 04:36:44,439 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 04:36:44,439 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 04:36:53,208 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 04:36:53,208 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 04:36:53,209 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 04:36:53,209 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 04:36:53,209 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 04:36:53,295 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 04:36:53,316 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 04:36:53,316 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 04:36:53,726 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 04:36:53,726 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 04:36:53,726 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 04:36:53,727 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 04:37:11,090 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 04:37:12,184 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 04:37:12,564 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 04:37:12,565 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 04:37:12,565 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 04:37:12,566 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 04:37:21,017 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 04:37:21,018 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 04:37:21,018 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 04:37:21,018 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 04:37:21,019 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 04:37:21,095 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 04:37:21,118 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 04:37:21,119 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 04:37:21,499 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 04:37:21,500 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 04:37:21,500 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 04:37:21,500 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 04:37:27,292 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 04:37:27,292 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 04:37:27,292 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 04:37:27,293 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 04:37:28,919 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 04:37:28,919 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 04:37:28,919 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 04:41:39,633 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 04:41:40,657 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 04:41:41,047 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 04:41:41,048 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 04:41:41,049 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 04:41:41,050 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 04:41:50,015 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 04:41:50,015 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 04:41:50,015 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 04:41:50,015 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 04:41:50,016 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 04:41:50,111 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 04:41:50,134 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 04:41:50,134 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 04:41:50,557 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 04:41:50,558 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 04:41:50,558 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 04:41:50,558 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 04:41:55,772 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 04:41:55,772 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 04:41:55,773 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 04:41:55,773 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 04:41:57,129 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 04:41:57,130 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 04:41:57,130 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 04:49:13,964 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 04:49:15,912 - AgenticMedicalRAG - INFO - Hybrid search returned 13 unique documents (query expansion: True) 2025-10-18 04:49:16,060 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:49:16,061 - AgenticMedicalRAG - INFO - Retrieved 13 documents, added 42 context pages 2025-10-18 04:49:16,844 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:49:18,846 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): Do you know what is a driver?... 2025-10-18 04:49:20,011 - AgenticMedicalRAG - INFO - Hybrid search returned 13 unique documents (query expansion: True) 2025-10-18 04:49:20,013 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:49:20,014 - AgenticMedicalRAG - INFO - Retrieved 13 documents, added 42 context pages 2025-10-18 04:49:21,406 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:49:23,408 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): Do you know what is a driver?... 2025-10-18 04:49:24,376 - AgenticMedicalRAG - INFO - Hybrid search returned 13 unique documents (query expansion: True) 2025-10-18 04:49:24,377 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:49:24,378 - AgenticMedicalRAG - INFO - Retrieved 13 documents, added 42 context pages 2025-10-18 04:49:25,069 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:49:27,071 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): Do you know what is a driver?... 2025-10-18 04:49:28,115 - AgenticMedicalRAG - INFO - Hybrid search returned 13 unique documents (query expansion: True) 2025-10-18 04:49:28,117 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:49:28,118 - AgenticMedicalRAG - INFO - Retrieved 13 documents, added 42 context pages 2025-10-18 04:49:28,886 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:55:44,965 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 04:55:45,801 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 04:55:46,105 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 04:55:46,106 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 04:55:46,107 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 04:55:46,107 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 04:55:55,913 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 04:55:55,913 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 04:55:55,913 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 04:55:55,914 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 04:55:55,914 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 04:55:56,031 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 04:55:56,053 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 04:55:56,054 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 04:55:56,455 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 04:55:56,455 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 04:55:56,456 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 04:55:56,456 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 04:56:01,714 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 04:56:01,714 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 04:56:01,715 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 04:56:01,715 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 04:56:03,140 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 04:56:03,141 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 04:56:03,142 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 04:57:41,738 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 04:57:43,778 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 04:57:43,875 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:57:43,876 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 55 context pages 2025-10-18 04:57:44,509 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:57:46,511 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): Do you know what is a driver?... 2025-10-18 04:57:47,574 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 04:57:47,576 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:57:47,576 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 55 context pages 2025-10-18 04:57:48,209 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:57:50,211 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): Do you know what is a driver?... 2025-10-18 04:57:51,358 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 04:57:51,360 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:57:51,360 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 55 context pages 2025-10-18 04:57:52,823 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:57:54,824 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): Do you know what is a driver?... 2025-10-18 04:57:55,768 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 04:57:55,769 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:57:55,770 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 55 context pages 2025-10-18 04:57:56,273 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:58:43,682 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 04:58:44,617 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 04:58:44,855 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 04:58:44,856 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 04:58:44,856 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 04:58:44,857 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 04:58:51,046 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 04:58:51,046 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 04:58:51,046 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 04:58:51,047 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 04:58:51,047 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 04:58:51,140 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 04:58:51,161 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 04:58:51,161 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 04:58:51,528 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 04:58:51,529 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 04:58:51,529 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 04:58:51,529 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 04:58:56,711 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 04:58:56,712 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 04:58:56,712 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 04:58:56,712 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 04:58:58,105 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 04:58:58,106 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 04:58:58,106 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 04:59:16,786 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 04:59:18,701 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 04:59:18,798 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:59:18,798 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 55 context pages 2025-10-18 04:59:19,409 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:59:21,410 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): Do you know what is a driver?... 2025-10-18 04:59:22,302 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 04:59:22,304 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:59:22,304 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 55 context pages 2025-10-18 04:59:23,850 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:59:25,852 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): Do you know what is a driver?... 2025-10-18 04:59:26,724 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 04:59:26,725 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:59:26,725 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 55 context pages 2025-10-18 04:59:27,234 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 04:59:29,235 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): Do you know what is a driver?... 2025-10-18 04:59:30,242 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 04:59:30,243 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 04:59:30,243 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 55 context pages 2025-10-18 04:59:31,877 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 05:01:09,006 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 05:01:10,086 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 05:01:10,485 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 05:01:10,486 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 05:01:10,487 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 05:01:10,487 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 05:01:23,649 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 05:01:24,783 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 05:01:25,195 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 05:01:25,196 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 05:01:25,197 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 05:01:25,197 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 05:01:34,193 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 05:01:34,194 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 05:01:34,194 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 05:01:34,194 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 05:01:34,195 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 05:01:34,287 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 05:01:34,308 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 05:01:34,308 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 05:01:34,728 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 05:01:34,729 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 05:01:34,730 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 05:01:34,730 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 05:01:40,810 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 05:01:40,811 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 05:01:40,811 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 05:01:40,811 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 05:01:42,423 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 05:01:42,424 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 05:01:42,424 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 05:04:57,251 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 05:04:57,900 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 05:04:58,128 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 05:04:58,130 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 05:04:58,130 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 05:04:58,131 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 05:05:04,053 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 05:05:04,053 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 05:05:04,054 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 05:05:04,054 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 05:05:04,054 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 05:05:04,254 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 05:05:04,273 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 05:05:04,273 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 05:05:04,515 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 05:05:04,515 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 05:05:04,515 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 05:05:04,515 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 05:05:09,210 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 05:05:09,210 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 05:05:09,211 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 05:05:09,212 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 05:05:10,589 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 05:05:10,590 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 05:05:10,590 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 05:05:53,276 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 05:05:55,774 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 05:05:55,873 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 05:05:55,873 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 9 context pages 2025-10-18 05:06:05,019 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 05:06:05,913 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 05:06:05,914 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 05:06:06,612 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-18 05:06:07,480 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 1): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 05:06:07,846 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 2): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 05:06:08,208 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 3): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 05:06:08,208 - AgenticMedicalRAG - INFO - Using basic heuristic validation as fallback 2025-10-18 05:06:08,678 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 1 2025-10-18 05:06:10,445 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 05:06:10,445 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 1 2025-10-18 05:06:10,446 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 1 2025-10-18 05:06:10,446 - AgenticMedicalRAG - INFO - Validation scores - Overall: 72/100, Accuracy: 75/100, Coherence: 80/100, Relevance: 70/100 2025-10-18 05:06:10,447 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-18 05:32:11,611 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 05:32:12,794 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 05:32:13,227 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 05:32:13,228 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 05:32:13,229 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 05:32:13,229 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 05:32:22,069 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 05:32:22,069 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 05:32:22,069 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 05:32:22,070 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 05:32:22,070 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 05:32:22,159 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 05:32:22,179 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 05:32:22,179 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 05:32:22,591 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 05:32:22,591 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 05:32:22,592 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 05:32:22,592 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 05:32:28,715 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 05:32:28,716 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 05:32:28,716 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 05:32:28,716 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 05:32:30,306 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 05:32:30,307 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 05:32:30,307 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 05:36:07,034 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 05:36:07,677 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 05:36:07,924 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 05:36:07,925 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 05:36:07,926 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 05:36:07,926 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 05:36:13,724 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 05:36:13,726 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 05:36:13,726 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 05:36:13,727 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 05:36:13,727 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 05:36:13,794 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 05:36:13,808 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 05:36:13,809 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 05:36:14,026 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 05:36:14,026 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 05:36:14,026 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 05:36:14,026 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 05:36:17,584 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 05:36:17,584 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 05:36:17,585 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 05:36:17,585 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 05:36:18,505 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 05:36:18,505 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 05:36:18,505 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 05:36:57,558 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 05:36:59,748 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 05:36:59,849 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 05:36:59,849 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 9 context pages 2025-10-18 05:37:07,474 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 05:37:08,363 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 05:37:08,363 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 05:37:08,782 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-18 05:37:09,747 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 1): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 05:37:10,132 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 2): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 05:37:10,560 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 3): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 05:37:10,560 - AgenticMedicalRAG - INFO - Using basic heuristic validation as fallback 2025-10-18 05:37:11,008 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 1 2025-10-18 05:37:12,168 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 05:37:12,169 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 1 2025-10-18 05:37:12,169 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 1 2025-10-18 05:37:12,169 - AgenticMedicalRAG - INFO - Validation scores - Overall: 72/100, Accuracy: 75/100, Coherence: 80/100, Relevance: 70/100 2025-10-18 05:37:12,169 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-18 08:11:01,441 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 08:11:05,328 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 08:11:05,829 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 08:11:05,831 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 08:11:05,831 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 08:11:05,832 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 08:11:26,236 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 08:11:26,236 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 08:11:26,237 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 08:11:26,237 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 08:11:26,238 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 08:11:26,863 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 08:11:26,929 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 08:11:26,930 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 08:11:27,334 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 08:11:27,335 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 08:11:27,335 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 08:11:27,336 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 08:11:32,176 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 08:11:32,176 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 08:11:32,176 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 08:11:32,177 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 08:11:33,756 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 08:11:33,756 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 08:11:33,757 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 08:11:56,844 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 08:11:59,892 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 08:11:59,997 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 08:11:59,997 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 9 context pages 2025-10-18 08:12:05,436 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 08:12:06,265 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 08:12:06,266 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 08:12:06,948 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-18 08:12:07,978 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 1): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:12:08,336 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 2): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:12:08,590 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 3): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:12:08,590 - AgenticMedicalRAG - INFO - Using basic heuristic validation as fallback 2025-10-18 08:12:13,888 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 1 2025-10-18 08:12:15,980 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 08:12:15,981 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 1 2025-10-18 08:12:15,981 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 1 2025-10-18 08:12:15,982 - AgenticMedicalRAG - INFO - Validation scores - Overall: 72/100, Accuracy: 75/100, Coherence: 80/100, Relevance: 70/100 2025-10-18 08:12:15,982 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-18 08:13:44,337 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): what is Anaplastic lymphoma kinase?... 2025-10-18 08:13:46,441 - AgenticMedicalRAG - INFO - Hybrid search returned 7 unique documents (query expansion: True) 2025-10-18 08:13:46,445 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 08:13:46,446 - AgenticMedicalRAG - INFO - Retrieved 7 documents, added 10 context pages 2025-10-18 08:13:55,750 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 08:13:56,445 - AgenticMedicalRAG - INFO - Starting validation for interaction 2 2025-10-18 08:14:04,235 - AgenticMedicalRAG - INFO - Assigned unique interaction ID: 2 2025-10-18 08:14:06,180 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 08:14:06,181 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 2 2025-10-18 08:14:06,181 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 2 2025-10-18 08:14:06,181 - AgenticMedicalRAG - INFO - Validation scores - Overall: 89/100, Accuracy: 90/100, Coherence: 95/100, Relevance: 92/100 2025-10-18 08:14:06,182 - AgenticMedicalRAG - INFO - Successfully processed user input: what is Anaplastic lymphoma kinase?... 2025-10-18 08:34:07,309 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 08:34:11,902 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 08:34:12,416 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 08:34:12,417 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 08:34:12,417 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 08:34:12,418 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 08:34:23,904 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 08:34:23,978 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 08:34:25,733 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 08:34:27,978 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 08:34:27,979 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 08:34:27,982 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 08:34:35,918 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 08:34:35,918 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 08:34:35,919 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 08:34:35,919 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 08:34:35,919 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 08:34:36,046 - AgenticMedicalRAG - ERROR - Failed to load embedding model: Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty() instead of torch.nn.Module.to() when moving module from meta to a different device. 2025-10-18 08:34:36,559 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 08:34:36,561 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 08:34:36,929 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 08:34:36,931 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 08:34:36,932 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 08:34:36,932 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 08:34:37,559 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 08:34:37,577 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 08:34:37,589 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 08:34:37,589 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 08:34:37,600 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 08:34:37,600 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 08:34:43,284 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 08:34:43,284 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 08:34:43,285 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 08:34:43,285 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 08:34:43,285 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 08:34:43,348 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 08:34:43,485 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 08:34:43,485 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 9 context pages 2025-10-18 08:36:41,007 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 08:36:42,802 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 08:36:42,804 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 08:36:42,804 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 9 context pages 2025-10-18 08:36:49,911 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 08:36:50,864 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 08:36:50,864 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 08:36:51,306 - AgenticMedicalRAG - INFO - No existing evaluation file found, starting with ID 1 2025-10-18 08:36:51,306 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-18 08:36:52,323 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 1): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:36:52,643 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 2): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:36:52,998 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 3): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:36:52,999 - AgenticMedicalRAG - INFO - Using basic heuristic validation as fallback 2025-10-18 08:36:58,661 - AgenticMedicalRAG - INFO - Loading existing evaluations: 0 found 2025-10-18 08:36:58,662 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 1 2025-10-18 08:37:00,542 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 08:37:00,544 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 1 2025-10-18 08:37:00,544 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 1 2025-10-18 08:37:00,545 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 1 2025-10-18 08:37:00,545 - AgenticMedicalRAG - INFO - Validation scores - Overall: 72/100, Accuracy: 75/100, Coherence: 80/100, Relevance: 70/100 2025-10-18 08:37:00,546 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-18 08:39:11,884 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 08:39:13,673 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-18 08:39:13,734 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 08:39:13,734 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 10 context pages 2025-10-18 08:39:14,165 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:39:16,166 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 08:39:17,128 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-18 08:39:17,130 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 08:39:17,130 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 10 context pages 2025-10-18 08:39:17,613 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:39:19,618 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 08:39:20,739 - AgenticMedicalRAG - INFO - Hybrid search returned 4 unique documents (query expansion: True) 2025-10-18 08:39:20,742 - AgenticMedicalRAG - INFO - Enriched 3 documents with surrounding context pages 2025-10-18 08:39:20,742 - AgenticMedicalRAG - INFO - Retrieved 4 documents, added 6 context pages 2025-10-18 08:39:27,856 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 08:39:28,368 - AgenticMedicalRAG - INFO - Found 1 existing evaluations in GitHub 2025-10-18 08:39:28,369 - AgenticMedicalRAG - INFO - Next interaction ID will be: 2 2025-10-18 08:39:28,369 - AgenticMedicalRAG - INFO - Starting validation for interaction 2 2025-10-18 08:39:34,506 - AgenticMedicalRAG - INFO - Loading existing evaluations: 1 found 2025-10-18 08:39:34,507 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 2 2025-10-18 08:39:35,886 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 08:39:35,887 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 2 2025-10-18 08:39:35,887 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 2 2025-10-18 08:39:35,888 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 2 2025-10-18 08:39:35,888 - AgenticMedicalRAG - INFO - Validation scores - Overall: 97/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-18 08:39:35,888 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-18 08:51:14,855 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 08:51:15,919 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 08:51:16,218 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 08:51:16,219 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 08:51:16,220 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 08:51:16,220 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 08:51:23,995 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 08:51:23,996 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 08:51:23,996 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 08:51:23,996 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 08:51:23,997 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 08:51:24,130 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 08:51:24,159 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 08:51:24,159 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 08:51:24,476 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 08:51:24,476 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 08:51:24,477 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 08:51:24,477 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 08:51:29,624 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 08:51:29,624 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 08:51:29,624 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 08:51:29,625 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 08:51:31,112 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 08:51:31,113 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 08:51:31,113 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 08:55:00,839 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Do you know what is a driver?... 2025-10-18 08:55:03,072 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-18 08:55:03,172 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 08:55:03,172 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 9 context pages 2025-10-18 08:55:10,914 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 08:55:11,745 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 08:55:11,745 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 08:55:12,391 - AgenticMedicalRAG - INFO - Found 2 existing evaluations in GitHub 2025-10-18 08:55:12,391 - AgenticMedicalRAG - INFO - Next interaction ID will be: 3 2025-10-18 08:55:12,392 - AgenticMedicalRAG - INFO - Starting validation for interaction 3 2025-10-18 08:55:13,408 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 1): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:55:13,663 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 2): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:55:14,010 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 3): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 08:55:14,010 - AgenticMedicalRAG - INFO - Using basic heuristic validation as fallback 2025-10-18 08:55:14,524 - AgenticMedicalRAG - INFO - Loading existing evaluations: 2 found 2025-10-18 08:55:14,524 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 3 2025-10-18 08:55:16,651 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 08:55:16,652 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 3 2025-10-18 08:55:16,652 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 3 2025-10-18 08:55:16,652 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 3 2025-10-18 08:55:16,652 - AgenticMedicalRAG - INFO - Validation scores - Overall: 72/100, Accuracy: 75/100, Coherence: 80/100, Relevance: 70/100 2025-10-18 08:55:16,653 - AgenticMedicalRAG - INFO - Successfully processed user input: Do you know what is a driver?... 2025-10-18 09:08:10,879 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 09:08:12,039 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 09:08:12,363 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 09:08:12,364 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 09:08:12,365 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 09:08:12,366 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 09:08:21,073 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 09:08:21,073 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 09:08:21,074 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 09:08:21,074 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 09:08:21,074 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 09:08:21,179 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 09:08:21,206 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 09:08:21,206 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 09:08:21,549 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 09:08:21,550 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 09:08:21,550 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 09:08:21,551 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 09:08:26,699 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 09:08:26,699 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 09:08:26,699 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 09:08:26,700 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 09:08:27,995 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 09:08:27,996 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 09:08:27,996 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 09:32:45,693 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 09:32:48,363 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-18 09:32:48,437 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 09:32:48,437 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 10 context pages 2025-10-18 09:32:56,304 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 09:32:57,190 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 09:32:57,190 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 09:32:58,110 - AgenticMedicalRAG - INFO - Found 3 existing evaluations in GitHub 2025-10-18 09:32:58,111 - AgenticMedicalRAG - INFO - Next interaction ID will be: 4 2025-10-18 09:32:58,111 - AgenticMedicalRAG - INFO - Starting validation for interaction 4 2025-10-18 09:32:59,066 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 1): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 09:32:59,322 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 2): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 09:32:59,579 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 3): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 09:32:59,579 - AgenticMedicalRAG - INFO - Using basic heuristic validation as fallback 2025-10-18 09:33:00,717 - AgenticMedicalRAG - INFO - Loading existing evaluations: 3 found 2025-10-18 09:33:00,718 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 4 2025-10-18 09:33:02,526 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 09:33:02,528 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 4 2025-10-18 09:33:02,528 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 4 2025-10-18 09:33:02,528 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 4 2025-10-18 09:33:02,529 - AgenticMedicalRAG - INFO - Validation scores - Overall: 72/100, Accuracy: 75/100, Coherence: 80/100, Relevance: 70/100 2025-10-18 09:33:02,529 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:23:08,688 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 10:23:09,455 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 10:23:09,768 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 10:23:09,769 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 10:23:09,769 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 10:23:09,769 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 10:23:16,440 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 10:23:16,440 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 10:23:16,440 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 10:23:16,441 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 10:23:16,441 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 10:23:16,518 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 10:23:16,538 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 10:23:16,538 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 10:23:16,819 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 10:23:16,820 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 10:23:16,820 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 10:23:16,820 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 10:23:20,612 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 10:23:20,612 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 10:23:20,612 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 10:23:20,612 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 10:23:21,520 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 10:23:21,520 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 10:23:21,520 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 10:23:44,691 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:23:46,675 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-18 10:23:46,751 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 10:23:46,751 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 10 context pages 2025-10-18 10:23:55,799 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 10:23:56,588 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 10:23:56,589 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 10:23:57,518 - AgenticMedicalRAG - INFO - Found 5 existing evaluations in GitHub 2025-10-18 10:23:57,518 - AgenticMedicalRAG - INFO - Next interaction ID will be: 6 2025-10-18 10:23:57,519 - AgenticMedicalRAG - INFO - Starting validation for interaction 6 2025-10-18 10:23:58,351 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 1): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 10:23:58,600 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 2): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 10:23:58,862 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 3): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-18 10:23:58,862 - AgenticMedicalRAG - INFO - Using basic heuristic validation as fallback 2025-10-18 10:23:59,471 - AgenticMedicalRAG - INFO - Loading existing evaluations: 5 found 2025-10-18 10:23:59,471 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 6 2025-10-18 10:24:01,847 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 10:24:01,849 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 6 2025-10-18 10:24:01,849 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 6 2025-10-18 10:24:01,850 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 6 2025-10-18 10:24:01,851 - AgenticMedicalRAG - INFO - Validation scores - Overall: 72/100, Accuracy: 75/100, Coherence: 80/100, Relevance: 70/100 2025-10-18 10:24:01,852 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:32:10,996 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 10:32:11,969 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 10:32:12,296 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 10:32:12,297 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 10:32:12,298 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 10:32:12,298 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 10:32:20,264 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 10:32:20,264 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 10:32:20,264 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 10:32:20,265 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 10:32:20,265 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 10:32:20,332 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 10:32:20,349 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 10:32:20,350 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 10:32:20,642 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 10:32:20,643 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 10:32:20,643 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 10:32:20,643 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 10:32:25,782 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 10:32:25,783 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 10:32:25,783 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 10:32:25,784 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 10:32:27,158 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 10:32:27,159 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 10:32:27,159 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 10:32:32,870 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:32:35,032 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-18 10:32:35,106 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 10:32:35,106 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 10 context pages 2025-10-18 10:32:38,407 - AgenticMedicalRAG - WARNING - Rate limit exceeded. Retrying in 2 seconds... (Attempt 1/3) 2025-10-18 10:32:40,408 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:32:43,305 - AgenticMedicalRAG - WARNING - Rate limit exceeded. Retrying in 4 seconds... (Attempt 2/3) 2025-10-18 10:32:47,306 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:32:50,106 - AgenticMedicalRAG - WARNING - Rate limit exceeded. Retrying in 8 seconds... (Attempt 3/3) 2025-10-18 10:32:58,108 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:33:36,771 - AgenticMedicalRAG - WARNING - Rate limit exceeded. Retrying in 16 seconds... (Attempt 4/3) 2025-10-18 10:33:36,772 - AgenticMedicalRAG - ERROR - Rate limit exceeded after maximum retries 2025-10-18 10:34:38,589 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 10:34:39,578 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 10:34:39,933 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 10:34:39,934 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 10:34:39,935 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 10:34:39,935 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 10:34:49,250 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 10:34:49,250 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 10:34:49,250 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 10:34:49,251 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 10:34:49,251 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 10:34:49,344 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 10:34:49,368 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 10:34:49,369 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 10:34:49,714 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 10:34:49,715 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 10:34:49,715 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 10:34:49,715 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 10:34:54,920 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 10:34:54,921 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 10:34:54,921 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 10:34:54,922 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 10:34:56,315 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 10:34:56,315 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 10:34:56,316 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 10:36:39,026 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:36:41,848 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-18 10:36:41,933 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 10:36:41,934 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 10 context pages 2025-10-18 10:36:54,470 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 10:36:55,375 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 10:36:55,375 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 10:36:56,071 - AgenticMedicalRAG - INFO - Found 6 existing evaluations in GitHub 2025-10-18 10:36:56,072 - AgenticMedicalRAG - INFO - Next interaction ID will be: 7 2025-10-18 10:36:56,072 - AgenticMedicalRAG - INFO - Starting validation for interaction 7 2025-10-18 10:37:04,403 - AgenticMedicalRAG - INFO - Loading existing evaluations: 6 found 2025-10-18 10:37:04,403 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 7 2025-10-18 10:37:06,933 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 10:37:06,934 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 7 2025-10-18 10:37:06,935 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 7 2025-10-18 10:37:06,935 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 7 2025-10-18 10:37:06,935 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-18 10:37:06,935 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:42:13,431 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-18 10:42:14,692 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-18 10:42:15,063 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-18 10:42:15,064 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-18 10:42:15,064 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-18 10:42:15,065 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-18 10:42:23,398 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-18 10:42:23,399 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-18 10:42:23,399 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-18 10:42:23,400 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-18 10:42:23,400 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-18 10:42:23,512 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-18 10:42:23,536 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-18 10:42:23,537 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-18 10:42:23,863 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-18 10:42:23,864 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-18 10:42:23,864 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-18 10:42:23,865 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-18 10:42:24,797 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:42:24,818 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 10:42:29,436 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-18 10:42:29,438 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-18 10:42:29,438 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-18 10:42:29,439 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-18 10:42:30,444 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 10:42:30,445 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-18 10:42:30,445 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-18 10:42:30,480 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-18 10:42:32,663 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-18 10:42:32,760 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 10:42:32,761 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 10 context pages 2025-10-18 10:42:42,560 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-18 10:42:44,821 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-18 10:42:44,823 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-18 10:42:44,823 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 10 context pages 2025-10-18 10:42:54,615 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-18 10:42:55,468 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-18 10:42:55,469 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-18 10:42:56,550 - AgenticMedicalRAG - INFO - Found 7 existing evaluations in GitHub 2025-10-18 10:42:56,550 - AgenticMedicalRAG - INFO - Next interaction ID will be: 8 2025-10-18 10:42:56,551 - AgenticMedicalRAG - INFO - Starting validation for interaction 8 2025-10-18 10:43:08,113 - AgenticMedicalRAG - INFO - Loading existing evaluations: 7 found 2025-10-18 10:43:08,114 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 8 2025-10-18 10:43:11,784 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-18 10:43:11,785 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 8 2025-10-18 10:43:11,785 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 8 2025-10-18 10:43:11,786 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 8 2025-10-18 10:43:11,786 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-18 10:43:11,786 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-19 04:08:15,330 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-19 04:08:18,585 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-19 04:08:19,150 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-19 04:08:19,151 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-19 04:08:19,152 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-19 04:08:19,152 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-19 04:08:38,512 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-19 04:08:38,512 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-19 04:08:38,513 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-19 04:08:38,513 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-19 04:08:38,514 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-19 04:08:39,054 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-19 04:08:39,109 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-19 04:08:39,109 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-19 04:08:39,556 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-19 04:08:39,556 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-19 04:08:39,557 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-19 04:08:39,557 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-19 04:08:44,370 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-19 04:08:44,372 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-19 04:08:44,372 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-19 04:08:44,372 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-19 04:08:45,914 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-19 04:08:45,915 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-19 04:08:45,915 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-19 04:09:10,346 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-19 04:09:13,199 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-19 04:09:13,275 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-19 04:09:13,276 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 10 context pages 2025-10-19 04:09:22,096 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-19 04:09:22,947 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-19 04:09:22,947 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-19 04:09:23,666 - AgenticMedicalRAG - INFO - Found 8 existing evaluations in GitHub 2025-10-19 04:09:23,666 - AgenticMedicalRAG - INFO - Next interaction ID will be: 9 2025-10-19 04:09:23,667 - AgenticMedicalRAG - INFO - Starting validation for interaction 9 2025-10-19 04:09:24,779 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 1): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-19 04:09:25,137 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 2): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-19 04:09:25,437 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 3): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-19 04:09:25,438 - AgenticMedicalRAG - INFO - Using basic heuristic validation as fallback 2025-10-19 04:09:30,433 - AgenticMedicalRAG - INFO - Loading existing evaluations: 8 found 2025-10-19 04:09:30,435 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 9 2025-10-19 04:09:33,859 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-19 04:09:33,860 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 9 2025-10-19 04:09:33,860 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 9 2025-10-19 04:09:33,861 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 9 2025-10-19 04:09:33,861 - AgenticMedicalRAG - INFO - Validation scores - Overall: 72/100, Accuracy: 75/100, Coherence: 80/100, Relevance: 70/100 2025-10-19 04:09:33,861 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-19 04:33:21,429 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-19 04:37:18,129 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-19 04:37:19,417 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-19 04:37:19,802 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-19 04:37:19,802 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-19 04:37:19,803 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-19 04:37:19,803 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-19 04:37:29,337 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-19 04:37:29,337 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-19 04:37:29,337 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-19 04:37:29,338 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-19 04:37:29,338 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-19 04:37:29,541 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-19 04:37:29,567 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-19 04:37:29,567 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-19 04:37:30,010 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-19 04:37:30,010 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-19 04:37:30,010 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-19 04:37:30,011 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-19 04:37:35,445 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-19 04:37:35,446 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-19 04:37:35,446 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-19 04:37:35,446 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-19 04:37:37,033 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-19 04:37:37,034 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-19 04:37:37,034 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-19 05:07:05,539 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What is the role of durvalumab in stage III NSCLC ... 2025-10-19 05:07:08,849 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-19 05:07:08,919 - AgenticMedicalRAG - INFO - Enriched 5 documents with surrounding context pages 2025-10-19 05:07:08,920 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 10 context pages 2025-10-19 05:07:25,267 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-19 05:07:26,270 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-19 05:07:26,271 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-19 05:07:27,367 - AgenticMedicalRAG - INFO - Found 10 existing evaluations in GitHub 2025-10-19 05:07:27,368 - AgenticMedicalRAG - INFO - Next interaction ID will be: 11 2025-10-19 05:07:27,368 - AgenticMedicalRAG - INFO - Starting validation for interaction 11 2025-10-19 05:07:28,328 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 1): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-19 05:07:28,702 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 2): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-19 05:07:28,950 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 3): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-19 05:07:28,951 - AgenticMedicalRAG - INFO - Using basic heuristic validation as fallback 2025-10-19 05:07:30,074 - AgenticMedicalRAG - INFO - Loading existing evaluations: 10 found 2025-10-19 05:07:30,075 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 11 2025-10-19 05:07:32,822 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-19 05:07:32,822 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 11 2025-10-19 05:07:32,823 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 11 2025-10-19 05:07:32,823 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 11 2025-10-19 05:07:32,823 - AgenticMedicalRAG - INFO - Validation scores - Overall: 72/100, Accuracy: 75/100, Coherence: 80/100, Relevance: 70/100 2025-10-19 05:07:32,824 - AgenticMedicalRAG - INFO - Successfully processed user input: What is the role of durvalumab in stage III NSCLC ... 2025-10-22 10:03:06,714 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:03:11,086 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:03:11,695 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:03:11,696 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:03:11,697 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:03:11,697 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:03:31,788 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 10:03:31,789 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 10:03:31,789 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 10:03:31,789 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 10:03:31,789 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 10:03:32,368 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 10:03:32,423 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 10:03:32,423 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 10:03:32,807 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 10:03:32,808 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 10:03:32,808 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 10:03:32,808 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 10:03:37,655 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 10:03:37,656 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 10:03:37,656 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 10:03:37,656 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 10:03:39,157 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 10:03:39,158 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 10:03:39,158 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 10:10:43,624 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:10:48,563 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:10:49,061 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:10:49,061 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:10:49,062 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:10:49,063 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:16:04,521 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:16:09,156 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:16:09,607 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:16:09,608 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:16:09,609 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:16:09,609 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:16:32,514 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 10:16:32,514 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 10:16:32,515 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 10:16:32,515 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 10:16:32,515 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 10:16:33,174 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 10:16:33,200 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 10:16:33,201 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 10:16:33,597 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 10:16:33,598 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 10:16:33,598 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 10:16:33,599 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 10:16:38,948 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 10:16:38,949 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 10:16:38,949 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 10:16:38,950 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 10:16:40,440 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 10:16:40,440 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 10:16:40,441 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 10:21:42,068 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:21:43,172 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:21:43,538 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:21:43,539 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:21:43,540 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:21:43,540 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:21:55,990 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:21:57,068 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:21:57,456 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:21:57,457 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:21:57,458 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:21:57,458 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:22:06,279 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 10:22:06,280 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 10:22:06,280 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 10:22:06,280 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 10:22:06,280 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 10:22:06,373 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 10:22:06,409 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 10:22:06,410 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 10:22:06,810 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 10:22:06,810 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 10:22:06,811 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 10:22:06,811 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 10:22:12,043 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 10:22:12,045 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 10:22:12,046 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 10:22:12,046 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 10:22:13,440 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 10:22:13,440 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 10:22:13,441 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 10:29:11,365 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:29:12,540 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:29:12,960 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:29:12,961 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:29:12,962 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:29:12,962 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:29:23,178 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 10:29:23,179 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 10:29:23,179 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 10:29:23,179 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 10:29:23,179 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 10:29:23,272 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 10:29:23,293 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 10:29:23,293 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 10:29:23,753 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 10:29:23,753 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 10:29:23,754 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 10:29:23,754 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 10:29:29,889 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 10:29:29,890 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 10:29:29,891 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 10:29:29,892 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 10:29:31,618 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 10:29:31,618 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 10:29:31,618 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 10:35:41,961 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 1 (Public awareness) r... 2025-10-22 10:35:45,689 - AgenticMedicalRAG - INFO - Hybrid search returned 5 unique documents (query expansion: True) 2025-10-22 10:35:45,726 - AgenticMedicalRAG - INFO - Enriched 4 documents with surrounding context pages 2025-10-22 10:35:45,729 - AgenticMedicalRAG - INFO - Retrieved 5 documents, added 8 context pages 2025-10-22 10:35:59,259 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 10:36:00,335 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 10:36:00,335 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 10:36:03,224 - AgenticMedicalRAG - INFO - Found 30 existing evaluations in GitHub 2025-10-22 10:36:03,224 - AgenticMedicalRAG - INFO - Next interaction ID will be: 30 2025-10-22 10:36:03,225 - AgenticMedicalRAG - INFO - Starting validation for interaction 30 2025-10-22 10:36:05,129 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 1): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-22 10:36:05,803 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 2): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-22 10:36:05,999 - AgenticMedicalRAG - ERROR - Validation LLM error (attempt 3): Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-22 10:36:06,000 - AgenticMedicalRAG - INFO - Using basic heuristic validation as fallback 2025-10-22 10:36:12,393 - AgenticMedicalRAG - INFO - Loading existing evaluations: 30 found 2025-10-22 10:36:12,393 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 30 2025-10-22 10:36:18,558 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 10:36:18,559 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 31 2025-10-22 10:36:18,561 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 30 2025-10-22 10:36:18,561 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 30 2025-10-22 10:36:18,561 - AgenticMedicalRAG - INFO - Validation scores - Overall: 72/100, Accuracy: 75/100, Coherence: 80/100, Relevance: 70/100 2025-10-22 10:36:18,562 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 1 (Public awareness) r... 2025-10-22 10:48:07,927 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:48:09,082 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:48:09,445 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:48:09,446 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:48:09,447 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:48:09,447 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:48:18,123 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:48:19,106 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:48:19,409 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:48:19,410 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:48:19,411 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:48:19,411 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:48:36,099 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:48:37,034 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:48:37,391 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:48:37,392 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:48:37,393 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:48:37,393 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:48:44,029 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 10:48:44,029 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 10:48:44,030 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 10:48:44,030 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 10:48:44,030 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 10:48:44,105 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 10:48:44,118 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 10:48:44,118 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 10:48:44,345 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 10:48:44,346 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 10:48:44,346 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 10:48:44,346 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 10:48:48,345 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 10:48:48,346 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 10:48:48,346 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 10:48:48,347 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 10:48:49,563 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 10:48:49,563 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 10:48:49,563 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 10:49:00,871 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:49:01,778 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:49:02,106 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:49:02,107 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:49:02,107 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:49:02,108 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:49:08,974 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 10:49:08,974 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 10:49:08,974 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 10:49:08,974 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 10:49:08,975 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 10:49:09,054 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 10:49:09,074 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 10:49:09,075 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 10:49:09,474 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 10:49:09,475 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 10:49:09,475 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 10:49:09,476 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 10:49:20,349 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:49:21,338 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:49:21,621 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:49:21,622 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:49:21,622 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:49:21,623 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:49:45,965 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:49:46,774 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:49:47,008 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:49:47,009 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:49:47,010 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:49:47,010 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:49:57,490 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 10:49:57,491 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 10:49:57,491 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 10:49:57,491 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 10:49:57,491 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 10:49:57,561 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 10:49:57,579 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 10:49:57,579 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 10:49:57,826 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 10:49:57,826 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 10:49:57,826 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 10:49:57,827 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 10:50:01,319 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 10:50:01,319 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 10:50:01,319 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 10:50:01,320 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 10:50:02,215 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 10:50:02,216 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 10:50:02,216 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 10:56:11,483 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:56:15,496 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:56:16,132 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:56:16,132 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:56:16,133 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:56:16,134 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:56:36,006 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 10:56:36,007 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 10:56:36,007 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 10:56:36,007 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 10:56:36,007 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 10:56:36,532 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 10:56:36,582 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 10:56:36,583 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 10:56:37,042 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 10:56:37,043 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 10:56:37,044 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 10:56:37,046 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 10:56:42,979 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 10:56:42,979 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 10:56:42,979 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 10:56:42,980 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 10:56:44,822 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 10:56:44,822 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 10:56:44,822 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 10:56:55,752 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Q4. What investigations are mandated before embark... 2025-10-22 10:56:59,812 - AgenticMedicalRAG - INFO - Hybrid search returned 18 unique documents (query expansion: True) 2025-10-22 10:56:59,900 - AgenticMedicalRAG - INFO - Enriched 8 documents with surrounding context pages 2025-10-22 10:56:59,900 - AgenticMedicalRAG - INFO - Retrieved 18 documents, added 29 context pages 2025-10-22 10:57:00,584 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-22 10:57:02,585 - AgenticMedicalRAG - INFO - Processing user input (attempt 2): Q4. What investigations are mandated before embark... 2025-10-22 10:57:05,530 - AgenticMedicalRAG - INFO - Hybrid search returned 17 unique documents (query expansion: True) 2025-10-22 10:57:05,531 - AgenticMedicalRAG - INFO - Enriched 8 documents with surrounding context pages 2025-10-22 10:57:05,531 - AgenticMedicalRAG - INFO - Retrieved 17 documents, added 30 context pages 2025-10-22 10:57:05,893 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-22 10:57:07,895 - AgenticMedicalRAG - INFO - Processing user input (attempt 3): Q4. What investigations are mandated before embark... 2025-10-22 10:57:09,140 - AgenticMedicalRAG - INFO - Hybrid search returned 18 unique documents (query expansion: True) 2025-10-22 10:57:09,141 - AgenticMedicalRAG - INFO - Enriched 8 documents with surrounding context pages 2025-10-22 10:57:09,141 - AgenticMedicalRAG - INFO - Retrieved 18 documents, added 29 context pages 2025-10-22 10:57:09,503 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-22 10:57:11,504 - AgenticMedicalRAG - INFO - Processing user input (attempt 4): Q4. What investigations are mandated before embark... 2025-10-22 10:57:12,621 - AgenticMedicalRAG - INFO - Hybrid search returned 17 unique documents (query expansion: True) 2025-10-22 10:57:12,622 - AgenticMedicalRAG - INFO - Enriched 8 documents with surrounding context pages 2025-10-22 10:57:12,622 - AgenticMedicalRAG - INFO - Retrieved 17 documents, added 30 context pages 2025-10-22 10:57:12,976 - AgenticMedicalRAG - ERROR - OpenAI API error: Error code: 413 - {'error': {'code': 'tokens_limit_reached', 'message': 'Request body too large for gpt-4o model. Max size: 8000 tokens.', 'details': 'Request body too large for gpt-4o model. Max size: 8000 tokens.'}} 2025-10-22 10:58:00,583 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 10:58:01,222 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 10:58:01,456 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 10:58:01,457 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 10:58:01,457 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 10:58:01,457 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 10:58:07,818 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 10:58:07,819 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 10:58:07,819 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 10:58:07,819 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 10:58:07,819 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 10:58:07,896 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 10:58:07,916 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 10:58:07,917 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 10:58:08,219 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 10:58:08,220 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 10:58:08,220 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 10:58:08,220 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 10:58:12,068 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 10:58:12,069 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 10:58:12,069 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 10:58:12,069 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 10:58:13,040 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 10:58:13,040 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 10:58:13,040 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 10:58:45,764 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What investigations are mandated before embarking ... 2025-10-22 10:58:48,779 - AgenticMedicalRAG - INFO - Hybrid search returned 23 unique documents (query expansion: True) 2025-10-22 10:58:48,905 - AgenticMedicalRAG - INFO - Enriched 8 documents with surrounding context pages 2025-10-22 10:58:48,905 - AgenticMedicalRAG - INFO - Retrieved 23 documents, added 30 context pages 2025-10-22 10:59:09,663 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 10:59:10,679 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 10:59:10,679 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 10:59:12,225 - AgenticMedicalRAG - INFO - Found 31 existing evaluations in GitHub 2025-10-22 10:59:12,226 - AgenticMedicalRAG - INFO - Next interaction ID will be: 31 2025-10-22 10:59:12,227 - AgenticMedicalRAG - INFO - Starting validation for interaction 31 2025-10-22 10:59:30,275 - AgenticMedicalRAG - INFO - Loading existing evaluations: 31 found 2025-10-22 10:59:30,275 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 31 2025-10-22 10:59:35,965 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 10:59:35,966 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 32 2025-10-22 10:59:35,967 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 31 2025-10-22 10:59:35,967 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 31 2025-10-22 10:59:35,967 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 10:59:35,967 - AgenticMedicalRAG - INFO - Successfully processed user input: What investigations are mandated before embarking ... 2025-10-22 10:59:57,420 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Who should receive curative-intent treatment in ea... 2025-10-22 11:00:00,204 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-22 11:00:00,205 - AgenticMedicalRAG - INFO - Enriched 7 documents with surrounding context pages 2025-10-22 11:00:00,205 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 28 context pages 2025-10-22 11:00:21,612 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 11:00:22,040 - AgenticMedicalRAG - INFO - No existing evaluation file found, starting with ID 1 2025-10-22 11:00:22,041 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-22 11:00:40,000 - AgenticMedicalRAG - INFO - Loading existing evaluations: 0 found 2025-10-22 11:00:40,000 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 1 2025-10-22 11:00:41,769 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 11:00:41,769 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 1 2025-10-22 11:00:41,770 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 1 2025-10-22 11:00:41,770 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 1 2025-10-22 11:00:41,770 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 11:00:41,770 - AgenticMedicalRAG - INFO - Successfully processed user input: Who should receive curative-intent treatment in ea... 2025-10-22 11:05:47,060 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 11:05:47,930 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 11:05:48,308 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 11:05:48,309 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 11:05:48,309 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 11:05:48,310 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 11:05:55,863 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 11:05:55,864 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 11:05:55,864 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 11:05:55,864 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 11:05:55,864 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 11:05:55,939 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 11:05:55,952 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 11:05:55,952 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 11:05:56,269 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 11:05:56,269 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 11:05:56,269 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 11:05:56,270 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 11:06:00,389 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 11:06:00,390 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 11:06:00,390 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 11:06:00,391 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 11:06:01,507 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 11:06:01,510 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 11:06:01,510 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 11:06:14,525 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 11:06:15,522 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 11:06:15,836 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 11:06:15,837 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 11:06:15,838 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 11:06:15,838 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 11:06:24,821 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 11:06:25,765 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 11:06:26,045 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 11:06:26,047 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 11:06:26,048 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 11:06:26,049 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 11:06:32,133 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 11:06:32,134 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 11:06:32,134 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 11:06:32,134 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 11:06:32,134 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 11:06:32,201 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 11:06:32,215 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 11:06:32,215 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 11:06:32,454 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 11:06:32,455 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 11:06:32,455 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 11:06:32,455 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 11:06:35,885 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 11:06:35,885 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 11:06:35,885 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 11:06:35,886 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 11:06:36,862 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 11:06:36,862 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 11:06:36,863 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 11:09:49,726 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 11:10:44,004 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 11:10:55,981 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 11:11:02,620 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 11:20:58,119 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 11:20:58,774 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 11:20:59,011 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 11:20:59,012 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 11:20:59,012 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 11:20:59,013 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 11:21:05,146 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 11:21:05,146 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 11:21:05,147 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 11:21:05,147 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 11:21:05,147 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 11:21:05,149 - AgenticMedicalRAG - INFO - ℹ️ No vector store found; attempting creation from cached chunks... 2025-10-22 11:32:41,211 - AgenticMedicalRAG - INFO - ✅ Vector store created from cached chunks 2025-10-22 11:32:41,212 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 11:32:41,226 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 11:32:41,226 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 11:32:41,794 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 11:32:41,795 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 11:32:41,796 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 11:32:41,801 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 11:32:45,108 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 11:32:45,109 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 11:32:45,109 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 11:32:45,110 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 11:32:46,009 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 11:32:46,009 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 11:32:46,010 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 11:34:08,734 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Who should receive curative-intent treatment in ea... 2025-10-22 11:34:11,492 - AgenticMedicalRAG - INFO - Hybrid search returned 22 unique documents (query expansion: True) 2025-10-22 11:34:11,576 - AgenticMedicalRAG - INFO - Enriched 7 documents with surrounding context pages 2025-10-22 11:34:11,576 - AgenticMedicalRAG - INFO - Retrieved 22 documents, added 23 context pages 2025-10-22 11:34:26,674 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 11:34:27,533 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 11:34:27,533 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 11:34:28,058 - AgenticMedicalRAG - INFO - Found 1 existing evaluations in GitHub 2025-10-22 11:34:28,059 - AgenticMedicalRAG - INFO - Next interaction ID will be: 2 2025-10-22 11:34:28,059 - AgenticMedicalRAG - INFO - Starting validation for interaction 2 2025-10-22 11:34:46,258 - AgenticMedicalRAG - INFO - Loading existing evaluations: 1 found 2025-10-22 11:34:46,258 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 2 2025-10-22 11:34:48,482 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 11:34:48,483 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 2 2025-10-22 11:34:48,483 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 2 2025-10-22 11:34:48,483 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 2 2025-10-22 11:34:48,483 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 11:34:48,484 - AgenticMedicalRAG - INFO - Successfully processed user input: Who should receive curative-intent treatment in ea... 2025-10-22 15:49:32,266 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 15:49:36,572 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 15:49:37,160 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 15:49:37,160 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 15:49:37,161 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 15:49:37,162 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 15:49:59,184 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 15:49:59,184 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 15:49:59,184 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 15:49:59,184 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 15:49:59,185 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 15:49:59,696 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 15:49:59,723 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 15:49:59,723 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 15:50:00,145 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 15:50:00,145 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 15:50:00,146 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 15:50:00,146 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 15:50:05,349 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 15:50:05,349 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 15:50:05,349 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 15:50:05,350 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 15:50:06,957 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 15:50:06,957 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 15:50:06,958 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 15:51:35,608 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Which symptoms/signs should awareness campaigns hi... 2025-10-22 15:51:39,571 - AgenticMedicalRAG - INFO - Hybrid search returned 19 unique documents (query expansion: True) 2025-10-22 15:51:39,630 - AgenticMedicalRAG - INFO - Enriched 8 documents with surrounding context pages 2025-10-22 15:51:39,631 - AgenticMedicalRAG - INFO - Retrieved 19 documents, added 32 context pages 2025-10-22 15:51:55,382 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 15:51:56,222 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 15:51:56,223 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 15:51:56,901 - AgenticMedicalRAG - INFO - Found 6 existing evaluations in GitHub 2025-10-22 15:51:56,901 - AgenticMedicalRAG - INFO - Next interaction ID will be: 7 2025-10-22 15:51:56,902 - AgenticMedicalRAG - INFO - Starting validation for interaction 7 2025-10-22 15:52:11,964 - AgenticMedicalRAG - INFO - Loading existing evaluations: 6 found 2025-10-22 15:52:11,964 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 7 2025-10-22 15:52:16,018 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 15:52:16,020 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 7 2025-10-22 15:52:16,020 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 7 2025-10-22 15:52:16,021 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 7 2025-10-22 15:52:16,021 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 15:52:16,021 - AgenticMedicalRAG - INFO - Successfully processed user input: Which symptoms/signs should awareness campaigns hi... 2025-10-22 15:52:37,520 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 3 (Lung cancer clinica... 2025-10-22 15:52:39,342 - AgenticMedicalRAG - INFO - Hybrid search returned 14 unique documents (query expansion: True) 2025-10-22 15:52:39,344 - AgenticMedicalRAG - INFO - Enriched 8 documents with surrounding context pages 2025-10-22 15:52:39,344 - AgenticMedicalRAG - INFO - Retrieved 14 documents, added 31 context pages 2025-10-22 15:52:44,931 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 15:52:45,757 - AgenticMedicalRAG - INFO - Found 7 existing evaluations in GitHub 2025-10-22 15:52:45,757 - AgenticMedicalRAG - INFO - Next interaction ID will be: 8 2025-10-22 15:52:45,758 - AgenticMedicalRAG - INFO - Starting validation for interaction 8 2025-10-22 15:52:56,889 - AgenticMedicalRAG - INFO - Loading existing evaluations: 7 found 2025-10-22 15:52:56,890 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 8 2025-10-22 15:53:01,108 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 15:53:01,109 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 8 2025-10-22 15:53:01,110 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 8 2025-10-22 15:53:01,110 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 8 2025-10-22 15:53:01,111 - AgenticMedicalRAG - INFO - Validation scores - Overall: 99/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-22 15:53:01,111 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 3 (Lung cancer clinica... 2025-10-22 15:53:20,928 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What investigations are mandated before embarking ... 2025-10-22 15:53:22,005 - AgenticMedicalRAG - INFO - Hybrid search returned 23 unique documents (query expansion: True) 2025-10-22 15:53:22,107 - AgenticMedicalRAG - INFO - Enriched 8 documents with surrounding context pages 2025-10-22 15:53:22,107 - AgenticMedicalRAG - INFO - Retrieved 23 documents, added 30 context pages 2025-10-22 15:53:28,801 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 15:53:29,506 - AgenticMedicalRAG - INFO - Found 8 existing evaluations in GitHub 2025-10-22 15:53:29,507 - AgenticMedicalRAG - INFO - Next interaction ID will be: 9 2025-10-22 15:53:29,507 - AgenticMedicalRAG - INFO - Starting validation for interaction 9 2025-10-22 15:53:42,831 - AgenticMedicalRAG - INFO - Loading existing evaluations: 8 found 2025-10-22 15:53:42,831 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 9 2025-10-22 15:53:46,919 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 15:53:46,920 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 9 2025-10-22 15:53:46,921 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 9 2025-10-22 15:53:46,921 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 9 2025-10-22 15:53:46,922 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 15:53:46,922 - AgenticMedicalRAG - INFO - Successfully processed user input: What investigations are mandated before embarking ... 2025-10-22 15:54:23,147 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Who should receive curative-intent treatment in ea... 2025-10-22 15:54:24,503 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-22 15:54:24,504 - AgenticMedicalRAG - INFO - Enriched 7 documents with surrounding context pages 2025-10-22 15:54:24,504 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 28 context pages 2025-10-22 15:54:31,782 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 15:54:33,075 - AgenticMedicalRAG - INFO - Found 9 existing evaluations in GitHub 2025-10-22 15:54:33,076 - AgenticMedicalRAG - INFO - Next interaction ID will be: 10 2025-10-22 15:54:33,076 - AgenticMedicalRAG - INFO - Starting validation for interaction 10 2025-10-22 15:54:45,909 - AgenticMedicalRAG - INFO - Loading existing evaluations: 9 found 2025-10-22 15:54:45,910 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 10 2025-10-22 15:54:50,588 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 15:54:50,589 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 10 2025-10-22 15:54:50,590 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 10 2025-10-22 15:54:50,590 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 10 2025-10-22 15:54:50,590 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 15:54:50,591 - AgenticMedicalRAG - INFO - Successfully processed user input: Who should receive curative-intent treatment in ea... 2025-10-22 16:00:48,634 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:00:49,301 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:00:49,567 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:00:49,568 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:00:49,568 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:00:49,569 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:00:55,545 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 16:00:55,547 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 16:00:55,547 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 16:00:55,547 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 16:00:55,548 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 16:00:55,635 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 16:00:55,653 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 16:00:55,654 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 16:00:55,897 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 16:00:55,897 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 16:00:55,897 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 16:00:55,898 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 16:00:59,224 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 16:00:59,225 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 16:00:59,225 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 16:00:59,225 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 16:01:00,267 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 16:01:00,267 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 16:01:00,267 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 16:02:03,045 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Q1. What does Quality Statement 1 (Public awarenes... 2025-10-22 16:02:06,202 - AgenticMedicalRAG - INFO - Hybrid search returned 16 unique documents (query expansion: True) 2025-10-22 16:02:06,240 - AgenticMedicalRAG - INFO - Enriched 6 documents with surrounding context pages 2025-10-22 16:02:06,241 - AgenticMedicalRAG - INFO - Retrieved 16 documents, added 18 context pages 2025-10-22 16:02:14,254 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 16:02:15,057 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 16:02:15,058 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 16:02:15,990 - AgenticMedicalRAG - INFO - Found 10 existing evaluations in GitHub 2025-10-22 16:02:15,991 - AgenticMedicalRAG - INFO - Next interaction ID will be: 11 2025-10-22 16:02:15,991 - AgenticMedicalRAG - INFO - Starting validation for interaction 11 2025-10-22 16:02:26,228 - AgenticMedicalRAG - INFO - Loading existing evaluations: 10 found 2025-10-22 16:02:26,228 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 11 2025-10-22 16:02:30,858 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 16:02:30,858 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 11 2025-10-22 16:02:30,859 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 11 2025-10-22 16:02:30,859 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 11 2025-10-22 16:02:30,859 - AgenticMedicalRAG - INFO - Validation scores - Overall: 98/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-22 16:02:30,860 - AgenticMedicalRAG - INFO - Successfully processed user input: Q1. What does Quality Statement 1 (Public awarenes... 2025-10-22 16:06:26,829 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:06:27,499 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:06:27,721 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:06:27,722 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:06:27,723 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:06:27,723 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:06:35,431 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 16:06:35,431 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 16:06:35,432 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 16:06:35,432 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 16:06:35,432 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 16:06:35,520 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 16:06:35,544 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 16:06:35,544 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 16:06:35,924 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 16:06:35,925 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 16:06:35,925 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 16:06:35,925 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 16:06:41,044 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 16:06:41,045 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 16:06:41,046 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 16:06:41,046 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 16:06:42,395 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 16:06:42,395 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 16:06:42,396 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 16:06:47,061 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Q1. What does Quality Statement 1 (Public awarenes... 2025-10-22 16:06:49,521 - AgenticMedicalRAG - INFO - Hybrid search returned 16 unique documents (query expansion: True) 2025-10-22 16:06:49,564 - AgenticMedicalRAG - INFO - Enriched 6 documents with surrounding context pages 2025-10-22 16:06:49,565 - AgenticMedicalRAG - INFO - Retrieved 16 documents, added 18 context pages 2025-10-22 16:06:55,904 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 16:06:56,518 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 16:06:56,518 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 16:06:57,859 - AgenticMedicalRAG - INFO - Found 11 existing evaluations in GitHub 2025-10-22 16:06:57,859 - AgenticMedicalRAG - INFO - Next interaction ID will be: 12 2025-10-22 16:06:57,860 - AgenticMedicalRAG - INFO - Starting validation for interaction 12 2025-10-22 16:07:05,062 - AgenticMedicalRAG - INFO - Loading existing evaluations: 11 found 2025-10-22 16:07:05,062 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 12 2025-10-22 16:07:10,451 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 16:07:10,453 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 12 2025-10-22 16:07:10,455 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 12 2025-10-22 16:07:10,455 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 12 2025-10-22 16:07:10,455 - AgenticMedicalRAG - INFO - Validation scores - Overall: 100/100, Accuracy: 100/100, Coherence: 100/100, Relevance: 100/100 2025-10-22 16:07:10,455 - AgenticMedicalRAG - INFO - Successfully processed user input: Q1. What does Quality Statement 1 (Public awarenes... 2025-10-22 16:10:41,858 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:10:42,514 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:10:42,728 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:10:42,729 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:10:42,730 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:10:42,730 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:10:48,639 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 16:10:48,639 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 16:10:48,640 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 16:10:48,640 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 16:10:48,640 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 16:10:48,711 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 16:10:48,730 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 16:10:48,731 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 16:10:48,955 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 16:10:48,956 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 16:10:48,956 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 16:10:48,956 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 16:10:52,321 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 16:10:52,322 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 16:10:52,322 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 16:10:52,322 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 16:10:53,172 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 16:10:53,172 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 16:10:53,173 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 16:12:55,359 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:12:55,973 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:12:56,189 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:12:56,190 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:12:56,190 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:12:56,191 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:13:02,057 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 16:13:02,058 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 16:13:02,059 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 16:13:02,059 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 16:13:02,059 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 16:13:02,191 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 16:13:02,208 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 16:13:02,208 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 16:13:02,415 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 16:13:02,416 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 16:13:02,416 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 16:13:02,416 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 16:13:06,158 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 16:13:06,158 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 16:13:06,159 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 16:13:06,159 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 16:13:07,533 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 16:13:07,536 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 16:13:07,536 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 16:13:35,192 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 1 (Public awareness) r... 2025-10-22 16:13:37,847 - AgenticMedicalRAG - INFO - Hybrid search returned 14 unique documents (query expansion: True) 2025-10-22 16:13:37,874 - AgenticMedicalRAG - INFO - Enriched 8 documents with surrounding context pages 2025-10-22 16:13:37,875 - AgenticMedicalRAG - INFO - Retrieved 14 documents, added 29 context pages 2025-10-22 16:13:47,197 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 16:13:48,106 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 16:13:48,107 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 16:13:49,438 - AgenticMedicalRAG - INFO - Found 12 existing evaluations in GitHub 2025-10-22 16:13:49,438 - AgenticMedicalRAG - INFO - Next interaction ID will be: 13 2025-10-22 16:13:49,439 - AgenticMedicalRAG - INFO - Starting validation for interaction 13 2025-10-22 16:13:57,659 - AgenticMedicalRAG - INFO - Loading existing evaluations: 12 found 2025-10-22 16:13:57,659 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 13 2025-10-22 16:14:02,620 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 16:14:02,620 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 13 2025-10-22 16:14:02,621 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 13 2025-10-22 16:14:02,622 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 13 2025-10-22 16:14:02,623 - AgenticMedicalRAG - INFO - Validation scores - Overall: 100/100, Accuracy: 100/100, Coherence: 100/100, Relevance: 100/100 2025-10-22 16:14:02,623 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 1 (Public awareness) r... 2025-10-22 16:17:19,699 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:17:20,345 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:17:20,608 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:17:20,609 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:17:20,610 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:17:20,610 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:17:26,769 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 16:17:26,770 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 16:17:26,770 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 16:17:26,771 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 16:17:26,771 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 16:17:26,848 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 16:17:26,861 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 16:17:26,861 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 16:17:27,088 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 16:17:27,089 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 16:17:27,089 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 16:17:27,089 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 16:17:30,363 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 16:17:30,364 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 16:17:30,364 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 16:17:30,364 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 16:17:31,282 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 16:17:31,283 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 16:17:31,283 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 16:17:51,050 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:17:51,662 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:17:51,882 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:17:51,882 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:17:51,883 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:17:51,883 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:17:57,503 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 16:17:57,503 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 16:17:57,504 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 16:17:57,504 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 16:17:57,504 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 16:17:57,627 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 16:17:57,654 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 16:17:57,654 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 16:17:57,986 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 16:17:57,986 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 16:17:57,987 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 16:17:57,987 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 16:18:02,715 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 16:18:02,716 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 16:18:02,716 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 16:18:02,716 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 16:18:03,974 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 16:18:03,974 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 16:18:03,974 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 16:18:24,380 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 1 (Public awareness) r... 2025-10-22 16:18:26,127 - AgenticMedicalRAG - INFO - Hybrid search returned 16 unique documents (query expansion: True) 2025-10-22 16:18:26,174 - AgenticMedicalRAG - INFO - Enriched 6 documents with surrounding context pages 2025-10-22 16:18:26,175 - AgenticMedicalRAG - INFO - Retrieved 16 documents, added 18 context pages 2025-10-22 16:18:37,263 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 16:18:38,063 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 16:18:38,064 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 16:18:38,877 - AgenticMedicalRAG - INFO - Found 13 existing evaluations in GitHub 2025-10-22 16:18:38,878 - AgenticMedicalRAG - INFO - Next interaction ID will be: 14 2025-10-22 16:18:38,879 - AgenticMedicalRAG - INFO - Starting validation for interaction 14 2025-10-22 16:18:51,049 - AgenticMedicalRAG - INFO - Loading existing evaluations: 13 found 2025-10-22 16:18:51,050 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 14 2025-10-22 16:18:58,121 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 16:18:58,122 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 14 2025-10-22 16:18:58,123 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 14 2025-10-22 16:18:58,123 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 14 2025-10-22 16:18:58,123 - AgenticMedicalRAG - INFO - Validation scores - Overall: 97/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-22 16:18:58,124 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 1 (Public awareness) r... 2025-10-22 16:21:59,186 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:22:00,073 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:22:00,341 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:22:00,342 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:22:00,343 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:22:00,343 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:22:34,955 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:22:35,563 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:22:35,790 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:22:35,791 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:22:35,791 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:22:35,792 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:22:42,536 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 16:22:42,537 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 16:22:42,537 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 16:22:42,537 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 16:22:42,538 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 16:22:42,633 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 16:22:42,655 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 16:22:42,655 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 16:22:42,976 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 16:22:42,976 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 16:22:42,976 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 16:22:42,977 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 16:22:47,849 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 16:22:47,850 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 16:22:47,850 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 16:22:47,851 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 16:22:49,085 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 16:22:49,085 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 16:22:49,086 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 16:23:12,744 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 1 (Public awareness) r... 2025-10-22 16:23:16,388 - AgenticMedicalRAG - INFO - Hybrid search returned 16 unique documents (query expansion: True) 2025-10-22 16:23:16,430 - AgenticMedicalRAG - INFO - Enriched 6 documents with surrounding context pages 2025-10-22 16:23:16,430 - AgenticMedicalRAG - INFO - Retrieved 16 documents, added 18 context pages 2025-10-22 16:23:24,846 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 16:23:25,630 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 16:23:25,630 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 16:23:26,656 - AgenticMedicalRAG - INFO - Found 14 existing evaluations in GitHub 2025-10-22 16:23:26,656 - AgenticMedicalRAG - INFO - Next interaction ID will be: 15 2025-10-22 16:23:26,657 - AgenticMedicalRAG - INFO - Starting validation for interaction 15 2025-10-22 16:23:39,928 - AgenticMedicalRAG - INFO - Loading existing evaluations: 14 found 2025-10-22 16:23:39,929 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 15 2025-10-22 16:23:45,443 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 16:23:45,444 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 15 2025-10-22 16:23:45,445 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 15 2025-10-22 16:23:45,445 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 15 2025-10-22 16:23:45,445 - AgenticMedicalRAG - INFO - Validation scores - Overall: 100/100, Accuracy: 100/100, Coherence: 100/100, Relevance: 100/100 2025-10-22 16:23:45,445 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 1 (Public awareness) r... 2025-10-22 16:24:43,168 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Which symptoms/signs should awareness campaigns hi... 2025-10-22 16:24:44,939 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-22 16:24:44,940 - AgenticMedicalRAG - INFO - Enriched 7 documents with surrounding context pages 2025-10-22 16:24:44,940 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 28 context pages 2025-10-22 16:24:49,169 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 16:24:50,022 - AgenticMedicalRAG - INFO - Found 15 existing evaluations in GitHub 2025-10-22 16:24:50,022 - AgenticMedicalRAG - INFO - Next interaction ID will be: 16 2025-10-22 16:24:50,023 - AgenticMedicalRAG - INFO - Starting validation for interaction 16 2025-10-22 16:24:58,190 - AgenticMedicalRAG - INFO - Loading existing evaluations: 15 found 2025-10-22 16:24:58,190 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 16 2025-10-22 16:25:04,660 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 16:25:04,661 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 16 2025-10-22 16:25:04,662 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 16 2025-10-22 16:25:04,663 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 16 2025-10-22 16:25:04,663 - AgenticMedicalRAG - INFO - Validation scores - Overall: 99/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-22 16:25:04,663 - AgenticMedicalRAG - INFO - Successfully processed user input: Which symptoms/signs should awareness campaigns hi... 2025-10-22 16:28:07,659 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 3 (Lung cancer clinica... 2025-10-22 16:28:17,082 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 16:28:17,515 - AgenticMedicalRAG - INFO - No existing evaluation file found, starting with ID 1 2025-10-22 16:28:17,515 - AgenticMedicalRAG - INFO - Starting validation for interaction 1 2025-10-22 16:28:26,500 - AgenticMedicalRAG - INFO - Loading existing evaluations: 0 found 2025-10-22 16:28:26,502 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 1 2025-10-22 16:28:27,894 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 16:28:27,894 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 1 2025-10-22 16:28:27,895 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 1 2025-10-22 16:28:27,895 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 1 2025-10-22 16:28:27,895 - AgenticMedicalRAG - INFO - Validation scores - Overall: 99/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-22 16:28:27,895 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 3 (Lung cancer clinica... 2025-10-22 16:42:23,126 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:42:23,827 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:42:24,138 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:42:24,139 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:42:24,140 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:42:24,140 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:42:30,785 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 16:42:30,785 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 16:42:30,786 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 16:42:30,786 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 16:42:30,786 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 16:42:30,839 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 16:42:30,851 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 16:42:30,852 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 16:42:31,063 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 16:42:31,063 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 16:42:31,064 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 16:42:31,064 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 16:42:34,307 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 16:42:34,308 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 16:42:34,308 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 16:42:34,308 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 16:42:35,131 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 16:42:35,131 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 16:42:35,131 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 16:50:53,515 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:50:54,160 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:50:54,387 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:50:54,387 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:50:54,388 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:50:54,388 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:51:00,710 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 16:51:00,710 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 16:51:00,710 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 16:51:00,711 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 16:51:00,711 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 16:51:00,813 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 16:51:00,927 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 16:51:00,931 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 16:51:01,311 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 16:51:01,312 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 16:51:01,312 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 16:51:01,312 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 16:51:06,016 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 16:51:06,017 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 16:51:06,017 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 16:51:06,017 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 16:51:07,394 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 16:51:07,394 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 16:51:07,394 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 16:51:35,488 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 3 (Lung cancer clinica... 2025-10-22 16:51:37,277 - AgenticMedicalRAG - INFO - Hybrid search returned 14 unique documents (query expansion: True) 2025-10-22 16:51:37,329 - AgenticMedicalRAG - INFO - Enriched 7 documents with surrounding context pages 2025-10-22 16:51:37,330 - AgenticMedicalRAG - INFO - Retrieved 14 documents, added 26 context pages 2025-10-22 16:51:46,929 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 16:51:47,732 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 16:51:47,732 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 16:51:48,706 - AgenticMedicalRAG - INFO - Found 1 existing evaluations in GitHub 2025-10-22 16:51:48,706 - AgenticMedicalRAG - INFO - Next interaction ID will be: 2 2025-10-22 16:51:48,707 - AgenticMedicalRAG - INFO - Starting validation for interaction 2 2025-10-22 16:52:00,367 - AgenticMedicalRAG - INFO - Loading existing evaluations: 1 found 2025-10-22 16:52:00,367 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 2 2025-10-22 16:52:02,424 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 16:52:02,424 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 2 2025-10-22 16:52:02,425 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 2 2025-10-22 16:52:02,425 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 2 2025-10-22 16:52:02,425 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 16:52:02,426 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 3 (Lung cancer clinica... 2025-10-22 16:56:15,286 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 16:56:16,046 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 16:56:16,293 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 16:56:16,295 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 16:56:16,295 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 16:56:16,295 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 16:56:22,497 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 16:56:22,506 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 16:56:22,506 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 16:56:22,507 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 16:56:22,507 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 16:56:22,573 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 16:56:22,588 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 16:56:22,589 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 16:56:22,818 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 16:56:22,818 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 16:56:22,819 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 16:56:22,819 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 16:56:26,079 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 16:56:26,079 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 16:56:26,079 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 16:56:26,079 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 16:56:26,919 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 16:56:26,919 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 16:56:26,919 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 17:00:11,772 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 17:00:12,372 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 17:00:12,588 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 17:00:12,589 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 17:00:12,589 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 17:00:12,589 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 17:00:19,639 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 17:00:19,639 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 17:00:19,639 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 17:00:19,639 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 17:00:19,640 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 17:00:19,834 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 17:00:19,852 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 17:00:19,853 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 17:00:20,078 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 17:00:20,078 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 17:00:20,079 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 17:00:20,079 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 17:00:23,303 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 17:00:23,304 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 17:00:23,304 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 17:00:23,304 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 17:00:24,268 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 17:00:24,268 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 17:00:24,268 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 17:00:59,034 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 3 (Lung cancer clinica... 2025-10-22 17:01:01,859 - AgenticMedicalRAG - INFO - Hybrid search returned 14 unique documents (query expansion: True) 2025-10-22 17:01:01,920 - AgenticMedicalRAG - INFO - Enriched 7 documents with surrounding context pages 2025-10-22 17:01:01,920 - AgenticMedicalRAG - INFO - Retrieved 14 documents, added 26 context pages 2025-10-22 17:01:07,879 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 17:01:08,666 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 17:01:08,667 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 17:01:09,532 - AgenticMedicalRAG - INFO - Found 2 existing evaluations in GitHub 2025-10-22 17:01:09,533 - AgenticMedicalRAG - INFO - Next interaction ID will be: 3 2025-10-22 17:01:09,533 - AgenticMedicalRAG - INFO - Starting validation for interaction 3 2025-10-22 17:01:23,042 - AgenticMedicalRAG - INFO - Loading existing evaluations: 2 found 2025-10-22 17:01:23,042 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 3 2025-10-22 17:01:25,658 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 17:01:25,659 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 3 2025-10-22 17:01:25,659 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 3 2025-10-22 17:01:25,660 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 3 2025-10-22 17:01:25,660 - AgenticMedicalRAG - INFO - Validation scores - Overall: 97/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-22 17:01:25,660 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 3 (Lung cancer clinica... 2025-10-22 17:01:46,818 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What investigations are mandated before embarking ... 2025-10-22 17:01:49,884 - AgenticMedicalRAG - INFO - Hybrid search returned 5 unique documents (query expansion: True) 2025-10-22 17:01:49,885 - AgenticMedicalRAG - INFO - Enriched 4 documents with surrounding context pages 2025-10-22 17:01:49,885 - AgenticMedicalRAG - INFO - Retrieved 5 documents, added 16 context pages 2025-10-22 17:01:57,817 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 17:01:58,935 - AgenticMedicalRAG - INFO - Found 3 existing evaluations in GitHub 2025-10-22 17:01:58,936 - AgenticMedicalRAG - INFO - Next interaction ID will be: 4 2025-10-22 17:01:58,936 - AgenticMedicalRAG - INFO - Starting validation for interaction 4 2025-10-22 17:02:11,669 - AgenticMedicalRAG - INFO - Loading existing evaluations: 3 found 2025-10-22 17:02:11,673 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 4 2025-10-22 17:02:14,694 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 17:02:14,695 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 4 2025-10-22 17:02:14,695 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 4 2025-10-22 17:02:14,695 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 4 2025-10-22 17:02:14,696 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 17:02:14,696 - AgenticMedicalRAG - INFO - Successfully processed user input: What investigations are mandated before embarking ... 2025-10-22 17:03:47,336 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Who should receive curative-intent treatment in ea... 2025-10-22 17:03:49,139 - AgenticMedicalRAG - INFO - Hybrid search returned 8 unique documents (query expansion: True) 2025-10-22 17:03:49,140 - AgenticMedicalRAG - INFO - Enriched 7 documents with surrounding context pages 2025-10-22 17:03:49,141 - AgenticMedicalRAG - INFO - Retrieved 8 documents, added 28 context pages 2025-10-22 17:03:59,199 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 17:03:59,943 - AgenticMedicalRAG - INFO - Found 4 existing evaluations in GitHub 2025-10-22 17:03:59,943 - AgenticMedicalRAG - INFO - Next interaction ID will be: 5 2025-10-22 17:03:59,944 - AgenticMedicalRAG - INFO - Starting validation for interaction 5 2025-10-22 17:04:14,619 - AgenticMedicalRAG - INFO - Loading existing evaluations: 4 found 2025-10-22 17:04:14,620 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 5 2025-10-22 17:04:17,913 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 17:04:17,914 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 5 2025-10-22 17:04:17,915 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 5 2025-10-22 17:04:17,915 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 5 2025-10-22 17:04:17,915 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 17:04:17,916 - AgenticMedicalRAG - INFO - Successfully processed user input: Who should receive curative-intent treatment in ea... 2025-10-22 17:04:52,182 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Q1. What does Quality Statement 1 (Public awarenes... 2025-10-22 17:05:01,432 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 17:05:02,087 - AgenticMedicalRAG - INFO - Found 5 existing evaluations in GitHub 2025-10-22 17:05:02,087 - AgenticMedicalRAG - INFO - Next interaction ID will be: 6 2025-10-22 17:05:02,088 - AgenticMedicalRAG - INFO - Starting validation for interaction 6 2025-10-22 17:05:14,615 - AgenticMedicalRAG - INFO - Loading existing evaluations: 5 found 2025-10-22 17:05:14,616 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 6 2025-10-22 17:05:25,708 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 17:05:25,709 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 6 2025-10-22 17:05:25,710 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 6 2025-10-22 17:05:25,710 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 6 2025-10-22 17:05:25,710 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 17:05:25,710 - AgenticMedicalRAG - INFO - Successfully processed user input: Q1. What does Quality Statement 1 (Public awarenes... 2025-10-22 17:08:02,733 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 17:08:03,545 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 17:08:03,823 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 17:08:03,824 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 17:08:03,824 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 17:08:03,825 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 17:08:11,302 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 17:08:11,303 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 17:08:11,303 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 17:08:11,303 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 17:08:11,303 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 17:08:11,395 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 17:08:11,427 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 17:08:11,428 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 17:08:11,733 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 17:08:11,733 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 17:08:11,733 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 17:08:11,734 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 17:08:16,399 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 17:08:16,400 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 17:08:16,400 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 17:08:16,400 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 17:08:17,666 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 17:08:17,666 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 17:08:17,666 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 17:08:32,783 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 1 (Public awareness) r... 2025-10-22 17:08:35,376 - AgenticMedicalRAG - INFO - Hybrid search returned 16 unique documents (query expansion: True) 2025-10-22 17:08:35,441 - AgenticMedicalRAG - INFO - Enriched 6 documents with surrounding context pages 2025-10-22 17:08:35,442 - AgenticMedicalRAG - INFO - Retrieved 16 documents, added 18 context pages 2025-10-22 17:08:43,935 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 17:08:44,673 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 17:08:44,674 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 17:08:45,779 - AgenticMedicalRAG - INFO - Found 6 existing evaluations in GitHub 2025-10-22 17:08:45,780 - AgenticMedicalRAG - INFO - Next interaction ID will be: 7 2025-10-22 17:08:45,780 - AgenticMedicalRAG - INFO - Starting validation for interaction 7 2025-10-22 17:09:09,511 - AgenticMedicalRAG - INFO - Loading existing evaluations: 6 found 2025-10-22 17:09:09,512 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 7 2025-10-22 17:09:12,774 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 17:09:12,775 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 7 2025-10-22 17:09:12,776 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 7 2025-10-22 17:09:12,776 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 7 2025-10-22 17:09:12,776 - AgenticMedicalRAG - INFO - Validation scores - Overall: 98/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-22 17:09:12,777 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 1 (Public awareness) r... 2025-10-22 17:11:22,642 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 17:11:23,421 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 17:11:23,660 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 17:11:23,661 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 17:11:23,662 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 17:11:23,662 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 17:11:29,967 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 17:11:29,967 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 17:11:29,968 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 17:11:29,968 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 17:11:29,968 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 17:11:30,100 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 17:11:30,113 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 17:11:30,113 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 17:11:30,342 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 17:11:30,343 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 17:11:30,343 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 17:11:30,344 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 17:11:33,894 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 17:11:33,894 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 17:11:33,894 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 17:11:33,895 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 17:11:34,871 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 17:11:34,871 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 17:11:34,871 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 17:11:52,108 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 17:11:52,704 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 17:11:52,920 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 17:11:52,921 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 17:11:52,921 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 17:11:52,921 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 17:11:58,348 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 17:11:58,350 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 17:11:58,350 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 17:11:58,351 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 17:11:58,351 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 17:11:58,447 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 17:11:58,459 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 17:11:58,459 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 17:11:58,673 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 17:11:58,673 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 17:11:58,674 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 17:11:58,674 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 17:12:01,992 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 17:12:01,993 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 17:12:01,993 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 17:12:01,994 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 17:12:02,850 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 17:12:02,850 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 17:12:02,850 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 17:12:24,825 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 1 (Public awareness) r... 2025-10-22 17:12:27,007 - AgenticMedicalRAG - INFO - Hybrid search returned 16 unique documents (query expansion: True) 2025-10-22 17:12:27,088 - AgenticMedicalRAG - INFO - Enriched 6 documents with surrounding context pages 2025-10-22 17:12:27,088 - AgenticMedicalRAG - INFO - Retrieved 16 documents, added 14 context pages 2025-10-22 17:12:34,134 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 17:12:34,929 - AgenticMedicalRAG - INFO - Medical answer validator initialized successfully 2025-10-22 17:12:34,929 - AgenticMedicalRAG - INFO - GitHub storage initialized for MoazEldsouky/cloud-data-store 2025-10-22 17:12:35,638 - AgenticMedicalRAG - INFO - Found 7 existing evaluations in GitHub 2025-10-22 17:12:35,639 - AgenticMedicalRAG - INFO - Next interaction ID will be: 8 2025-10-22 17:12:35,639 - AgenticMedicalRAG - INFO - Starting validation for interaction 8 2025-10-22 17:12:46,694 - AgenticMedicalRAG - INFO - Loading existing evaluations: 7 found 2025-10-22 17:12:46,695 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 8 2025-10-22 17:12:51,194 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 17:12:51,194 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 8 2025-10-22 17:12:51,195 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 8 2025-10-22 17:12:51,195 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 8 2025-10-22 17:12:51,195 - AgenticMedicalRAG - INFO - Validation scores - Overall: 99/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-22 17:12:51,196 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 1 (Public awareness) r... 2025-10-22 17:13:18,116 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Q2. Which symptoms/signs should awareness campaign... 2025-10-22 17:13:20,678 - AgenticMedicalRAG - INFO - Hybrid search returned 9 unique documents (query expansion: True) 2025-10-22 17:13:20,679 - AgenticMedicalRAG - INFO - Enriched 7 documents with surrounding context pages 2025-10-22 17:13:20,679 - AgenticMedicalRAG - INFO - Retrieved 9 documents, added 28 context pages 2025-10-22 17:13:25,243 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 17:13:26,529 - AgenticMedicalRAG - INFO - Found 8 existing evaluations in GitHub 2025-10-22 17:13:26,530 - AgenticMedicalRAG - INFO - Next interaction ID will be: 9 2025-10-22 17:13:26,530 - AgenticMedicalRAG - INFO - Starting validation for interaction 9 2025-10-22 17:13:35,751 - AgenticMedicalRAG - INFO - Loading existing evaluations: 8 found 2025-10-22 17:13:35,751 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 9 2025-10-22 17:13:40,972 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 17:13:40,973 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 9 2025-10-22 17:13:40,974 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 9 2025-10-22 17:13:40,974 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 9 2025-10-22 17:13:40,974 - AgenticMedicalRAG - INFO - Validation scores - Overall: 97/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-22 17:13:40,974 - AgenticMedicalRAG - INFO - Successfully processed user input: Q2. Which symptoms/signs should awareness campaign... 2025-10-22 17:14:48,352 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What does Quality Statement 3 (Lung cancer clinica... 2025-10-22 17:14:49,906 - AgenticMedicalRAG - INFO - Hybrid search returned 13 unique documents (query expansion: True) 2025-10-22 17:14:49,907 - AgenticMedicalRAG - INFO - Enriched 8 documents with surrounding context pages 2025-10-22 17:14:49,908 - AgenticMedicalRAG - INFO - Retrieved 13 documents, added 32 context pages 2025-10-22 17:14:55,862 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 17:14:56,660 - AgenticMedicalRAG - INFO - Found 9 existing evaluations in GitHub 2025-10-22 17:14:56,660 - AgenticMedicalRAG - INFO - Next interaction ID will be: 10 2025-10-22 17:14:56,661 - AgenticMedicalRAG - INFO - Starting validation for interaction 10 2025-10-22 17:15:08,752 - AgenticMedicalRAG - INFO - Loading existing evaluations: 9 found 2025-10-22 17:15:08,752 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 10 2025-10-22 17:15:13,393 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 17:15:13,394 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 10 2025-10-22 17:15:13,395 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 10 2025-10-22 17:15:13,395 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 10 2025-10-22 17:15:13,395 - AgenticMedicalRAG - INFO - Validation scores - Overall: 97/100, Accuracy: 100/100, Coherence: 95/100, Relevance: 100/100 2025-10-22 17:15:13,396 - AgenticMedicalRAG - INFO - Successfully processed user input: What does Quality Statement 3 (Lung cancer clinica... 2025-10-22 17:15:50,650 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): What investigations are mandated before embarking ... 2025-10-22 17:15:52,728 - AgenticMedicalRAG - INFO - Hybrid search returned 8 unique documents (query expansion: True) 2025-10-22 17:15:52,729 - AgenticMedicalRAG - INFO - Enriched 7 documents with surrounding context pages 2025-10-22 17:15:52,729 - AgenticMedicalRAG - INFO - Retrieved 8 documents, added 28 context pages 2025-10-22 17:16:04,446 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 17:16:05,300 - AgenticMedicalRAG - INFO - Found 10 existing evaluations in GitHub 2025-10-22 17:16:05,301 - AgenticMedicalRAG - INFO - Next interaction ID will be: 11 2025-10-22 17:16:05,301 - AgenticMedicalRAG - INFO - Starting validation for interaction 11 2025-10-22 17:16:15,326 - AgenticMedicalRAG - INFO - Loading existing evaluations: 10 found 2025-10-22 17:16:15,327 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 11 2025-10-22 17:16:20,504 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 17:16:20,505 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 11 2025-10-22 17:16:20,506 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 11 2025-10-22 17:16:20,506 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 11 2025-10-22 17:16:20,506 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 17:16:20,506 - AgenticMedicalRAG - INFO - Successfully processed user input: What investigations are mandated before embarking ... 2025-10-22 17:16:27,295 - AgenticMedicalRAG - INFO - Processing user input (attempt 1): Who should receive curative-intent treatment in ea... 2025-10-22 17:16:29,447 - AgenticMedicalRAG - INFO - Hybrid search returned 10 unique documents (query expansion: True) 2025-10-22 17:16:29,448 - AgenticMedicalRAG - INFO - Enriched 7 documents with surrounding context pages 2025-10-22 17:16:29,448 - AgenticMedicalRAG - INFO - Retrieved 10 documents, added 28 context pages 2025-10-22 17:16:39,551 - AgenticMedicalRAG - INFO - Performing background validation for streaming response... 2025-10-22 17:16:40,517 - AgenticMedicalRAG - INFO - Found 11 existing evaluations in GitHub 2025-10-22 17:16:40,518 - AgenticMedicalRAG - INFO - Next interaction ID will be: 12 2025-10-22 17:16:40,518 - AgenticMedicalRAG - INFO - Starting validation for interaction 12 2025-10-22 17:16:55,833 - AgenticMedicalRAG - INFO - Loading existing evaluations: 11 found 2025-10-22 17:16:55,833 - AgenticMedicalRAG - INFO - Adding new evaluation with ID: 12 2025-10-22 17:17:02,396 - AgenticMedicalRAG - INFO - Successfully uploaded medical_data/evaluation_results.json to GitHub 2025-10-22 17:17:02,397 - AgenticMedicalRAG - INFO - Successfully saved evaluation. Total evaluations now: 12 2025-10-22 17:17:02,397 - AgenticMedicalRAG - INFO - Evaluation saved to GitHub with ID: 12 2025-10-22 17:17:02,398 - AgenticMedicalRAG - INFO - Background validation completed - Interaction ID: 12 2025-10-22 17:17:02,398 - AgenticMedicalRAG - INFO - Validation scores - Overall: 90/100, Accuracy: 95/100, Coherence: 90/100, Relevance: 88/100 2025-10-22 17:17:02,398 - AgenticMedicalRAG - INFO - Successfully processed user input: Who should receive curative-intent treatment in ea... 2025-10-22 17:18:32,794 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 17:18:33,621 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 17:18:33,896 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 17:18:33,897 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 17:18:33,898 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 17:18:33,898 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 17:18:42,637 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 17:18:43,332 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 17:18:43,548 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 17:18:43,548 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 17:18:43,549 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 17:18:43,549 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 17:18:51,130 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 17:18:51,701 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 17:18:51,911 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 17:18:51,911 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 17:18:51,912 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 17:18:51,912 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 17:18:57,796 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 17:18:57,796 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 17:18:57,797 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 17:18:57,797 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 17:18:57,797 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 17:18:57,874 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 17:18:57,893 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 17:18:57,893 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 17:18:58,126 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 17:18:58,126 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 17:18:58,126 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 17:18:58,127 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 17:19:01,436 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 17:19:01,438 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 17:19:01,438 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 17:19:01,438 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 17:19:02,287 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 17:19:02,288 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 17:19:02,288 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 17:21:13,488 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 17:21:14,486 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 17:21:14,778 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 17:21:14,779 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 17:21:14,780 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 17:21:14,780 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 17:21:21,622 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 17:21:21,622 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 17:21:21,622 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 17:21:21,623 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 17:21:21,623 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 17:21:21,702 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 17:21:21,724 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 17:21:21,724 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 17:21:22,075 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 17:21:22,076 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 17:21:22,076 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 17:21:22,076 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 17:21:26,242 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 17:21:26,243 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 17:21:26,243 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 17:21:26,243 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 17:21:27,249 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 17:21:27,250 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 17:21:27,250 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully 2025-10-22 17:32:21,727 - AgenticMedicalRAG - INFO - Configuration validation completed 2025-10-22 17:32:22,898 - AgenticMedicalRAG - INFO - Loaded 877 learned synonyms from cache 2025-10-22 17:32:23,297 - AgenticMedicalRAG - INFO - 🚀 Starting background initialization... 2025-10-22 17:32:23,298 - AgenticMedicalRAG - INFO - 🔄 Background Init: Starting background initialization... (0%) 2025-10-22 17:32:23,299 - AgenticMedicalRAG - INFO - 🔄 Background Init: Loading embedding model... (10%) 2025-10-22 17:32:23,299 - AgenticMedicalRAG - INFO - Loading embedding model (first time)... 2025-10-22 17:32:38,012 - AgenticMedicalRAG - INFO - Embedding model loaded successfully 2025-10-22 17:32:38,013 - AgenticMedicalRAG - INFO - 🔄 Background Init: Embedding model loaded successfully (40%) 2025-10-22 17:32:38,013 - AgenticMedicalRAG - INFO - 🔄 Background Init: Initializing retrievers and loading chunks... (50%) 2025-10-22 17:32:38,014 - AgenticMedicalRAG - INFO - 🔄 Initializing retrievers (first time use)... 2025-10-22 17:32:38,014 - AgenticMedicalRAG - INFO - 🔄 Processing new data and updating vector store if needed... 2025-10-22 17:32:38,096 - AgenticMedicalRAG - INFO - 📦 Loading chunks cache for BM25 retriever... 2025-10-22 17:32:38,115 - AgenticMedicalRAG - INFO - 🔍 Creating vector retriever... 2025-10-22 17:32:38,116 - AgenticMedicalRAG - INFO - 📝 Creating BM25 retriever... 2025-10-22 17:32:38,517 - AgenticMedicalRAG - INFO - 🔄 Creating hybrid retriever... 2025-10-22 17:32:38,517 - AgenticMedicalRAG - INFO - ✅ Retrievers initialized successfully. 2025-10-22 17:32:38,518 - AgenticMedicalRAG - INFO - 🔄 Background Init: Retrievers initialized successfully (90%) 2025-10-22 17:32:38,518 - AgenticMedicalRAG - INFO - 🔄 Background Init: Learning medical terminology from corpus... (92%) 2025-10-22 17:32:44,048 - AgenticMedicalRAG - INFO - Saved learned terms to cache 2025-10-22 17:32:44,049 - AgenticMedicalRAG - INFO - Learned medical terminology from 1000 documents 2025-10-22 17:32:44,050 - AgenticMedicalRAG - INFO - 🔄 Background Init: Warming up LLM... (97%) 2025-10-22 17:32:44,050 - AgenticMedicalRAG - INFO - Initializing LLM (first time)... 2025-10-22 17:32:45,430 - AgenticMedicalRAG - INFO - LLM initialized successfully 2025-10-22 17:32:45,430 - AgenticMedicalRAG - INFO - 🔄 Background Init: All components initialized successfully (100%) 2025-10-22 17:32:45,430 - AgenticMedicalRAG - INFO - ✅ Background initialization completed successfully