Romain Fayoux
commited on
Commit
·
b831214
1
Parent(s):
7bac906
import export of remote traces to local
Browse files- eval/eval_notebook.ipynb +10 -141
- eval/traces_import_export.ipynb +69 -0
eval/eval_notebook.ipynb
CHANGED
|
@@ -2,39 +2,28 @@
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
-
"execution_count":
|
| 6 |
"metadata": {},
|
| 7 |
-
"outputs": [
|
| 8 |
-
{
|
| 9 |
-
"name": "stderr",
|
| 10 |
-
"output_type": "stream",
|
| 11 |
-
"text": [
|
| 12 |
-
"/Users/romainfayoux/Documents/Programmation/Final_Assignment_Template/.venv/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
| 13 |
-
" from .autonotebook import tqdm as notebook_tqdm\n"
|
| 14 |
-
]
|
| 15 |
-
}
|
| 16 |
-
],
|
| 17 |
"source": [
|
| 18 |
"import pandas as pd\n",
|
| 19 |
"import json\n",
|
| 20 |
"from phoenix.client import Client\n",
|
| 21 |
"\n",
|
| 22 |
"# Params for local or remote Phoenix instance\n",
|
| 23 |
-
"local =
|
| 24 |
"if local is True:\n",
|
| 25 |
" client = Client(base_url=\"http://localhost:6006\")\n",
|
| 26 |
-
" project_name = \"default\"\n",
|
| 27 |
"else:\n",
|
| 28 |
" client = Client() # will use environment variables for configuration\n",
|
| 29 |
-
" project_name = \"final_assignment_template\"\n",
|
| 30 |
"\n",
|
| 31 |
"# Load the existing spans\n",
|
| 32 |
-
"spans_df = client.spans.get_spans_dataframe(project_name
|
| 33 |
]
|
| 34 |
},
|
| 35 |
{
|
| 36 |
"cell_type": "code",
|
| 37 |
-
"execution_count":
|
| 38 |
"metadata": {},
|
| 39 |
"outputs": [],
|
| 40 |
"source": [
|
|
@@ -44,7 +33,7 @@
|
|
| 44 |
},
|
| 45 |
{
|
| 46 |
"cell_type": "code",
|
| 47 |
-
"execution_count":
|
| 48 |
"metadata": {},
|
| 49 |
"outputs": [],
|
| 50 |
"source": [
|
|
@@ -54,14 +43,14 @@
|
|
| 54 |
},
|
| 55 |
{
|
| 56 |
"cell_type": "code",
|
| 57 |
-
"execution_count":
|
| 58 |
"metadata": {},
|
| 59 |
"outputs": [
|
| 60 |
{
|
| 61 |
"name": "stderr",
|
| 62 |
"output_type": "stream",
|
| 63 |
"text": [
|
| 64 |
-
"/var/folders/pj/v1zrqj1d10x9_1rd2njh_r_r0000gn/T/
|
| 65 |
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
| 66 |
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
| 67 |
"\n",
|
|
@@ -78,7 +67,7 @@
|
|
| 78 |
},
|
| 79 |
{
|
| 80 |
"cell_type": "code",
|
| 81 |
-
"execution_count":
|
| 82 |
"metadata": {},
|
| 83 |
"outputs": [
|
| 84 |
{
|
|
@@ -201,127 +190,7 @@
|
|
| 201 |
"print(category_albums_page)\n",
|
| 202 |
"</code>\n",
|
| 203 |
"Calling tools:\n",
|
| 204 |
-
"[{'id': 'call_8' 'type': 'function' 'function': {'name': 'python_interpreter' 'arguments': 'category_albums_page = wikipedia_search(query=\"Category:Mercedes Sosa albums\")\\nprint(category_albums_page)'}}] cannot be normalized to number str.\n"
|
| 205 |
-
"Evaluating right as a string.\n",
|
| 206 |
-
"Evaluating I still need to solve the task I was given:\n",
|
| 207 |
-
"```\n",
|
| 208 |
-
"In the video https://www.youtube.com/watch?v=L1vXCYZAYYM, what is the highest number of bird species to be on camera simultaneously?\n",
|
| 209 |
-
"```\n",
|
| 210 |
-
"\n",
|
| 211 |
-
"Here are the facts I know and my new/updated plan of action to solve the task:\n",
|
| 212 |
-
"```\n",
|
| 213 |
-
"## 1. Updated facts survey\n",
|
| 214 |
-
"### 1.1. Facts given in the task\n",
|
| 215 |
-
"- The task is to find the highest number of bird species simultaneously on camera in the video: `https://www.youtube.com/watch?v=L1vXCYZAYYM`.\n",
|
| 216 |
-
"\n",
|
| 217 |
-
"### 1.2. Facts that we have learned\n",
|
| 218 |
-
"- Direct access to the YouTube video URL via `visit_webpage` is currently failing due to a `NameResolutionError` for `www.youtube.com`. This means the video content cannot be directly observed by the agent.\n",
|
| 219 |
-
"- The YouTube video title is \"Penguin Chicks Stand Up To Giant Petrel...With The Help of a ...\".\n",
|
| 220 |
-
"- Initial web search results consistently mention three distinct bird types involved in the scene: \"Emperor Penguin\" (chicks), \"Adelie Penguin\" (an adult), and \"Giant Petrel.\"\n",
|
| 221 |
-
"- Descriptions imply these three are simultaneously present during the confrontation, e.g., an Adelie penguin \"fearlessly puts himself between the chicks and the petrel.\"\n",
|
| 222 |
-
"- A WatchMojo page mentioning the video URL as a tag did not provide content specific to the bird species count within the video.\n",
|
| 223 |
-
"- A direct `wikipedia_search` for \"Giant Petrel species\" yielded no results.\n",
|
| 224 |
-
"\n",
|
| 225 |
-
"### 1.3. Facts still to look up\n",
|
| 226 |
-
"- Clarification on \"Giant Petrel\" to determine if it refers to one or multiple distinct species in this context (e.g., Southern vs. Northern Giant Petrel) for an accurate species count.\n",
|
| 227 |
-
"\n",
|
| 228 |
-
"### 1.4. Facts still to derive\n",
|
| 229 |
-
"- The highest number of *distinct bird species* visible on camera *at the same time* within the video, based on external descriptions or summaries and clarification of \"Giant Petrel.\"\n",
|
| 230 |
-
"\n",
|
| 231 |
-
"## 2. Plan\n",
|
| 232 |
-
"### 2. 1. Perform a `wikipedia_search` for \"Giant Petrel\" to determine if it refers to a single species or a genus with multiple species commonly referred to as \"Giant Petrel.\"\n",
|
| 233 |
-
"### 2. 2. Based on the gathered information (Emperor Penguin, Adelie Penguin, and the clarified status of Giant Petrel), calculate the total number of distinct bird species that are explicitly stated or implied to be on camera simultaneously.\n",
|
| 234 |
-
"### 2. 3. Provide the final answer.\n",
|
| 235 |
-
"``` as a number.\n",
|
| 236 |
-
"String I still need to solve the task I was given:\n",
|
| 237 |
-
"```\n",
|
| 238 |
-
"In the video https://www.youtube.com/watch?v=L1vXCYZAYYM what is the highest number of bird species to be on camera simultaneously?\n",
|
| 239 |
-
"```\n",
|
| 240 |
-
"\n",
|
| 241 |
-
"Here are the facts I know and my new/updated plan of action to solve the task:\n",
|
| 242 |
-
"```\n",
|
| 243 |
-
"## 1. Updated facts survey\n",
|
| 244 |
-
"### 1.1. Facts given in the task\n",
|
| 245 |
-
"- The task is to find the highest number of bird species simultaneously on camera in the video: `https://www.youtube.com/watch?v=L1vXCYZAYYM`.\n",
|
| 246 |
-
"\n",
|
| 247 |
-
"### 1.2. Facts that we have learned\n",
|
| 248 |
-
"- Direct access to the YouTube video URL via `visit_webpage` is currently failing due to a `NameResolutionError` for `www.youtube.com`. This means the video content cannot be directly observed by the agent.\n",
|
| 249 |
-
"- The YouTube video title is \"Penguin Chicks Stand Up To Giant Petrel...With The Help of a ...\".\n",
|
| 250 |
-
"- Initial web search results consistently mention three distinct bird types involved in the scene: \"Emperor Penguin\" (chicks) \"Adelie Penguin\" (an adult) and \"Giant Petrel.\"\n",
|
| 251 |
-
"- Descriptions imply these three are simultaneously present during the confrontation e.g. an Adelie penguin \"fearlessly puts himself between the chicks and the petrel.\"\n",
|
| 252 |
-
"- A WatchMojo page mentioning the video URL as a tag did not provide content specific to the bird species count within the video.\n",
|
| 253 |
-
"- A direct `wikipedia_search` for \"Giant Petrel species\" yielded no results.\n",
|
| 254 |
-
"\n",
|
| 255 |
-
"### 1.3. Facts still to look up\n",
|
| 256 |
-
"- Clarification on \"Giant Petrel\" to determine if it refers to one or multiple distinct species in this context (e.g. Southern vs. Northern Giant Petrel) for an accurate species count.\n",
|
| 257 |
-
"\n",
|
| 258 |
-
"### 1.4. Facts still to derive\n",
|
| 259 |
-
"- The highest number of *distinct bird species* visible on camera *at the same time* within the video based on external descriptions or summaries and clarification of \"Giant Petrel.\"\n",
|
| 260 |
-
"\n",
|
| 261 |
-
"## 2. Plan\n",
|
| 262 |
-
"### 2. 1. Perform a `wikipedia_search` for \"Giant Petrel\" to determine if it refers to a single species or a genus with multiple species commonly referred to as \"Giant Petrel.\"\n",
|
| 263 |
-
"### 2. 2. Based on the gathered information (Emperor Penguin Adelie Penguin and the clarified status of Giant Petrel) calculate the total number of distinct bird species that are explicitly stated or implied to be on camera simultaneously.\n",
|
| 264 |
-
"### 2. 3. Provide the final answer.\n",
|
| 265 |
-
"``` cannot be normalized to number str.\n",
|
| 266 |
-
"Evaluating Despite attempts to directly access Wikipedia and Discogs pages, I encountered 403 Forbidden errors, preventing full webpage content retrieval. Therefore, I have to rely on the information available in the search result snippets and summaries from English Wikipedia (as requested by the task).\n",
|
| 267 |
-
"\n",
|
| 268 |
-
"Based on the available information:\n",
|
| 269 |
-
"\n",
|
| 270 |
-
"From the \"Awards\" section of the Mercedes Sosa Wikipedia summary and additional web search results, the following studio albums can be identified with their publication years between 2000 and 2009 (inclusive):\n",
|
| 271 |
-
"\n",
|
| 272 |
-
"1. **Acústico** (2003): It won a Latin Grammy in 2003, indicating a publication year in or around 2003. This falls within the specified period.\n",
|
| 273 |
-
"2. **Corazón Libre** (2006): It won a Latin Grammy in 2006, indicating a publication year in or around 2006. This falls within the specified period.\n",
|
| 274 |
-
"3. **Cantora, un Viaje Íntimo** (2009): The Wikipedia snippet for \"Cantora, un Viaje Íntimo\" explicitly states it was \"released on 2009\". This double album includes \"Cantora 1,\" which also won a Latin Grammy in 2009. This clearly falls within the specified period and counts as one studio album.\n",
|
| 275 |
-
"\n",
|
| 276 |
-
"The album \"Misa Criolla\" won a Latin Grammy in 2000, but the Wikipedia summary also notes \"Sosa participated in a 1999 production of Ariel Ramírez's Misa Criolla.\" Latin Grammys typically award releases from the *previous* calendar year, making a 1999 release highly probable. Therefore, it is not definitively published between 2000 and 2009 and is excluded.\n",
|
| 277 |
-
"\n",
|
| 278 |
-
"Based on the verifiable information from the provided Wikipedia excerpts, Mercedes Sosa published **3** studio albums between 2000 and 2009 (included). as a number.Evaluating I am unable to access the chess position image from the provided URL (https://agents-course-unit4-scoring.hf.space/files/cca530fc-4052-43b2-b130-b30968d8aa44) due to a 404 error. Without the image, I cannot determine the chess position and therefore cannot provide the correct next move. as a string.\n",
|
| 279 |
-
"\n",
|
| 280 |
-
"String Despite attempts to directly access Wikipedia and Discogs pages I encountered 403 Forbidden errors preventing full webpage content retrieval. Therefore I have to rely on the information available in the search result snippets and summaries from English Wikipedia (as requested by the task).\n",
|
| 281 |
-
"\n",
|
| 282 |
-
"Based on the available information:\n",
|
| 283 |
-
"\n",
|
| 284 |
-
"From the \"Awards\" section of the Mercedes Sosa Wikipedia summary and additional web search results the following studio albums can be identified with their publication years between 2000 and 2009 (inclusive):\n",
|
| 285 |
-
"\n",
|
| 286 |
-
"1. **Acústico** (2003): It won a Latin Grammy in 2003 indicating a publication year in or around 2003. This falls within the specified period.\n",
|
| 287 |
-
"2. **Corazón Libre** (2006): It won a Latin Grammy in 2006 indicating a publication year in or around 2006. This falls within the specified period.\n",
|
| 288 |
-
"3. **Cantora un Viaje Íntimo** (2009): The Wikipedia snippet for \"Cantora un Viaje Íntimo\" explicitly states it was \"released on 2009\". This double album includes \"Cantora 1\" which also won a Latin Grammy in 2009. This clearly falls within the specified period and counts as one studio album.\n",
|
| 289 |
-
"\n",
|
| 290 |
-
"The album \"Misa Criolla\" won a Latin Grammy in 2000 but the Wikipedia summary also notes \"Sosa participated in a 1999 production of Ariel Ramírez's Misa Criolla.\" Latin Grammys typically award releases from the *previous* calendar year making a 1999 release highly probable. Therefore it is not definitively published between 2000 and 2009 and is excluded.\n",
|
| 291 |
-
"\n",
|
| 292 |
-
"Based on the verifiable information from the provided Wikipedia excerpts Mercedes Sosa published **3** studio albums between 2000 and 2009 (included). cannot be normalized to number str.\n",
|
| 293 |
-
"Evaluating right as a string.\n",
|
| 294 |
-
"Evaluating 3 as a number.\n",
|
| 295 |
-
"Evaluating It appears that direct access to Wikipedia and Discogs via `visit_webpage` is currently blocked, preventing me from gathering the detailed discography information directly. However, I can use `web_search` to find lists of her albums.\n",
|
| 296 |
-
"\n",
|
| 297 |
-
"I will proceed by using `web_search` to find reliable sources listing Mercedes Sosa's studio albums and their release years, specifically focusing on the 2000-2009 period.\n",
|
| 298 |
-
"\n",
|
| 299 |
-
"<code>\n",
|
| 300 |
-
"web_search_results = web_search(query=\"Mercedes Sosa studio albums release dates 2000-2009\")\n",
|
| 301 |
-
"print(web_search_results)\n",
|
| 302 |
-
"</code> as a number.\n",
|
| 303 |
-
"String It appears that direct access to Wikipedia and Discogs via `visit_webpage` is currently blocked preventing me from gathering the detailed discography information directly. However I can use `web_search` to find lists of her albums.\n",
|
| 304 |
-
"\n",
|
| 305 |
-
"I will proceed by using `web_search` to find reliable sources listing Mercedes Sosa's studio albums and their release years specifically focusing on the 2000-2009 period.\n",
|
| 306 |
-
"\n",
|
| 307 |
-
"<code>\n",
|
| 308 |
-
"web_search_results = web_search(query=\"Mercedes Sosa studio albums release dates 2000-2009\")\n",
|
| 309 |
-
"print(web_search_results)\n",
|
| 310 |
-
"</code> cannot be normalized to number str.\n",
|
| 311 |
-
"Evaluating <code>\n",
|
| 312 |
-
"discogs_url = \"https://www.discogs.com/artist/333361-Mercedes-Sosa\"\n",
|
| 313 |
-
"discogs_page_content = visit_webpage(url=discogs_url)\n",
|
| 314 |
-
"print(discogs_page_content)\n",
|
| 315 |
-
"</code>\n",
|
| 316 |
-
"Calling tools:\n",
|
| 317 |
-
"[{'id': 'call_8', 'type': 'function', 'function': {'name': 'python_interpreter', 'arguments': 'discogs_url = \"https://www.discogs.com/artist/333361-Mercedes-Sosa\"\\ndiscogs_page_content = visit_webpage(url=discogs_url)\\nprint(discogs_page_content)'}}] as a number.\n",
|
| 318 |
-
"String <code>\n",
|
| 319 |
-
"discogs_url = \"https://www.discogs.com/artist/333361-Mercedes-Sosa\"\n",
|
| 320 |
-
"discogs_page_content = visit_webpage(url=discogs_url)\n",
|
| 321 |
-
"print(discogs_page_content)\n",
|
| 322 |
-
"</code>\n",
|
| 323 |
-
"Calling tools:\n",
|
| 324 |
-
"[{'id': 'call_8' 'type': 'function' 'function': {'name': 'python_interpreter' 'arguments': 'discogs_url = \"https://www.discogs.com/artist/333361-Mercedes-Sosa\"\\ndiscogs_page_content = visit_webpage(url=discogs_url)\\nprint(discogs_page_content)'}}] cannot be normalized to number str.\n"
|
| 325 |
]
|
| 326 |
}
|
| 327 |
],
|
|
|
|
| 2 |
"cells": [
|
| 3 |
{
|
| 4 |
"cell_type": "code",
|
| 5 |
+
"execution_count": 2,
|
| 6 |
"metadata": {},
|
| 7 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"source": [
|
| 9 |
"import pandas as pd\n",
|
| 10 |
"import json\n",
|
| 11 |
"from phoenix.client import Client\n",
|
| 12 |
"\n",
|
| 13 |
"# Params for local or remote Phoenix instance\n",
|
| 14 |
+
"local = True\n",
|
| 15 |
"if local is True:\n",
|
| 16 |
" client = Client(base_url=\"http://localhost:6006\")\n",
|
|
|
|
| 17 |
"else:\n",
|
| 18 |
" client = Client() # will use environment variables for configuration\n",
|
|
|
|
| 19 |
"\n",
|
| 20 |
"# Load the existing spans\n",
|
| 21 |
+
"spans_df = client.spans.get_spans_dataframe(project_name=\"final_assignment_template\", start_time=\"2025-10-23\")"
|
| 22 |
]
|
| 23 |
},
|
| 24 |
{
|
| 25 |
"cell_type": "code",
|
| 26 |
+
"execution_count": 3,
|
| 27 |
"metadata": {},
|
| 28 |
"outputs": [],
|
| 29 |
"source": [
|
|
|
|
| 33 |
},
|
| 34 |
{
|
| 35 |
"cell_type": "code",
|
| 36 |
+
"execution_count": 4,
|
| 37 |
"metadata": {},
|
| 38 |
"outputs": [],
|
| 39 |
"source": [
|
|
|
|
| 43 |
},
|
| 44 |
{
|
| 45 |
"cell_type": "code",
|
| 46 |
+
"execution_count": 5,
|
| 47 |
"metadata": {},
|
| 48 |
"outputs": [
|
| 49 |
{
|
| 50 |
"name": "stderr",
|
| 51 |
"output_type": "stream",
|
| 52 |
"text": [
|
| 53 |
+
"/var/folders/pj/v1zrqj1d10x9_1rd2njh_r_r0000gn/T/ipykernel_47327/3107371246.py:2: SettingWithCopyWarning: \n",
|
| 54 |
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
|
| 55 |
"Try using .loc[row_indexer,col_indexer] = value instead\n",
|
| 56 |
"\n",
|
|
|
|
| 67 |
},
|
| 68 |
{
|
| 69 |
"cell_type": "code",
|
| 70 |
+
"execution_count": 6,
|
| 71 |
"metadata": {},
|
| 72 |
"outputs": [
|
| 73 |
{
|
|
|
|
| 190 |
"print(category_albums_page)\n",
|
| 191 |
"</code>\n",
|
| 192 |
"Calling tools:\n",
|
| 193 |
+
"[{'id': 'call_8' 'type': 'function' 'function': {'name': 'python_interpreter' 'arguments': 'category_albums_page = wikipedia_search(query=\"Category:Mercedes Sosa albums\")\\nprint(category_albums_page)'}}] cannot be normalized to number str.\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
]
|
| 195 |
}
|
| 196 |
],
|
eval/traces_import_export.ipynb
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": 19,
|
| 6 |
+
"id": "4ee1928d",
|
| 7 |
+
"metadata": {},
|
| 8 |
+
"outputs": [],
|
| 9 |
+
"source": [
|
| 10 |
+
"from datetime import datetime\n",
|
| 11 |
+
"import phoenix as px\n",
|
| 12 |
+
"from phoenix.client import Client\n",
|
| 13 |
+
"\n",
|
| 14 |
+
"# Client to remote phoenix instance\n",
|
| 15 |
+
"remote_client = Client()\n",
|
| 16 |
+
"\n",
|
| 17 |
+
"# Save the remote traces locally\n",
|
| 18 |
+
"remote_spans = remote_client.spans.get_spans(project_identifier=\"final_assignment_template\", start_time=datetime(2025,10,28,00,00,00), end_time=datetime(2025,10,28,23,59,59), limit=1000)\n"
|
| 19 |
+
]
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"cell_type": "code",
|
| 23 |
+
"execution_count": null,
|
| 24 |
+
"id": "8141c2ea",
|
| 25 |
+
"metadata": {},
|
| 26 |
+
"outputs": [
|
| 27 |
+
{
|
| 28 |
+
"data": {
|
| 29 |
+
"text/plain": [
|
| 30 |
+
"{'total_received': 308, 'total_queued': 308}"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"execution_count": 16,
|
| 34 |
+
"metadata": {},
|
| 35 |
+
"output_type": "execute_result"
|
| 36 |
+
}
|
| 37 |
+
],
|
| 38 |
+
"source": [
|
| 39 |
+
"# Launch local instance with python -m phoenix.server.main serve before running this cell\n",
|
| 40 |
+
"# Client to local instance\n",
|
| 41 |
+
"local_client = Client(base_url=\"http://localhost:6006\")\n",
|
| 42 |
+
"\n",
|
| 43 |
+
"local_client.spans.log_spans(project_identifier=\"final_assignment_template\", spans=remote_spans)\n",
|
| 44 |
+
"\n"
|
| 45 |
+
]
|
| 46 |
+
}
|
| 47 |
+
],
|
| 48 |
+
"metadata": {
|
| 49 |
+
"kernelspec": {
|
| 50 |
+
"display_name": "Final_Assignment_Template",
|
| 51 |
+
"language": "python",
|
| 52 |
+
"name": "python3"
|
| 53 |
+
},
|
| 54 |
+
"language_info": {
|
| 55 |
+
"codemirror_mode": {
|
| 56 |
+
"name": "ipython",
|
| 57 |
+
"version": 3
|
| 58 |
+
},
|
| 59 |
+
"file_extension": ".py",
|
| 60 |
+
"mimetype": "text/x-python",
|
| 61 |
+
"name": "python",
|
| 62 |
+
"nbconvert_exporter": "python",
|
| 63 |
+
"pygments_lexer": "ipython3",
|
| 64 |
+
"version": "3.12.11"
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
"nbformat": 4,
|
| 68 |
+
"nbformat_minor": 5
|
| 69 |
+
}
|