Bootcamp: Solisoma(week8 assesment)
This commit is contained in:
@@ -13,9 +13,17 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 11,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Working directory changed to: c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# Imports\n",
|
||||
"import sys\n",
|
||||
@@ -34,7 +42,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"execution_count": 12,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -160,7 +168,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"execution_count": 13,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -299,20 +307,23 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"[2025-10-30 12:15:06 +0100] [Agents] [INFO] HTTP Request: GET https://api.gradio.app/pkg-version \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 12:15:06 +0100] [Agents] [INFO] HTTP Request: GET https://api.gradio.app/pkg-version \"HTTP/1.1 200 OK\"\n",
|
||||
"* Running on local URL: http://127.0.0.1:7862\n",
|
||||
"[2025-10-30 12:15:07 +0100] [Agents] [INFO] HTTP Request: GET http://127.0.0.1:7862/gradio_api/startup-events \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 12:15:07 +0100] [Agents] [INFO] HTTP Request: GET http://127.0.0.1:7862/gradio_api/startup-events \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 12:15:07 +0100] [Agents] [INFO] HTTP Request: HEAD http://127.0.0.1:7862/ \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 12:15:07 +0100] [Agents] [INFO] HTTP Request: HEAD http://127.0.0.1:7862/ \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 13:56:37 +0100] [Agents] [INFO] HTTP Request: GET https://api.gradio.app/pkg-version \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 13:56:37 +0100] [Agents] [INFO] HTTP Request: GET https://api.gradio.app/pkg-version \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 13:56:37 +0100] [Agents] [INFO] HTTP Request: GET https://api.gradio.app/pkg-version \"HTTP/1.1 200 OK\"\n",
|
||||
"* Running on local URL: http://127.0.0.1:7863\n",
|
||||
"[2025-10-30 13:56:37 +0100] [Agents] [INFO] HTTP Request: GET http://127.0.0.1:7863/gradio_api/startup-events \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 13:56:37 +0100] [Agents] [INFO] HTTP Request: GET http://127.0.0.1:7863/gradio_api/startup-events \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 13:56:37 +0100] [Agents] [INFO] HTTP Request: GET http://127.0.0.1:7863/gradio_api/startup-events \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 13:56:37 +0100] [Agents] [INFO] HTTP Request: HEAD http://127.0.0.1:7863/ \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 13:56:37 +0100] [Agents] [INFO] HTTP Request: HEAD http://127.0.0.1:7863/ \"HTTP/1.1 200 OK\"\n",
|
||||
"[2025-10-30 13:56:37 +0100] [Agents] [INFO] HTTP Request: HEAD http://127.0.0.1:7863/ \"HTTP/1.1 200 OK\"\n",
|
||||
"* To create a public link, set `share=True` in `launch()`.\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<div><iframe src=\"http://127.0.0.1:7862/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
||||
"<div><iframe src=\"http://127.0.0.1:7863/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
||||
],
|
||||
"text/plain": [
|
||||
"<IPython.core.display.HTML object>"
|
||||
@@ -325,51 +336,62 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"[2025-10-30 12:15:10 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 12:15:10 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 12:15:10 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 12:15:10 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 12:15:10 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 12:15:10 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 12:15:10 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 12:15:10 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 12:15:10 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 12:15:11 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 12:15:17 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n"
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 13:56:38 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 13:56:41 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -401,27 +423,183 @@
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\gradio\\utils.py\", line 915, in wrapper\n",
|
||||
" response = f(*args, **kwargs)\n",
|
||||
" ^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Local\\Temp\\ipykernel_560\\1866679463.py\", line 82, in load_initial\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Local\\Temp\\ipykernel_16260\\1866679463.py\", line 82, in load_initial\n",
|
||||
" framework = self.get_agent_framework()\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Local\\Temp\\ipykernel_560\\1866679463.py\", line 12, in get_agent_framework\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Local\\Temp\\ipykernel_16260\\1866679463.py\", line 12, in get_agent_framework\n",
|
||||
" self.agent_framework.init_agents_as_needed()\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\deal_agent_framework.py\", line 54, in init_agents_as_needed\n",
|
||||
" self.log(\"Agent Framework is ready\")\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\deal_agent_framework.py\", line 53, in init_agents_as_needed\n",
|
||||
" self.planner = PlanningAgent(self.collection)\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\agents\\planning_agent.py\", line 21, in __init__\n",
|
||||
" self.ensemble = EnsembleAgent(collection)\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\agents\\ensemble_agent.py\", line 23, in __init__\n",
|
||||
" self.random_forest = RandomForestAgent()\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\agents\\random_forest_agent.py\", line 24, in __init__\n",
|
||||
" self.model = joblib.load('random_forest_model.pkl')\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\agents\\ensemble_agent.py\", line 22, in __init__\n",
|
||||
" self.frontier = FrontierAgent(collection)\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\agents\\frontier_agent.py\", line 40, in __init__\n",
|
||||
" self.model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\sentence_transformers\\SentenceTransformer.py\", line 367, in __init__\n",
|
||||
" self.to(device)\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\torch\\nn\\modules\\module.py\", line 1369, in to\n",
|
||||
" return self._apply(convert)\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\torch\\nn\\modules\\module.py\", line 928, in _apply\n",
|
||||
" module._apply(fn)\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\torch\\nn\\modules\\module.py\", line 928, in _apply\n",
|
||||
" module._apply(fn)\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\torch\\nn\\modules\\module.py\", line 928, in _apply\n",
|
||||
" module._apply(fn)\n",
|
||||
" [Previous line repeated 1 more time]\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\torch\\nn\\modules\\module.py\", line 955, in _apply\n",
|
||||
" param_applied = fn(param)\n",
|
||||
" ^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\torch\\nn\\modules\\module.py\", line 1362, in convert\n",
|
||||
" raise NotImplementedError(\n",
|
||||
"NotImplementedError: 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.\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"[2025-10-30 13:56:49 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:49 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:49 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 13:56:49 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is ready\u001b[0m\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Exception in thread Thread-18 (worker):\n",
|
||||
"Traceback (most recent call last):\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Roaming\\uv\\python\\cpython-3.12.12-windows-x86_64-none\\Lib\\threading.py\", line 1075, in _bootstrap_inner\n",
|
||||
" self.run()\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\ipykernel\\ipkernel.py\", line 772, in run_closure\n",
|
||||
" _threading_Thread_run(self)\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Roaming\\uv\\python\\cpython-3.12.12-windows-x86_64-none\\Lib\\threading.py\", line 1012, in run\n",
|
||||
" self._target(*self._args, **self._kwargs)\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Local\\Temp\\ipykernel_16260\\1866679463.py\", line 60, in worker\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Local\\Temp\\ipykernel_16260\\1866679463.py\", line 50, in do_run\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\deal_agent_framework.py\", line 74, in run\n",
|
||||
" self.init_agents_as_needed()\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\deal_agent_framework.py\", line 53, in init_agents_as_needed\n",
|
||||
" self.planner = PlanningAgent(self.collection)\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\agents\\planning_agent.py\", line 21, in __init__\n",
|
||||
" self.ensemble = EnsembleAgent(collection)\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\agents\\ensemble_agent.py\", line 24, in __init__\n",
|
||||
" self.model = joblib.load('ensemble_model.pkl')\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\joblib\\numpy_pickle.py\", line 735, in load\n",
|
||||
" with open(filename, \"rb\") as f:\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^\n",
|
||||
"FileNotFoundError: [Errno 2] No such file or directory: 'random_forest_model.pkl'\n"
|
||||
"FileNotFoundError: [Errno 2] No such file or directory: 'ensemble_model.pkl'\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[44m\u001b[37m[Agent Framework] Initializing Agent Framework\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[40m\u001b[32m[Planning Agent] Planning Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:24 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[36m[Scanner Agent] Scanner Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[33m[Ensemble Agent] Initializing Ensemble Agent\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is initializing - connecting to modal\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[31m[Specialist Agent] Specialist Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Initializing Frontier Agent\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is set up with DeepSeek\u001b[0m\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 18:27:25 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] \u001b[40m\u001b[34m[Frontier Agent] Frontier Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is initializing\u001b[0m\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] Use pytorch device_name: cpu\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 18:27:31 +0100] [Agents] [INFO] Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2\n",
|
||||
"[2025-10-30 18:27:37 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:37 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:37 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is ready\u001b[0m\n",
|
||||
"[2025-10-30 18:27:37 +0100] [Agents] [INFO] \u001b[40m\u001b[35m[Random Forest Agent] Random Forest Agent is ready\u001b[0m\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Exception in thread Thread-23 (worker):\n",
|
||||
"Traceback (most recent call last):\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Roaming\\uv\\python\\cpython-3.12.12-windows-x86_64-none\\Lib\\threading.py\", line 1075, in _bootstrap_inner\n",
|
||||
" self.run()\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\ipykernel\\ipkernel.py\", line 772, in run_closure\n",
|
||||
" _threading_Thread_run(self)\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Roaming\\uv\\python\\cpython-3.12.12-windows-x86_64-none\\Lib\\threading.py\", line 1012, in run\n",
|
||||
" self._target(*self._args, **self._kwargs)\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Local\\Temp\\ipykernel_16260\\1866679463.py\", line 60, in worker\n",
|
||||
" File \"C:\\Users\\hp\\AppData\\Local\\Temp\\ipykernel_16260\\1866679463.py\", line 50, in do_run\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\deal_agent_framework.py\", line 74, in run\n",
|
||||
" self.init_agents_as_needed()\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\deal_agent_framework.py\", line 53, in init_agents_as_needed\n",
|
||||
" self.planner = PlanningAgent(self.collection)\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\agents\\planning_agent.py\", line 21, in __init__\n",
|
||||
" self.ensemble = EnsembleAgent(collection)\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\week8\\community_contributions\\solisoma\\../..\\agents\\ensemble_agent.py\", line 24, in __init__\n",
|
||||
" self.model = joblib.load('ensemble_model.pkl')\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
|
||||
" File \"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\joblib\\numpy_pickle.py\", line 735, in load\n",
|
||||
" with open(filename, \"rb\") as f:\n",
|
||||
" ^^^^^^^^^^^^^^^^^^^^\n",
|
||||
"FileNotFoundError: [Errno 2] No such file or directory: 'ensemble_model.pkl'\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user