Skip to content

Commit

Permalink
Merge pull request #1425 from ericljx2020-gmail/master
Browse files Browse the repository at this point in the history
add tracing panel image
  • Loading branch information
zc277584121 authored Sep 24, 2024
2 parents 0e5daad + 82e6c99 commit af217ae
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions bootcamp/tutorials/integration/evaluation_with_phoenix.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Creating embeddings: 100%|██████████| 47/47 [00:19<00:00, 2.39it/s]\n"
"Creating embeddings: 100%|██████████| 47/47 [00:12<00:00, 3.84it/s]\n"
]
}
],
Expand Down Expand Up @@ -279,7 +279,7 @@
{
"data": {
"text/plain": [
"('The hardware requirements specification to build and run Milvus from source code is as follows:\\n\\n- 8GB of RAM\\n- 50GB of free disk space',\n",
"('The hardware requirements specification to build and run Milvus from source code are:\\n\\n- 8GB of RAM\\n- 50GB of free disk space',\n",
" ['Hardware Requirements\\n\\nThe following specification (either physical or virtual machine resources) is recommended for Milvus to build and run from source code.\\n\\n```\\n- 8GB of RAM\\n- 50GB of free disk space\\n```\\n\\n##',\n",
" 'Building Milvus on a local OS/shell environment\\n\\nThe details below outline the hardware and software requirements for building on Linux and MacOS.\\n\\n##',\n",
" \"Software Requirements\\n\\nAll Linux distributions are available for Milvus development. However a majority of our contributor worked with Ubuntu or CentOS systems, with a small portion of Mac (both x86_64 and Apple Silicon) contributors. If you would like Milvus to build and run on other distributions, you are more than welcome to file an issue and contribute!\\n\\nHere's a list of verified OS types where Milvus can successfully build and run:\\n\\n- Debian/Ubuntu\\n- Amazon Linux\\n- MacOS (x86_64)\\n- MacOS (Apple Silicon)\\n\\n##\"])"
Expand Down Expand Up @@ -313,7 +313,7 @@
"text": [
"/Users/eureka/miniconda3/envs/zilliz/lib/python3.9/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",
" from .autonotebook import tqdm as notebook_tqdm\n",
"Answering questions: 100%|██████████| 3/3 [00:04<00:00, 1.34s/it]\n"
"Answering questions: 100%|██████████| 3/3 [00:03<00:00, 1.04s/it]\n"
]
},
{
Expand Down Expand Up @@ -348,7 +348,7 @@
" <th>0</th>\n",
" <td>what is the hardware requirements specificatio...</td>\n",
" <td>[Hardware Requirements\\n\\nThe following specif...</td>\n",
" <td>To build and run Milvus from source code, the ...</td>\n",
" <td>The hardware requirements specification to bui...</td>\n",
" <td>If you want to build Milvus and run from sourc...</td>\n",
" </tr>\n",
" <tr>\n",
Expand Down Expand Up @@ -381,7 +381,7 @@
"2 [Code coverage\\n\\nBefore submitting your pull ... \n",
"\n",
" answer \\\n",
"0 To build and run Milvus from source code, the ... \n",
"0 The hardware requirements specification to bui... \n",
"1 The programming language used to write Knowher... \n",
"2 Before running code coverage, it should be ens... \n",
"\n",
Expand Down Expand Up @@ -462,17 +462,9 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNI [phoenix.session.session] Existing running Phoenix instance detected! Shutting it down and starting a new instance...\n",
"WARNI [opentelemetry.instrumentation.instrumentor] Attempting to instrument while already instrumented\n"
]
},
{
"name": "stdout",
"output_type": "stream",
Expand All @@ -493,16 +485,23 @@
"OpenAIInstrumentor().instrument()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![Alt Text](../../../images/phoenix01.png)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"run_evals |██████████| 6/6 (100.0%) | ⏳ 00:04<00:00 | 1.46it/s\n"
"run_evals |██████████| 6/6 (100.0%) | ⏳ 00:03<00:00 | 1.64it/s\n"
]
}
],
Expand Down Expand Up @@ -541,7 +540,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -582,14 +581,14 @@
" <th>0</th>\n",
" <td>what is the hardware requirements specificatio...</td>\n",
" <td>[Hardware Requirements\\n\\nThe following specif...</td>\n",
" <td>To build and run Milvus from source code, the ...</td>\n",
" <td>The hardware requirements specification to bui...</td>\n",
" <td>If you want to build Milvus and run from sourc...</td>\n",
" <td>[Hardware Requirements\\n\\nThe following specif...</td>\n",
" <td>[Hardware Requirements\\n\\nThe following specif...</td>\n",
" <td>factual</td>\n",
" <td>To determine if the answer is factual or hallu...</td>\n",
" <td>correct</td>\n",
" <td>First, identify the question: the hardware req...</td>\n",
" <td>To determine if the answer is correct, we need...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
Expand All @@ -613,7 +612,7 @@
" <td>[Code coverage\\n\\nBefore submitting your pull ...</td>\n",
" <td>[Code coverage\\n\\nBefore submitting your pull ...</td>\n",
" <td>factual</td>\n",
" <td>To determine if the answer is factual or hallu...</td>\n",
" <td>The reference text specifies that before runni...</td>\n",
" <td>correct</td>\n",
" <td>To determine if the answer is correct, we need...</td>\n",
" </tr>\n",
Expand All @@ -633,7 +632,7 @@
"2 [Code coverage\\n\\nBefore submitting your pull ... \n",
"\n",
" output \\\n",
"0 To build and run Milvus from source code, the ... \n",
"0 The hardware requirements specification to bui... \n",
"1 The programming language used to write Knowher... \n",
"2 Before running code coverage, it should be ens... \n",
"\n",
Expand All @@ -655,15 +654,15 @@
" hallucination_explanation qa_eval \\\n",
"0 To determine if the answer is factual or hallu... correct \n",
"1 To determine if the answer is factual or hallu... correct \n",
"2 To determine if the answer is factual or hallu... correct \n",
"2 The reference text specifies that before runni... correct \n",
"\n",
" qa_explanation \n",
"0 First, identify the question: the hardware req... \n",
"0 To determine if the answer is correct, we need... \n",
"1 To determine if the answer is correct, we need... \n",
"2 To determine if the answer is correct, we need... "
]
},
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Binary file added images/phoenix01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit af217ae

Please sign in to comment.