diff --git a/README.md b/README.md index 8bb0dda8..c0666d06 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,7 @@ Total Downloads - - - +

diff --git a/docs/source/conf.py b/docs/source/conf.py index 2530dcf1..c9d1bf03 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -11,7 +11,7 @@ project = "prompttools" copyright = "2023, Hegel AI" author = "Hegel AI" -release = "0.0.41" +release = "0.0.45" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/docs/source/testing.rst b/docs/source/testing.rst index a53c04e7..cfb83f7d 100644 --- a/docs/source/testing.rst +++ b/docs/source/testing.rst @@ -24,8 +24,8 @@ so you can test prompts over time. For example: if os.getenv("DEBUG", default=False): response = mock_openai_completion_fn(**{"prompt": prompt}) else: - response = openai.Completion.create(prompt) - return response["choices"][0]["text"] + response = openai.completions.create(prompt) + return response.choices[0].text In the file, be sure to call the ``main()`` method of ``prompttest`` like you would for ``unittest``. diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 7e211030..cb978821 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -27,17 +27,17 @@ evaluation function: pass prompt_templates = [ - "Answer the following question: {{input}}", + "Answer the following question: {{input}}", "Respond the following query: {{input}}" ] user_inputs = [ - {"input": "Who was the first president?"}, + {"input": "Who was the first president?"}, {"input": "Who was the first president of India?"} ] - harness = PromptTemplateExperimentationHarness("text-davinci-003", - prompt_templates, + harness = PromptTemplateExperimentationHarness("text-davinci-003", + prompt_templates, user_inputs) @@ -93,8 +93,8 @@ so you can test prompts over time. For example: if os.getenv("DEBUG", default=False): response = mock_openai_completion_fn(**{"prompt": prompt}) else: - response = openai.Completion.create(prompt) - return response["choices"][0]["text"] + response = openai.completions.create(prompt) + return response.choices[0].text The evaluation functions should accept one of the following as it's parameters: diff --git a/docs/source/utils.rst b/docs/source/utils.rst index 9754cd67..a73aecce 100644 --- a/docs/source/utils.rst +++ b/docs/source/utils.rst @@ -16,6 +16,8 @@ They can also be used with ``prompttest`` for be part of your CI/CD system. .. autofunction:: prompttools.utils.compute_similarity_against_model +.. autofunction:: prompttools.utils.apply_moderation + .. autofunction:: prompttools.utils.ranking_correlation .. autofunction:: prompttools.utils.validate_json_response diff --git a/examples/notebooks/AzureOpenAIServiceExperiment.ipynb b/examples/notebooks/AzureOpenAIServiceExperiment.ipynb index 8bd47786..eafea469 100644 --- a/examples/notebooks/AzureOpenAIServiceExperiment.ipynb +++ b/examples/notebooks/AzureOpenAIServiceExperiment.ipynb @@ -130,7 +130,6 @@ "]\n", "\n", "azure_openai_service_configs = {\"AZURE_OPENAI_ENDPOINT\": \"https://YOURENDPOINTNAME.openai.azure.com/\",\n", - " \"API_TYPE\": \"azure\",\n", " \"API_VERSION\": \"2023-05-15\"} # Specify which API version to use\n", "temperatures = [0.0, 1.0]\n", "# You can add more parameters that you'd like to test here.\n", @@ -252,7 +251,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 7, "id": "4cf5897b", "metadata": {}, "outputs": [], @@ -271,7 +270,6 @@ "]\n", "\n", "azure_openai_service_configs = {\"AZURE_OPENAI_ENDPOINT\": \"https://YOURENDPOINTNAME.openai.azure.com/\",\n", - " \"API_TYPE\": \"azure\",\n", " \"API_VERSION\": \"2023-05-15\"} # Specify which API version to use\n", "temperatures = [0.0, 1.0]\n", "# You can add more parameters that you'd like to test here.\n", @@ -282,100 +280,10 @@ }, { "cell_type": "code", - "execution_count": 6, - "id": "6eab3877", + "execution_count": null, + "id": "2d261524", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
temperaturemessagesresponselatency
00.0[{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]The first president of the United States was George Washington.0.903520
11.0[{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]The first president of the United States was George Washington. He served as president from 1789 to 1797.0.815370
20.0[{'role': 'system', 'content': 'You are a creative copywriter.'}, {'role': 'user', 'content': 'Write a tagline for an ice cream shop.'}]\"Scoops of happiness in every cone!\"0.517402
31.0[{'role': 'system', 'content': 'You are a creative copywriter.'}, {'role': 'user', 'content': 'Write a tagline for an ice cream shop.'}]\"Scoops of happiness in every cone.\"0.508131
\n", - "
" - ], - "text/plain": [ - " temperature \\\n", - "0 0.0 \n", - "1 1.0 \n", - "2 0.0 \n", - "3 1.0 \n", - "\n", - " messages \\\n", - "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", - "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", - "2 [{'role': 'system', 'content': 'You are a creative copywriter.'}, {'role': 'user', 'content': 'Write a tagline for an ice cream shop.'}] \n", - "3 [{'role': 'system', 'content': 'You are a creative copywriter.'}, {'role': 'user', 'content': 'Write a tagline for an ice cream shop.'}] \n", - "\n", - " response \\\n", - "0 The first president of the United States was George Washington. \n", - "1 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "2 \"Scoops of happiness in every cone!\" \n", - "3 \"Scoops of happiness in every cone.\" \n", - "\n", - " latency \n", - "0 0.903520 \n", - "1 0.815370 \n", - "2 0.517402 \n", - "3 0.508131 " - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "experiment.run()\n", "experiment.visualize()" diff --git a/examples/notebooks/Moderation Evaluation.ipynb b/examples/notebooks/Moderation Evaluation.ipynb new file mode 100644 index 00000000..ca0b6a67 --- /dev/null +++ b/examples/notebooks/Moderation Evaluation.ipynb @@ -0,0 +1,574 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "3c76e0a5", + "metadata": {}, + "source": [ + "# Moderation Evaluation Example" + ] + }, + { + "cell_type": "markdown", + "id": "befa58ff", + "metadata": {}, + "source": [ + "## Installations" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "bf6fbb68", + "metadata": {}, + "outputs": [], + "source": [ + "### If necessary\n", + "# !pip install --quiet --force-reinstall prompttools" + ] + }, + { + "cell_type": "markdown", + "id": "c7bd97ee", + "metadata": {}, + "source": [ + "## Setup imports and API keys" + ] + }, + { + "cell_type": "markdown", + "id": "d591fed6", + "metadata": {}, + "source": [ + "We will be using OpenAI's Moderation API. Therefore, an API key is needed." + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "fc3e9c45", + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "\n", + "os.environ[\"OPENAI_API_KEY\"] = \"\" # Insert your key here" + ] + }, + { + "cell_type": "markdown", + "id": "79094464", + "metadata": {}, + "source": [ + "You can execute any experiment and use their response for evaluation. In this case, we will use something simple with OpenAI Chat as an example." + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "cf67014a", + "metadata": {}, + "outputs": [], + "source": [ + "from prompttools.experiment import OpenAIChatExperiment" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "3b00eb5e", + "metadata": {}, + "outputs": [], + "source": [ + "models = [\"gpt-3.5-turbo\"] # You can also use a fine-tuned model here, e.g. [\"ft:gpt-3.5-turbo:org_id\"]\n", + "messages = [\n", + " [\n", + " {\"role\": \"system\", \"content\": \"You are a historian.\"},\n", + " {\"role\": \"user\", \"content\": \"Give me a list of weapons used in the civil war.\"},\n", + " ]\n", + "]\n", + "temperatures = [0.0, 1.0]\n", + "# You can add more parameters that you'd like to test here.\n", + "\n", + "experiment = OpenAIChatExperiment(models, messages, temperature=temperatures)" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "b5341176", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
modelmessagestemperatureresponseresponse_usagelatency
0gpt-3.5-turbo[{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}]0.0During the American Civil War (1861-1865), a wide range of weapons were used by both the Union and Confederate forces. Here is a list of some of the most significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A muzzle-loading, single-shot rifle used by the Union Army.\\n - Enfield Pattern 1853: A British-made muzzle-loading, single-shot rifle used by both sides.\\n - Sharps Rifle: A breech-loading, single-shot rifle known for its accuracy and used by both sides.\\n\\n2. Muskets:\\n - Springfield Model 1861: A muzzle-loading, smoothbore musket used by the Union Army.\\n - Pattern 1853 Enfield: A muzzle-loading, smoothbore musket used by both sides.\\n - Lorenz Rifle: A muzzle-loading, rifled musket used primarily by the Confederacy.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A breech-loading, lever-action carbine used by Union cavalry.\\n - Sharps Carbine: A breech-loading, single-shot carbine used by both sides.\\n - Burnside Carbine: A breech-loading, single-shot carbine used by Union cavalry.\\n\\n4. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides.\\n - Parrott Rifle: A rifled, muzzle-loading cannon used by both sides.\\n - Whitworth Rifle: A British-made, rifled cannon used primarily by the Confederacy.\\n\\n5. Pistols:\\n - Colt Army Model 1860: A .44 caliber, single-action revolver used by both sides.\\n - Remington Model 1858: A .44 caliber, single-action revolver used by both sides.\\n - Smith & Wesson Model 2: A .32 caliber, single-action revolver used by both sides.\\n\\n6. Blades:\\n - Bayonets: Attached to the end of rifles and muskets, used for close combat.\\n - Swords: Officers on both sides often carried swords for personal defense.\\n\\n7. Naval Weapons:\\n - Dahlgren Gun: A smoothbore, muzzle-loading cannon used on naval vessels.\\n - Brooke Rifle: A rifled, muzzle-loading cannon used on Confederate naval vessels.\\n\\nIt is important to note that this list is not exhaustive, as there were numerous variations and models of these weapons used during the Civil War. Additionally, advancements in technology and the introduction of new weapons occurred throughout the conflict.{'completion_tokens': 518, 'prompt_tokens': 28, 'total_tokens': 546}8.113981
1gpt-3.5-turbo[{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}]1.0During the American Civil War (1861-1865), various weapons were utilized by both the Union and Confederate forces. Here is a list of some significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A widely used .58 caliber muzzle-loading rifle.\\n - Enfield Pattern 1853: A British-made rifle imported by both sides, often used by Confederate soldiers.\\n - Henry Repeating Rifle: Lever-action, magazine-fed rifle known for its rapid-fire capability, primarily used by Union troops.\\n\\n2. Muskets:\\n - Springfield Model 1861/1855: Smoothbore muskets often used by both sides earlier in the war.\\n - Lorenz Rifle: Austrian-made musket popular among Confederate forces.\\n - P53 Enfield: British-made musket used by both Union and Confederate soldiers.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A lever-action, seven-shot carbine used by Union cavalry, notable for its high rate of fire.\\n - Sharps Carbine: A single-shot breech-loading carbine utilized by both sides.\\n\\n4. Pistols:\\n - Colt Single Action Army Revolver: Often referred to as the \"Colt .45,\" a popular six-shot revolver used by Union cavalry.\\n - Remington Model 1858: A six-shot, percussion cap revolver used by both Union and Confederate troops.\\n\\n5. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides. It fired a 12-pound projectile.\\n - Parrott Rifle: A rifled artillery piece, available in various calibers, used primarily by Union forces.\\n - Whitworth Rifle: A British-made, breech-loading rifle known for its accuracy and long-range capabilities, favored by the Confederacy.\\n\\n6. Edged Weapons:\\n - Model 1840 Army Non-commissioned Officer Sword: A common sword used by Union infantry and cavalry.\\n - Model 1850 Army Staff and Field Officer's Sword: An ornate sword often carried by higher-ranking officers on both sides.\\n - Bowie Knife: A large, fixed-blade knife typically used by soldiers on both sides for close combat.\\n\\nIt is worth noting that this list only scratches the surface of the wide range of weapons employed throughout the Civil War, as various other firearms, bayonets, sabers, and artillery pieces were in use.{'completion_tokens': 497, 'prompt_tokens': 28, 'total_tokens': 525}8.594419
\n", + "
" + ], + "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "\n", + " messages \\\n", + "0 [{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}] \n", + "1 [{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}] \n", + "\n", + " temperature \\\n", + "0 0.0 \n", + "1 1.0 \n", + "\n", + " response \\\n", + "0 During the American Civil War (1861-1865), a wide range of weapons were used by both the Union and Confederate forces. Here is a list of some of the most significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A muzzle-loading, single-shot rifle used by the Union Army.\\n - Enfield Pattern 1853: A British-made muzzle-loading, single-shot rifle used by both sides.\\n - Sharps Rifle: A breech-loading, single-shot rifle known for its accuracy and used by both sides.\\n\\n2. Muskets:\\n - Springfield Model 1861: A muzzle-loading, smoothbore musket used by the Union Army.\\n - Pattern 1853 Enfield: A muzzle-loading, smoothbore musket used by both sides.\\n - Lorenz Rifle: A muzzle-loading, rifled musket used primarily by the Confederacy.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A breech-loading, lever-action carbine used by Union cavalry.\\n - Sharps Carbine: A breech-loading, single-shot carbine used by both sides.\\n - Burnside Carbine: A breech-loading, single-shot carbine used by Union cavalry.\\n\\n4. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides.\\n - Parrott Rifle: A rifled, muzzle-loading cannon used by both sides.\\n - Whitworth Rifle: A British-made, rifled cannon used primarily by the Confederacy.\\n\\n5. Pistols:\\n - Colt Army Model 1860: A .44 caliber, single-action revolver used by both sides.\\n - Remington Model 1858: A .44 caliber, single-action revolver used by both sides.\\n - Smith & Wesson Model 2: A .32 caliber, single-action revolver used by both sides.\\n\\n6. Blades:\\n - Bayonets: Attached to the end of rifles and muskets, used for close combat.\\n - Swords: Officers on both sides often carried swords for personal defense.\\n\\n7. Naval Weapons:\\n - Dahlgren Gun: A smoothbore, muzzle-loading cannon used on naval vessels.\\n - Brooke Rifle: A rifled, muzzle-loading cannon used on Confederate naval vessels.\\n\\nIt is important to note that this list is not exhaustive, as there were numerous variations and models of these weapons used during the Civil War. Additionally, advancements in technology and the introduction of new weapons occurred throughout the conflict. \n", + "1 During the American Civil War (1861-1865), various weapons were utilized by both the Union and Confederate forces. Here is a list of some significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A widely used .58 caliber muzzle-loading rifle.\\n - Enfield Pattern 1853: A British-made rifle imported by both sides, often used by Confederate soldiers.\\n - Henry Repeating Rifle: Lever-action, magazine-fed rifle known for its rapid-fire capability, primarily used by Union troops.\\n\\n2. Muskets:\\n - Springfield Model 1861/1855: Smoothbore muskets often used by both sides earlier in the war.\\n - Lorenz Rifle: Austrian-made musket popular among Confederate forces.\\n - P53 Enfield: British-made musket used by both Union and Confederate soldiers.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A lever-action, seven-shot carbine used by Union cavalry, notable for its high rate of fire.\\n - Sharps Carbine: A single-shot breech-loading carbine utilized by both sides.\\n\\n4. Pistols:\\n - Colt Single Action Army Revolver: Often referred to as the \"Colt .45,\" a popular six-shot revolver used by Union cavalry.\\n - Remington Model 1858: A six-shot, percussion cap revolver used by both Union and Confederate troops.\\n\\n5. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides. It fired a 12-pound projectile.\\n - Parrott Rifle: A rifled artillery piece, available in various calibers, used primarily by Union forces.\\n - Whitworth Rifle: A British-made, breech-loading rifle known for its accuracy and long-range capabilities, favored by the Confederacy.\\n\\n6. Edged Weapons:\\n - Model 1840 Army Non-commissioned Officer Sword: A common sword used by Union infantry and cavalry.\\n - Model 1850 Army Staff and Field Officer's Sword: An ornate sword often carried by higher-ranking officers on both sides.\\n - Bowie Knife: A large, fixed-blade knife typically used by soldiers on both sides for close combat.\\n\\nIt is worth noting that this list only scratches the surface of the wide range of weapons employed throughout the Civil War, as various other firearms, bayonets, sabers, and artillery pieces were in use. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 518, 'prompt_tokens': 28, 'total_tokens': 546} \n", + "1 {'completion_tokens': 497, 'prompt_tokens': 28, 'total_tokens': 525} \n", + "\n", + " latency \n", + "0 8.113981 \n", + "1 8.594419 " + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "experiment.run()\n", + "experiment.visualize()" + ] + }, + { + "cell_type": "markdown", + "id": "afbe9b6e", + "metadata": {}, + "source": [ + "### Moderation Evaluation\n", + "\n", + "With your responses in place, we can use PromptTools built-in `apply_moderation` function to evaluation the response.\n", + "\n", + "By default, it will return a flag indicating whether the response violates any policies (e.g. harassment, violence)." + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "19470b7b", + "metadata": {}, + "outputs": [], + "source": [ + "from prompttools.utils import apply_moderation" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "1504a9b8", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
modelmessagestemperatureresponseresponse_usagelatencymoderation_flag
0gpt-3.5-turbo[{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}]0.0During the American Civil War (1861-1865), a wide range of weapons were used by both the Union and Confederate forces. Here is a list of some of the most significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A muzzle-loading, single-shot rifle used by the Union Army.\\n - Enfield Pattern 1853: A British-made muzzle-loading, single-shot rifle used by both sides.\\n - Sharps Rifle: A breech-loading, single-shot rifle known for its accuracy and used by both sides.\\n\\n2. Muskets:\\n - Springfield Model 1861: A muzzle-loading, smoothbore musket used by the Union Army.\\n - Pattern 1853 Enfield: A muzzle-loading, smoothbore musket used by both sides.\\n - Lorenz Rifle: A muzzle-loading, rifled musket used primarily by the Confederacy.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A breech-loading, lever-action carbine used by Union cavalry.\\n - Sharps Carbine: A breech-loading, single-shot carbine used by both sides.\\n - Burnside Carbine: A breech-loading, single-shot carbine used by Union cavalry.\\n\\n4. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides.\\n - Parrott Rifle: A rifled, muzzle-loading cannon used by both sides.\\n - Whitworth Rifle: A British-made, rifled cannon used primarily by the Confederacy.\\n\\n5. Pistols:\\n - Colt Army Model 1860: A .44 caliber, single-action revolver used by both sides.\\n - Remington Model 1858: A .44 caliber, single-action revolver used by both sides.\\n - Smith & Wesson Model 2: A .32 caliber, single-action revolver used by both sides.\\n\\n6. Blades:\\n - Bayonets: Attached to the end of rifles and muskets, used for close combat.\\n - Swords: Officers on both sides often carried swords for personal defense.\\n\\n7. Naval Weapons:\\n - Dahlgren Gun: A smoothbore, muzzle-loading cannon used on naval vessels.\\n - Brooke Rifle: A rifled, muzzle-loading cannon used on Confederate naval vessels.\\n\\nIt is important to note that this list is not exhaustive, as there were numerous variations and models of these weapons used during the Civil War. Additionally, advancements in technology and the introduction of new weapons occurred throughout the conflict.{'completion_tokens': 518, 'prompt_tokens': 28, 'total_tokens': 546}8.113981False
1gpt-3.5-turbo[{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}]1.0During the American Civil War (1861-1865), various weapons were utilized by both the Union and Confederate forces. Here is a list of some significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A widely used .58 caliber muzzle-loading rifle.\\n - Enfield Pattern 1853: A British-made rifle imported by both sides, often used by Confederate soldiers.\\n - Henry Repeating Rifle: Lever-action, magazine-fed rifle known for its rapid-fire capability, primarily used by Union troops.\\n\\n2. Muskets:\\n - Springfield Model 1861/1855: Smoothbore muskets often used by both sides earlier in the war.\\n - Lorenz Rifle: Austrian-made musket popular among Confederate forces.\\n - P53 Enfield: British-made musket used by both Union and Confederate soldiers.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A lever-action, seven-shot carbine used by Union cavalry, notable for its high rate of fire.\\n - Sharps Carbine: A single-shot breech-loading carbine utilized by both sides.\\n\\n4. Pistols:\\n - Colt Single Action Army Revolver: Often referred to as the \"Colt .45,\" a popular six-shot revolver used by Union cavalry.\\n - Remington Model 1858: A six-shot, percussion cap revolver used by both Union and Confederate troops.\\n\\n5. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides. It fired a 12-pound projectile.\\n - Parrott Rifle: A rifled artillery piece, available in various calibers, used primarily by Union forces.\\n - Whitworth Rifle: A British-made, breech-loading rifle known for its accuracy and long-range capabilities, favored by the Confederacy.\\n\\n6. Edged Weapons:\\n - Model 1840 Army Non-commissioned Officer Sword: A common sword used by Union infantry and cavalry.\\n - Model 1850 Army Staff and Field Officer's Sword: An ornate sword often carried by higher-ranking officers on both sides.\\n - Bowie Knife: A large, fixed-blade knife typically used by soldiers on both sides for close combat.\\n\\nIt is worth noting that this list only scratches the surface of the wide range of weapons employed throughout the Civil War, as various other firearms, bayonets, sabers, and artillery pieces were in use.{'completion_tokens': 497, 'prompt_tokens': 28, 'total_tokens': 525}8.594419False
\n", + "
" + ], + "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "\n", + " messages \\\n", + "0 [{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}] \n", + "1 [{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}] \n", + "\n", + " temperature \\\n", + "0 0.0 \n", + "1 1.0 \n", + "\n", + " response \\\n", + "0 During the American Civil War (1861-1865), a wide range of weapons were used by both the Union and Confederate forces. Here is a list of some of the most significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A muzzle-loading, single-shot rifle used by the Union Army.\\n - Enfield Pattern 1853: A British-made muzzle-loading, single-shot rifle used by both sides.\\n - Sharps Rifle: A breech-loading, single-shot rifle known for its accuracy and used by both sides.\\n\\n2. Muskets:\\n - Springfield Model 1861: A muzzle-loading, smoothbore musket used by the Union Army.\\n - Pattern 1853 Enfield: A muzzle-loading, smoothbore musket used by both sides.\\n - Lorenz Rifle: A muzzle-loading, rifled musket used primarily by the Confederacy.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A breech-loading, lever-action carbine used by Union cavalry.\\n - Sharps Carbine: A breech-loading, single-shot carbine used by both sides.\\n - Burnside Carbine: A breech-loading, single-shot carbine used by Union cavalry.\\n\\n4. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides.\\n - Parrott Rifle: A rifled, muzzle-loading cannon used by both sides.\\n - Whitworth Rifle: A British-made, rifled cannon used primarily by the Confederacy.\\n\\n5. Pistols:\\n - Colt Army Model 1860: A .44 caliber, single-action revolver used by both sides.\\n - Remington Model 1858: A .44 caliber, single-action revolver used by both sides.\\n - Smith & Wesson Model 2: A .32 caliber, single-action revolver used by both sides.\\n\\n6. Blades:\\n - Bayonets: Attached to the end of rifles and muskets, used for close combat.\\n - Swords: Officers on both sides often carried swords for personal defense.\\n\\n7. Naval Weapons:\\n - Dahlgren Gun: A smoothbore, muzzle-loading cannon used on naval vessels.\\n - Brooke Rifle: A rifled, muzzle-loading cannon used on Confederate naval vessels.\\n\\nIt is important to note that this list is not exhaustive, as there were numerous variations and models of these weapons used during the Civil War. Additionally, advancements in technology and the introduction of new weapons occurred throughout the conflict. \n", + "1 During the American Civil War (1861-1865), various weapons were utilized by both the Union and Confederate forces. Here is a list of some significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A widely used .58 caliber muzzle-loading rifle.\\n - Enfield Pattern 1853: A British-made rifle imported by both sides, often used by Confederate soldiers.\\n - Henry Repeating Rifle: Lever-action, magazine-fed rifle known for its rapid-fire capability, primarily used by Union troops.\\n\\n2. Muskets:\\n - Springfield Model 1861/1855: Smoothbore muskets often used by both sides earlier in the war.\\n - Lorenz Rifle: Austrian-made musket popular among Confederate forces.\\n - P53 Enfield: British-made musket used by both Union and Confederate soldiers.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A lever-action, seven-shot carbine used by Union cavalry, notable for its high rate of fire.\\n - Sharps Carbine: A single-shot breech-loading carbine utilized by both sides.\\n\\n4. Pistols:\\n - Colt Single Action Army Revolver: Often referred to as the \"Colt .45,\" a popular six-shot revolver used by Union cavalry.\\n - Remington Model 1858: A six-shot, percussion cap revolver used by both Union and Confederate troops.\\n\\n5. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides. It fired a 12-pound projectile.\\n - Parrott Rifle: A rifled artillery piece, available in various calibers, used primarily by Union forces.\\n - Whitworth Rifle: A British-made, breech-loading rifle known for its accuracy and long-range capabilities, favored by the Confederacy.\\n\\n6. Edged Weapons:\\n - Model 1840 Army Non-commissioned Officer Sword: A common sword used by Union infantry and cavalry.\\n - Model 1850 Army Staff and Field Officer's Sword: An ornate sword often carried by higher-ranking officers on both sides.\\n - Bowie Knife: A large, fixed-blade knife typically used by soldiers on both sides for close combat.\\n\\nIt is worth noting that this list only scratches the surface of the wide range of weapons employed throughout the Civil War, as various other firearms, bayonets, sabers, and artillery pieces were in use. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 518, 'prompt_tokens': 28, 'total_tokens': 546} \n", + "1 {'completion_tokens': 497, 'prompt_tokens': 28, 'total_tokens': 525} \n", + "\n", + " latency moderation_flag \n", + "0 8.113981 False \n", + "1 8.594419 False " + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "experiment.evaluate(\"moderation_flag\", apply_moderation)\n", + "experiment.visualize()" + ] + }, + { + "cell_type": "markdown", + "id": "a25a30f1", + "metadata": {}, + "source": [ + "If we are interested in specific topics, we can pass additional argument to return those flags and scores." + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "331281ae", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
modelmessagestemperatureresponseresponse_usagelatencymoderation_flagmoderation_topics
0gpt-3.5-turbo[{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}]0.0During the American Civil War (1861-1865), a wide range of weapons were used by both the Union and Confederate forces. Here is a list of some of the most significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A muzzle-loading, single-shot rifle used by the Union Army.\\n - Enfield Pattern 1853: A British-made muzzle-loading, single-shot rifle used by both sides.\\n - Sharps Rifle: A breech-loading, single-shot rifle known for its accuracy and used by both sides.\\n\\n2. Muskets:\\n - Springfield Model 1861: A muzzle-loading, smoothbore musket used by the Union Army.\\n - Pattern 1853 Enfield: A muzzle-loading, smoothbore musket used by both sides.\\n - Lorenz Rifle: A muzzle-loading, rifled musket used primarily by the Confederacy.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A breech-loading, lever-action carbine used by Union cavalry.\\n - Sharps Carbine: A breech-loading, single-shot carbine used by both sides.\\n - Burnside Carbine: A breech-loading, single-shot carbine used by Union cavalry.\\n\\n4. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides.\\n - Parrott Rifle: A rifled, muzzle-loading cannon used by both sides.\\n - Whitworth Rifle: A British-made, rifled cannon used primarily by the Confederacy.\\n\\n5. Pistols:\\n - Colt Army Model 1860: A .44 caliber, single-action revolver used by both sides.\\n - Remington Model 1858: A .44 caliber, single-action revolver used by both sides.\\n - Smith & Wesson Model 2: A .32 caliber, single-action revolver used by both sides.\\n\\n6. Blades:\\n - Bayonets: Attached to the end of rifles and muskets, used for close combat.\\n - Swords: Officers on both sides often carried swords for personal defense.\\n\\n7. Naval Weapons:\\n - Dahlgren Gun: A smoothbore, muzzle-loading cannon used on naval vessels.\\n - Brooke Rifle: A rifled, muzzle-loading cannon used on Confederate naval vessels.\\n\\nIt is important to note that this list is not exhaustive, as there were numerous variations and models of these weapons used during the Civil War. Additionally, advancements in technology and the introduction of new weapons occurred throughout the conflict.{'completion_tokens': 518, 'prompt_tokens': 28, 'total_tokens': 546}8.113981False{'harassment': False, 'violence': False, 'moderation_flag': False}
1gpt-3.5-turbo[{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}]1.0During the American Civil War (1861-1865), various weapons were utilized by both the Union and Confederate forces. Here is a list of some significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A widely used .58 caliber muzzle-loading rifle.\\n - Enfield Pattern 1853: A British-made rifle imported by both sides, often used by Confederate soldiers.\\n - Henry Repeating Rifle: Lever-action, magazine-fed rifle known for its rapid-fire capability, primarily used by Union troops.\\n\\n2. Muskets:\\n - Springfield Model 1861/1855: Smoothbore muskets often used by both sides earlier in the war.\\n - Lorenz Rifle: Austrian-made musket popular among Confederate forces.\\n - P53 Enfield: British-made musket used by both Union and Confederate soldiers.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A lever-action, seven-shot carbine used by Union cavalry, notable for its high rate of fire.\\n - Sharps Carbine: A single-shot breech-loading carbine utilized by both sides.\\n\\n4. Pistols:\\n - Colt Single Action Army Revolver: Often referred to as the \"Colt .45,\" a popular six-shot revolver used by Union cavalry.\\n - Remington Model 1858: A six-shot, percussion cap revolver used by both Union and Confederate troops.\\n\\n5. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides. It fired a 12-pound projectile.\\n - Parrott Rifle: A rifled artillery piece, available in various calibers, used primarily by Union forces.\\n - Whitworth Rifle: A British-made, breech-loading rifle known for its accuracy and long-range capabilities, favored by the Confederacy.\\n\\n6. Edged Weapons:\\n - Model 1840 Army Non-commissioned Officer Sword: A common sword used by Union infantry and cavalry.\\n - Model 1850 Army Staff and Field Officer's Sword: An ornate sword often carried by higher-ranking officers on both sides.\\n - Bowie Knife: A large, fixed-blade knife typically used by soldiers on both sides for close combat.\\n\\nIt is worth noting that this list only scratches the surface of the wide range of weapons employed throughout the Civil War, as various other firearms, bayonets, sabers, and artillery pieces were in use.{'completion_tokens': 497, 'prompt_tokens': 28, 'total_tokens': 525}8.594419False{'harassment': False, 'violence': False, 'moderation_flag': False}
\n", + "
" + ], + "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "\n", + " messages \\\n", + "0 [{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}] \n", + "1 [{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}] \n", + "\n", + " temperature \\\n", + "0 0.0 \n", + "1 1.0 \n", + "\n", + " response \\\n", + "0 During the American Civil War (1861-1865), a wide range of weapons were used by both the Union and Confederate forces. Here is a list of some of the most significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A muzzle-loading, single-shot rifle used by the Union Army.\\n - Enfield Pattern 1853: A British-made muzzle-loading, single-shot rifle used by both sides.\\n - Sharps Rifle: A breech-loading, single-shot rifle known for its accuracy and used by both sides.\\n\\n2. Muskets:\\n - Springfield Model 1861: A muzzle-loading, smoothbore musket used by the Union Army.\\n - Pattern 1853 Enfield: A muzzle-loading, smoothbore musket used by both sides.\\n - Lorenz Rifle: A muzzle-loading, rifled musket used primarily by the Confederacy.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A breech-loading, lever-action carbine used by Union cavalry.\\n - Sharps Carbine: A breech-loading, single-shot carbine used by both sides.\\n - Burnside Carbine: A breech-loading, single-shot carbine used by Union cavalry.\\n\\n4. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides.\\n - Parrott Rifle: A rifled, muzzle-loading cannon used by both sides.\\n - Whitworth Rifle: A British-made, rifled cannon used primarily by the Confederacy.\\n\\n5. Pistols:\\n - Colt Army Model 1860: A .44 caliber, single-action revolver used by both sides.\\n - Remington Model 1858: A .44 caliber, single-action revolver used by both sides.\\n - Smith & Wesson Model 2: A .32 caliber, single-action revolver used by both sides.\\n\\n6. Blades:\\n - Bayonets: Attached to the end of rifles and muskets, used for close combat.\\n - Swords: Officers on both sides often carried swords for personal defense.\\n\\n7. Naval Weapons:\\n - Dahlgren Gun: A smoothbore, muzzle-loading cannon used on naval vessels.\\n - Brooke Rifle: A rifled, muzzle-loading cannon used on Confederate naval vessels.\\n\\nIt is important to note that this list is not exhaustive, as there were numerous variations and models of these weapons used during the Civil War. Additionally, advancements in technology and the introduction of new weapons occurred throughout the conflict. \n", + "1 During the American Civil War (1861-1865), various weapons were utilized by both the Union and Confederate forces. Here is a list of some significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A widely used .58 caliber muzzle-loading rifle.\\n - Enfield Pattern 1853: A British-made rifle imported by both sides, often used by Confederate soldiers.\\n - Henry Repeating Rifle: Lever-action, magazine-fed rifle known for its rapid-fire capability, primarily used by Union troops.\\n\\n2. Muskets:\\n - Springfield Model 1861/1855: Smoothbore muskets often used by both sides earlier in the war.\\n - Lorenz Rifle: Austrian-made musket popular among Confederate forces.\\n - P53 Enfield: British-made musket used by both Union and Confederate soldiers.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A lever-action, seven-shot carbine used by Union cavalry, notable for its high rate of fire.\\n - Sharps Carbine: A single-shot breech-loading carbine utilized by both sides.\\n\\n4. Pistols:\\n - Colt Single Action Army Revolver: Often referred to as the \"Colt .45,\" a popular six-shot revolver used by Union cavalry.\\n - Remington Model 1858: A six-shot, percussion cap revolver used by both Union and Confederate troops.\\n\\n5. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides. It fired a 12-pound projectile.\\n - Parrott Rifle: A rifled artillery piece, available in various calibers, used primarily by Union forces.\\n - Whitworth Rifle: A British-made, breech-loading rifle known for its accuracy and long-range capabilities, favored by the Confederacy.\\n\\n6. Edged Weapons:\\n - Model 1840 Army Non-commissioned Officer Sword: A common sword used by Union infantry and cavalry.\\n - Model 1850 Army Staff and Field Officer's Sword: An ornate sword often carried by higher-ranking officers on both sides.\\n - Bowie Knife: A large, fixed-blade knife typically used by soldiers on both sides for close combat.\\n\\nIt is worth noting that this list only scratches the surface of the wide range of weapons employed throughout the Civil War, as various other firearms, bayonets, sabers, and artillery pieces were in use. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 518, 'prompt_tokens': 28, 'total_tokens': 546} \n", + "1 {'completion_tokens': 497, 'prompt_tokens': 28, 'total_tokens': 525} \n", + "\n", + " latency moderation_flag \\\n", + "0 8.113981 False \n", + "1 8.594419 False \n", + "\n", + " moderation_topics \n", + "0 {'harassment': False, 'violence': False, 'moderation_flag': False} \n", + "1 {'harassment': False, 'violence': False, 'moderation_flag': False} " + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "experiment.evaluate(\"moderation_topics\", apply_moderation, {\"category_names\": [\"harassment\", \"violence\"]})\n", + "experiment.visualize()" + ] + }, + { + "cell_type": "markdown", + "id": "c2ee48f8", + "metadata": {}, + "source": [ + "To get numerical scores, you can see some results score higher in \"violence\" score than others." + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "348dcc0e", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
modelmessagestemperatureresponseresponse_usagelatencymoderation_flagmoderation_topicsmoderation_scores
0gpt-3.5-turbo[{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}]0.0During the American Civil War (1861-1865), a wide range of weapons were used by both the Union and Confederate forces. Here is a list of some of the most significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A muzzle-loading, single-shot rifle used by the Union Army.\\n - Enfield Pattern 1853: A British-made muzzle-loading, single-shot rifle used by both sides.\\n - Sharps Rifle: A breech-loading, single-shot rifle known for its accuracy and used by both sides.\\n\\n2. Muskets:\\n - Springfield Model 1861: A muzzle-loading, smoothbore musket used by the Union Army.\\n - Pattern 1853 Enfield: A muzzle-loading, smoothbore musket used by both sides.\\n - Lorenz Rifle: A muzzle-loading, rifled musket used primarily by the Confederacy.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A breech-loading, lever-action carbine used by Union cavalry.\\n - Sharps Carbine: A breech-loading, single-shot carbine used by both sides.\\n - Burnside Carbine: A breech-loading, single-shot carbine used by Union cavalry.\\n\\n4. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides.\\n - Parrott Rifle: A rifled, muzzle-loading cannon used by both sides.\\n - Whitworth Rifle: A British-made, rifled cannon used primarily by the Confederacy.\\n\\n5. Pistols:\\n - Colt Army Model 1860: A .44 caliber, single-action revolver used by both sides.\\n - Remington Model 1858: A .44 caliber, single-action revolver used by both sides.\\n - Smith & Wesson Model 2: A .32 caliber, single-action revolver used by both sides.\\n\\n6. Blades:\\n - Bayonets: Attached to the end of rifles and muskets, used for close combat.\\n - Swords: Officers on both sides often carried swords for personal defense.\\n\\n7. Naval Weapons:\\n - Dahlgren Gun: A smoothbore, muzzle-loading cannon used on naval vessels.\\n - Brooke Rifle: A rifled, muzzle-loading cannon used on Confederate naval vessels.\\n\\nIt is important to note that this list is not exhaustive, as there were numerous variations and models of these weapons used during the Civil War. Additionally, advancements in technology and the introduction of new weapons occurred throughout the conflict.{'completion_tokens': 518, 'prompt_tokens': 28, 'total_tokens': 546}8.113981False{'harassment': False, 'violence': False, 'moderation_flag': False}{'harassment_score': 5.6028698054433335e-06, 'violence_score': 0.006405988242477179, 'moderation_flag': False}
1gpt-3.5-turbo[{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}]1.0During the American Civil War (1861-1865), various weapons were utilized by both the Union and Confederate forces. Here is a list of some significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A widely used .58 caliber muzzle-loading rifle.\\n - Enfield Pattern 1853: A British-made rifle imported by both sides, often used by Confederate soldiers.\\n - Henry Repeating Rifle: Lever-action, magazine-fed rifle known for its rapid-fire capability, primarily used by Union troops.\\n\\n2. Muskets:\\n - Springfield Model 1861/1855: Smoothbore muskets often used by both sides earlier in the war.\\n - Lorenz Rifle: Austrian-made musket popular among Confederate forces.\\n - P53 Enfield: British-made musket used by both Union and Confederate soldiers.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A lever-action, seven-shot carbine used by Union cavalry, notable for its high rate of fire.\\n - Sharps Carbine: A single-shot breech-loading carbine utilized by both sides.\\n\\n4. Pistols:\\n - Colt Single Action Army Revolver: Often referred to as the \"Colt .45,\" a popular six-shot revolver used by Union cavalry.\\n - Remington Model 1858: A six-shot, percussion cap revolver used by both Union and Confederate troops.\\n\\n5. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides. It fired a 12-pound projectile.\\n - Parrott Rifle: A rifled artillery piece, available in various calibers, used primarily by Union forces.\\n - Whitworth Rifle: A British-made, breech-loading rifle known for its accuracy and long-range capabilities, favored by the Confederacy.\\n\\n6. Edged Weapons:\\n - Model 1840 Army Non-commissioned Officer Sword: A common sword used by Union infantry and cavalry.\\n - Model 1850 Army Staff and Field Officer's Sword: An ornate sword often carried by higher-ranking officers on both sides.\\n - Bowie Knife: A large, fixed-blade knife typically used by soldiers on both sides for close combat.\\n\\nIt is worth noting that this list only scratches the surface of the wide range of weapons employed throughout the Civil War, as various other firearms, bayonets, sabers, and artillery pieces were in use.{'completion_tokens': 497, 'prompt_tokens': 28, 'total_tokens': 525}8.594419False{'harassment': False, 'violence': False, 'moderation_flag': False}{'harassment_score': 3.943132924177917e-06, 'violence_score': 0.007170462515205145, 'moderation_flag': False}
\n", + "
" + ], + "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "\n", + " messages \\\n", + "0 [{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}] \n", + "1 [{'role': 'system', 'content': 'You are a historian.'}, {'role': 'user', 'content': 'Give me a list of weapons used in the civil war.'}] \n", + "\n", + " temperature \\\n", + "0 0.0 \n", + "1 1.0 \n", + "\n", + " response \\\n", + "0 During the American Civil War (1861-1865), a wide range of weapons were used by both the Union and Confederate forces. Here is a list of some of the most significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A muzzle-loading, single-shot rifle used by the Union Army.\\n - Enfield Pattern 1853: A British-made muzzle-loading, single-shot rifle used by both sides.\\n - Sharps Rifle: A breech-loading, single-shot rifle known for its accuracy and used by both sides.\\n\\n2. Muskets:\\n - Springfield Model 1861: A muzzle-loading, smoothbore musket used by the Union Army.\\n - Pattern 1853 Enfield: A muzzle-loading, smoothbore musket used by both sides.\\n - Lorenz Rifle: A muzzle-loading, rifled musket used primarily by the Confederacy.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A breech-loading, lever-action carbine used by Union cavalry.\\n - Sharps Carbine: A breech-loading, single-shot carbine used by both sides.\\n - Burnside Carbine: A breech-loading, single-shot carbine used by Union cavalry.\\n\\n4. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides.\\n - Parrott Rifle: A rifled, muzzle-loading cannon used by both sides.\\n - Whitworth Rifle: A British-made, rifled cannon used primarily by the Confederacy.\\n\\n5. Pistols:\\n - Colt Army Model 1860: A .44 caliber, single-action revolver used by both sides.\\n - Remington Model 1858: A .44 caliber, single-action revolver used by both sides.\\n - Smith & Wesson Model 2: A .32 caliber, single-action revolver used by both sides.\\n\\n6. Blades:\\n - Bayonets: Attached to the end of rifles and muskets, used for close combat.\\n - Swords: Officers on both sides often carried swords for personal defense.\\n\\n7. Naval Weapons:\\n - Dahlgren Gun: A smoothbore, muzzle-loading cannon used on naval vessels.\\n - Brooke Rifle: A rifled, muzzle-loading cannon used on Confederate naval vessels.\\n\\nIt is important to note that this list is not exhaustive, as there were numerous variations and models of these weapons used during the Civil War. Additionally, advancements in technology and the introduction of new weapons occurred throughout the conflict. \n", + "1 During the American Civil War (1861-1865), various weapons were utilized by both the Union and Confederate forces. Here is a list of some significant weapons employed during this conflict:\\n\\n1. Rifles:\\n - Springfield Model 1861: A widely used .58 caliber muzzle-loading rifle.\\n - Enfield Pattern 1853: A British-made rifle imported by both sides, often used by Confederate soldiers.\\n - Henry Repeating Rifle: Lever-action, magazine-fed rifle known for its rapid-fire capability, primarily used by Union troops.\\n\\n2. Muskets:\\n - Springfield Model 1861/1855: Smoothbore muskets often used by both sides earlier in the war.\\n - Lorenz Rifle: Austrian-made musket popular among Confederate forces.\\n - P53 Enfield: British-made musket used by both Union and Confederate soldiers.\\n\\n3. Carbines:\\n - Spencer Repeating Carbine: A lever-action, seven-shot carbine used by Union cavalry, notable for its high rate of fire.\\n - Sharps Carbine: A single-shot breech-loading carbine utilized by both sides.\\n\\n4. Pistols:\\n - Colt Single Action Army Revolver: Often referred to as the \"Colt .45,\" a popular six-shot revolver used by Union cavalry.\\n - Remington Model 1858: A six-shot, percussion cap revolver used by both Union and Confederate troops.\\n\\n5. Artillery:\\n - Napoleon Gun: A smoothbore, muzzle-loading cannon used by both sides. It fired a 12-pound projectile.\\n - Parrott Rifle: A rifled artillery piece, available in various calibers, used primarily by Union forces.\\n - Whitworth Rifle: A British-made, breech-loading rifle known for its accuracy and long-range capabilities, favored by the Confederacy.\\n\\n6. Edged Weapons:\\n - Model 1840 Army Non-commissioned Officer Sword: A common sword used by Union infantry and cavalry.\\n - Model 1850 Army Staff and Field Officer's Sword: An ornate sword often carried by higher-ranking officers on both sides.\\n - Bowie Knife: A large, fixed-blade knife typically used by soldiers on both sides for close combat.\\n\\nIt is worth noting that this list only scratches the surface of the wide range of weapons employed throughout the Civil War, as various other firearms, bayonets, sabers, and artillery pieces were in use. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 518, 'prompt_tokens': 28, 'total_tokens': 546} \n", + "1 {'completion_tokens': 497, 'prompt_tokens': 28, 'total_tokens': 525} \n", + "\n", + " latency moderation_flag \\\n", + "0 8.113981 False \n", + "1 8.594419 False \n", + "\n", + " moderation_topics \\\n", + "0 {'harassment': False, 'violence': False, 'moderation_flag': False} \n", + "1 {'harassment': False, 'violence': False, 'moderation_flag': False} \n", + "\n", + " moderation_scores \n", + "0 {'harassment_score': 5.6028698054433335e-06, 'violence_score': 0.006405988242477179, 'moderation_flag': False} \n", + "1 {'harassment_score': 3.943132924177917e-06, 'violence_score': 0.007170462515205145, 'moderation_flag': False} " + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "experiment.evaluate(\"moderation_scores\", apply_moderation, {\"category_score_names\": [\"harassment\", \"violence\"]})\n", + "experiment.visualize()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "86898588", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "04df3454", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.4" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/examples/notebooks/OpenAIChatExperiment.ipynb b/examples/notebooks/OpenAIChatExperiment.ipynb index 654a8e59..f840af3e 100644 --- a/examples/notebooks/OpenAIChatExperiment.ipynb +++ b/examples/notebooks/OpenAIChatExperiment.ipynb @@ -44,7 +44,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 13, "id": "ed4e635e", "metadata": {}, "outputs": [], @@ -156,9 +156,10 @@ " \n", " \n", " model\n", - " temperature\n", " messages\n", + " temperature\n", " response\n", + " response_usage\n", " latency\n", " \n", " \n", @@ -166,45 +167,49 @@ " \n", " 0\n", " gpt-3.5-turbo\n", - " 0.0\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 0.0\n", " George Washington\n", - " 2.625049e-06\n", + " {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75}\n", + " 0.000006\n", " \n", " \n", " 1\n", " gpt-3.5-turbo\n", - " 1.0\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 1.0\n", " George Washington\n", - " 1.000008e-06\n", + " {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75}\n", + " 0.000005\n", " \n", " \n", " 2\n", " gpt-3.5-turbo-0613\n", - " 0.0\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 0.0\n", " George Washington\n", - " 7.500057e-07\n", + " {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75}\n", + " 0.000003\n", " \n", " \n", " 3\n", " gpt-3.5-turbo-0613\n", - " 1.0\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 1.0\n", " George Washington\n", - " 6.670016e-07\n", + " {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75}\n", + " 0.000002\n", " \n", " \n", "\n", "" ], "text/plain": [ - " model temperature \\\n", - "0 gpt-3.5-turbo 0.0 \n", - "1 gpt-3.5-turbo 1.0 \n", - "2 gpt-3.5-turbo-0613 0.0 \n", - "3 gpt-3.5-turbo-0613 1.0 \n", + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "2 gpt-3.5-turbo-0613 \n", + "3 gpt-3.5-turbo-0613 \n", "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", @@ -212,11 +217,23 @@ "2 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "3 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "\n", - " response latency \n", - "0 George Washington 2.625049e-06 \n", - "1 George Washington 1.000008e-06 \n", - "2 George Washington 7.500057e-07 \n", - "3 George Washington 6.670016e-07 " + " temperature response \\\n", + "0 0.0 George Washington \n", + "1 1.0 George Washington \n", + "2 0.0 George Washington \n", + "3 1.0 George Washington \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75} \n", + "1 {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75} \n", + "2 {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75} \n", + "3 {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75} \n", + "\n", + " latency \n", + "0 0.000006 \n", + "1 0.000005 \n", + "2 0.000003 \n", + "3 0.000002 " ] }, "metadata": {}, @@ -247,7 +264,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "id": "d861ab10", "metadata": {}, "outputs": [], @@ -257,7 +274,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 8, "id": "8ddbb951", "metadata": {}, "outputs": [], @@ -267,23 +284,12 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 9, "id": "e80dfeec", "metadata": { "scrolled": true }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/Users/kevin/miniconda3/envs/prompttools/lib/python3.11/site-packages/torch/utils/tensorboard/__init__.py:4: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.\n", - " if not hasattr(tensorboard, \"__version__\") or LooseVersion(\n", - "/Users/kevin/miniconda3/envs/prompttools/lib/python3.11/site-packages/torch/utils/tensorboard/__init__.py:6: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.\n", - " ) < LooseVersion(\"1.15\"):\n" - ] - } - ], + "outputs": [], "source": [ "experiment.evaluate(\"similar_to_expected\", similarity.semantic_similarity, expected=[\"George Washington\"] * 4)" ] @@ -298,7 +304,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 10, "id": "4d09c18e", "metadata": { "scrolled": true @@ -326,9 +332,10 @@ " \n", " \n", " model\n", - " temperature\n", " messages\n", + " temperature\n", " response\n", + " response_usage\n", " latency\n", " similar_to_expected\n", " \n", @@ -337,37 +344,41 @@ " \n", " 0\n", " gpt-3.5-turbo\n", - " 0.0\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 0.0\n", " George Washington\n", - " 2.625049e-06\n", + " {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75}\n", + " 0.000006\n", " 1.0\n", " \n", " \n", " 1\n", " gpt-3.5-turbo\n", - " 1.0\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 1.0\n", " George Washington\n", - " 1.000008e-06\n", + " {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75}\n", + " 0.000005\n", " 1.0\n", " \n", " \n", " 2\n", " gpt-3.5-turbo-0613\n", - " 0.0\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 0.0\n", " George Washington\n", - " 7.500057e-07\n", + " {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75}\n", + " 0.000003\n", " 1.0\n", " \n", " \n", " 3\n", " gpt-3.5-turbo-0613\n", - " 1.0\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 1.0\n", " George Washington\n", - " 6.670016e-07\n", + " {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75}\n", + " 0.000002\n", " 1.0\n", " \n", " \n", @@ -375,11 +386,11 @@ "" ], "text/plain": [ - " model temperature \\\n", - "0 gpt-3.5-turbo 0.0 \n", - "1 gpt-3.5-turbo 1.0 \n", - "2 gpt-3.5-turbo-0613 0.0 \n", - "3 gpt-3.5-turbo-0613 1.0 \n", + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "2 gpt-3.5-turbo-0613 \n", + "3 gpt-3.5-turbo-0613 \n", "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", @@ -387,11 +398,23 @@ "2 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "3 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "\n", - " response latency similar_to_expected \n", - "0 George Washington 2.625049e-06 1.0 \n", - "1 George Washington 1.000008e-06 1.0 \n", - "2 George Washington 7.500057e-07 1.0 \n", - "3 George Washington 6.670016e-07 1.0 " + " temperature response \\\n", + "0 0.0 George Washington \n", + "1 1.0 George Washington \n", + "2 0.0 George Washington \n", + "3 1.0 George Washington \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75} \n", + "1 {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75} \n", + "2 {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75} \n", + "3 {'completion_tokens': 18, 'prompt_tokens': 57, 'total_tokens': 75} \n", + "\n", + " latency similar_to_expected \n", + "0 0.000006 1.0 \n", + "1 0.000005 1.0 \n", + "2 0.000003 1.0 \n", + "3 0.000002 1.0 " ] }, "metadata": {}, @@ -422,7 +445,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "id": "d30cd8ad", "metadata": {}, "outputs": [], @@ -451,18 +474,18 @@ "id": "e5626394", "metadata": {}, "source": [ - "You can optional " + "You can optionally visualize the results with the following command" ] }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 12, "id": "d0007a1f", "metadata": {}, "outputs": [ { "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAABAYAAAKxCAYAAADARa4uAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABdiklEQVR4nO3deViVdf7/8ddhRxQQ3NcjrpUKLrhmULmMS6mZM1ZWJJbZfNtm0hxzignT0sbRmsnSVNq+OWNm6mhaFmKu41fBNRVU0HJLFFzZ798f/jgjAXqO5wB67ufjus6V3Pdned9wum7Oi8993xbDMAwBAAAAAABT8qjqAgAAAAAAQNUhGAAAAAAAwMQIBgAAAAAAMDGCA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ht59912HJjUMQxaLRU8//bRD/QAAAAAAgGs5dCmBYRglXuVtv96rbt26mjt3ru655x6XHxAAAAAAALCf3SsGhgwZIqvVWmLbE088IYvFov/5n/9Rx44dr9nfw8ND1atXV7NmzdSuXTt5enreUMEAAAAAAMB17A4GwsPDFR4eXmLbE088IUm69957df/997u2MgAAAAAAUOHsDgbKsmDBAkm67moBAAAAAABwc3IqGHj88cddVQcAAAAAAKgCDt18EAAAAAAAuBeCAQAAAAAATMypSwmutnHjRn300UfavHmzfvrpJ507d05FRUXX7GOxWFRQUOCqEgAAAAAAgIOcDgYuXbqkUaNGadGiRZIkwzCcLgoAAAAAAFQOp4OBRx55RMuWLZNhGAoICFC7du20efNmWSwW3X777fL391d6erpOnz4t6coqgU6dOikgIMDp4gEAAAAAgHOcusfAmjVrtHTpUknS0KFDdezYMW3cuNG2/4033tB//vMfnTp1Sps3b1a/fv1kGIZyc3OVkJCgxMRE56oHAAAAAABOcSoY+PjjjyVJ9evX12effaYaNWqU27ZLly76+uuv9fzzz2vXrl0aMmSI8vLynJm+hMOHD2vu3Ll68sknFR4eLi8vL1ksFk2ePPmGxouLi5PFYrnma9++fS6rHwAAAACAquDUpQTFlwz87ne/k5+fX6n9Zd1v4K9//atWr16tnTt3av78+Xr66aedKcFm1qxZmjVrlkvGulrjxo3VpEmTMvdVq1bN5fMBAAAAAFCZnAoGTpw4IUlq3759ie0Wi0WSlJubW6qPh4eHRo4cqUmTJulf//qXy4KBWrVqadCgQerSpYsiIyP14YcfavHixU6PO2rUKMXFxTlfIAAAAAAANyGngoGcnBxJUmBgYIntAQEBunjxos6ePVtmvxYtWkiS9u/f78z0JUyaNKnE1wsXLnTZ2AAAAAAAuCun7jEQHBws6cojC68WGhoqSUpLSyuzX3FgkJmZ6cz0AAAAAADASU6tGGjZsqUyMzOVkZFRYnvbtm2VkZGhNWvWlNkvKSlJUumVBjejxMRE7dmzR5mZmQoJCVGXLl302GOPqV69elVdGgAAAAAATnNqxUDnzp1lGIaSk5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N998o+nTp8swDElSRkaGRo0aJUkaPXo0NwUEAAAAANzS3CYY6Nmzp+Lj41VUVKSHH35YzZs3V3h4uDp27KiTJ09q4MCB+uMf/1iiT1ZWljIyMsq8s2OzZs00d+5ceXh4aPz48WrcuLE6duyoli1bav/+/erUqZOmT59eWYcHAAAAAECFcJtgQLqyamD58uW65557lJmZqbS0NLVr104zZ87U0qVL5enp6dB4jz32mH744QcNGjRIly9f1t69exUWFqa4uDitX79eAQEBFXQkAAAAAABUDotRvEYeAHBLiYuL01/+8he99tpriouLq+pyAAC4YZzTgKrlVisGAFStr776SnFxcUpJSbnhMRITE/Xcc8+pe/fuatiwoXx9fVWjRg116tRJ8fHxOn/+vMNjJiQkyGKxXPO1atUqh8dNSUlRXFycvvrqK4f7AgBubpzTIElFRUV655131KFDBwUEBCgkJES9e/fW119/fd2+OTk5evvtt9WlSxfVrFlT1apVU1hYmB566CGtW7euVPvDhw9r7ty5evLJJxUeHi4vLy9ZLBZNnjz5mvNUxPsM5uNV1QUAcB9fffWVPvroI1mtVkVERNzQGPPmzdNnn30mLy8vNWjQQO3bt9cvv/yi5ORkbd++XQsWLNDatWvVpEkTh8euU6eOWrZsWea+mjVrOjxeSkqK/vKXv+jxxx/XkCFDHO4PALh5cU5DYWGhBg8erBUrVsjDw0Nt27bV+fPn9d133+m7777T9OnT9dJLL5XZNyMjQ3379tWBAwfk5eWl1q1by9fXVz/99JMWLlyohg0b6q677irRZ9asWZo1a5bDdVbk+wzmQTAA4KYydOhQjRw5UlFRUfL397dt37t3rx566CHt3LlTY8eO1YoVKxweu3///kpISHBhtQAAlI9z2q1t+vTpWrFiherWravVq1crPDxckvS///u/evTRRzV+/HhFRUUpMjKyRL+LFy+qd+/eSktL09ixYzV58mSFhITY9qempiorK6vUfLVq1dKgQYPUpUsXRUZG6sMPP9TixYuvW2dFvs9gHgQDAG4qw4YNK3P77bffrg8//FBdunTR6tWrlZOTIz8/v0quDgAA+3FOu3Xl5eVp2rRpkqS//e1vtlBA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VKpfSkqKduzYIUm65557HKrpRlTE+wxuquKfiAigqhQWFhrt27c3JBmDBg0yzp49a9u3ZMkSw8/P77rPfB43blyJZz7/6U9/MiQZNWrUMH7++ecS802fPt2QZIwYMcIoKipyuN6ff/7ZeP75543du3eX2rdp0yajW7duhiSjXbt2RkFBQYn9ixYtMpo2bWr07NmzxPbs7GxjxIgRxpYtW0psLygoMObMmWP4+fld9znF5dm6dashyWjWrFmJZzJf7b333jMkGU2aNDEOHDhg2/6f//zHaNCgge37X94zn3+9/WpXP/M5PDzcSE9Pt+374YcfjJo1axqSjHfffbdEv6uf+fz222/bnvmcm5trPPvss7ZnPh8/ftzB7wgAVBzOaZzTKvuc9sYbbxiSjHr16hkpKSm27Z999pnh4eFhWCwWY/PmzaX6LV++3JBkVKtWzVi1apVt+08//WR07NjRkGTceeed153/8ccfNyQZ8fHx5bZx5n0GXI1gAHBzO3bsMIKDg20nqM6dOxtWq9WQZDz77LO2X5iOHDli61O8berUqYbFYjFCQ0ONyMhIo1atWoYkw8PDw/j8889LzZWWlmb4+PgYkoymTZsavXr1MqKioowFCxbYVevhw4cNSYYkIyQkxOjYsaPRoUMH27ySjObNmxtpaWml+i5YsMA279XOnj1r6xscHGx06NDBiIyMtH1PJBn9+/c3Ll++7ND31TCu/JLasmVLQ5IRGhpqdO/e3YiKijKef/55W5vLly8bd9xxh+2XnbZt2xqtWrWy/bJZ3i9LjvwS9fvf/95o3Lix4eXlZURERBitW7e2Hdt9991n+yXpau+9955hsVgMSUbdunVLfE98fX2Nf//73w5/PwCgonFO45xWmee0/Px84ze/+Y3tfdK+fXsjLCzMVs/UqVPL7VscOkkyWrZsaXTs2NEWnISFhRkZGRml+qxfv94IDQ21vXx9fW3v9au3X/3+duZ9BlyNYAAwgbS0NGPEiBFGaGio4efnZ7Rr1874+9//bhiGYTtxXP2Xl+Jfog4fPmysWrXKuOuuu4waNWoY1atXN+655x4jKSmp3LlWr15tREVFGYGBgbaT9GuvvWZXnZcvXzY++OAD47e//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ox4Xq+Xy3FxHM/n4+T+fB1Hnq/jdjyfj2dFURRFAAAAgNJqsLYLAAAAANYu4QAAAACUnHAAAAAASk44AAAAACUnHAAAAICSEw4AAABAyQkHAAAAoOSEAwAAAFBywgEAAAAoOeHAWvLCCy/k4osvzrBhw9K1a9c0atQoFRUV+cUvfrG2S1up8ePHp6Ki4lM/fve7363tMgEAAKihRmu7gLK69NJLM2LEiLVdxirZfPPNs++++65w3/bbb7+GqwEAAKC2hANrSZcuXfKDH/wgPXr0SM+ePXPOOefk//7v/9Z2WdXSuXPnjBo1am2XAQAAQB0RDqwlRx999DJfN2jgDg8AAADWDr+RrmcWLVqUP/zhD+nfv39at26dJk2apGPHjjnhhBMybdq0tV0eAAAA6yFXDqxH5s6dmwMOOCDjx49PZWVldtppp2y66aZ55pln8rvf/S6jR4/O3XffnR49eqzWOt5+++2cffbZefPNN9O0adN07tw5X/3qV9O+ffvVOi8AAACrh3BgPXL88cdn/Pjx2X///XPFFVdks802q9r3m9/8Jt/97nfzX//1X3nuuefSsGHD1VbH888/n5/+9KfLbGvUqFFOPvnknHfeeWnUyI8VAADA+sRtBeuJ5557Ln/+85+z5ZZb5tprr10mGEiSU089NQMHDsyLL76YO+64Y7XU0LJly5x66qmZMGFC3nrrrcyfPz9PP/10vvvd76aioiIXXnhhTjzxxNUyNwAAAKuPP/GuJ8aOHZuiKLLffvulefPmK2zTv3//jB07Ng899FD233//ZbZPnz69xnM+/fTTady4cdXXPXr0WO6Wha5du+bXv/51dt999wwePDiXX355TjzxxHTv3r3G8wEAALB2CAfWE6+88kqS5IorrsgVV1zxqW3ffffdZb5+6aWX8uabb9Z4ziVLllS77cEHH5zu3btnypQpue2224QDAAAA6xHhwHpi6S/q3bt3T7du3T617S677LLM12+88cZqq+uTdthhh0yZMmWNzQcAAEDdEA6sJ7beeuskSd++fTNy5Mi1XM2KzZw5M0lWetsDAAAA6yYLEq4n9ttvvyTJrbfemg8//HAtV7O8N998Mw888ECSZOedd17L1QAAAFATw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++3P4NNtgghxxySJ555pncc889NQoHunfvnvHjx1e7PQAAAKzK7eb9+/ev9tUG9eJpBT169EiSzJw5c6ULDj7xxBNJkp49e37meK+//nrV5yu70mDpQoT/+SQDAAAAWN/Ui3CgXbt26d27d5Lk2muvXW7/xIkTM23atDRp0iQDBw78zPE+udDgo48+usI2jzzySJKs9NGJAAAAsL6oF+FAkpxxxhlJkuHDh2fSpElV22fOnJkTTzwxSXLSSSct8+jBMWPGpHPnzhkwYMAyY7Vv374qbPjOd76TqVOnLrP/j3/8Y66//vokydChQ+v8WAAAAGBNqhdrDiTJoEGDcsopp+Siiy5Knz59MmDAgDRr1iz33ntvZs2alb59++bnP//5Mn1mz56dF154IR9++OFy41155ZXZc88989xzz2WHHXZInz590qZNmzz33HP5+9//niT5xje+ka9//etr5PgAAABgdak34UCSjBgxIn379s1vf/vbPPTQQ/n444/TqVOnnH766fnud7+bxo0bV3usLl265Nlnn82FF16YO+64I48//ngWLlyYjTfeOPvss0++9a1vZciQIavxaAAAAGDNqCiKoljbRZTB0lUi+/Xrt84/raCiomJtlwDAauCUDwDlUpPfQ+vNmgMAAADAqhEOAAAAQMkJBwAAAKDkhAMAAABQcsIBAAAAKDnhAAAAAJSccAAAAABKTjgAAAAAJSccAAAAgJITDgAAAEDJCQcAAACg5IQDAAAAUHLCAQAAACg54QAAAACUnHAAAAAASk44AAAAACUnHAAAAICSEw4AAABAyQkHAAAAoOSEAwAAAFBywgEAAAAoOeEAAAAAlJxwAAAAAEpOOAAAAAAlJxwAAACAkhMOAAAAQMkJBwAAAKDkhAMAAABQcsIBAAAAKDnhAAAAAJSccAAAAABKTjgAAAAAJSccAAAAgJITDgAAAEDJCQcAAACg5IQDAAAAUHLCAQAAACg54QAAAACUnHAAAAAASk44AAAAACUnHAAAAICSEw4AAABAyQkHAAAAoOSEAwAAAFBywgEAAAAoOeEAAAAAlJxwAAAAAEquUV0NVBRFXn755UydOjXvvfdePvjgg2y44YZp3bp1OnTokE6dOqWioqKupgMAAADqSK3CgRdffDFjxozJnXfemccffzwLFixYadtmzZqld+/e2WeffXLQQQdlu+22q83UAAAAQB2pcTiwePHi3HDDDRk5cmQeeeSRqu1FUXxqv3nz5mX8+PEZP358fvzjH2eXXXbJySefnCFDhqRhw4Y1rxwAAACoE9UOB4qiyKhRo3L22Wfn9ddfr9q21DbbbJMddtghrVu3ziabbJIWLVpk9uzZmTlzZt5777384x//yLRp06raP/roo3n00Ufz4x//OD/96U9zxBFHpEEDSyAAAADAmlatcOBvf/tbTjrppPz973+vCgTatWuXgw8+OP3790+fPn3Stm3bzxxn+vTpefjhh/O3v/0tf/nLXzJt2rS8/vrrOfroo3PhhRfmt7/9bb70pS/V7ogAAACAGqlWONC/f/8kSYMGDTJ48OAcf/zx2WuvvWo8Wdu2bXPQQQfloIMOyoUXXpj7778/l156acaMGZNnn302e+65ZxYtWlTjcQEAAIBVV63r+CsqKnLkkUfm+eefzw033LBKwcCK7Lnnnrnhhhvy/PPPZ9iwYXUyJgAAAFAz1bpy4KmnnkqXLl1WWxGdOnXKlVdeme9///urbQ4AAABgxap15cDqDAY+accdd1wj8wAAAAD/j8cDAAAAQMkJBwAAAKDkqrXmQG2NGTMmDzzwQBYtWpTu3bvnsMMOy0YbbbQmpgYAAAA+Q63CgRdffLFqEcEzzzwzvXv3Xmb/Rx99lK9+9au57777ltk+fPjwjBs3Lh07dqzN9AAAAEAdqNVtBddff33++te/ZuLEienWrdty+3/5y1/m3nvvTVEUy3y89NJLOeigg7JkyZLaTA8AAADUgVqFAw8++GCSZO+9907jxo2X2bdw4cKMGDEiFRUVadmyZS688MLcfPPNGThwYJLkmWeeyejRo2szPQAAAFAHahUOvP7666moqEivXr2W23fXXXdlzpw5SZIrrrgi3/nOd3LAAQfklltuSadOnZIkN954Y22mBwAAAOpArcKBGTNmJEnatWu33L7x48cnSVq3bp2DDjqoanvDhg1z+OGHpyiKTJ48uTbTAwAAAHWgVuHA+++/nyTL3VKQJA899FAqKioyYMCAVFRULLPvc5/7XJJk+vTptZkeAAAAqAO1CgeaNm2aJHn33XeX2f7BBx9k0qRJSZLddtttuX6VlZVJ/v00AwAAAGDtqlU4sPR2gieffHKZ7ePGjcvHH3+cZMXhwNIrDpo3b16b6QEAAIA6UKtwYNddd01RFLnxxhvzxhtvJEkWLVqUX//610n+vd5Az549l+v33HPPJUnat29fm+kBAACAOlCrcODII49MksydOzfdu3fPYYcdlm7dumXixImpqKjIN7/5zTRosPwUDzzwQCoqKvLFL36xNtMDAAAAdaBW4cDuu++eY489NkVR5L333svo0aPz/PPPJ/n3LQc/+clPluvzyiuvVN2GsKJbDgAAAIA1q1bhQJJceuml+c1vfpMdd9wxjRs3zsYbb5zDDjssEydOTOvWrZdrf8kll1R9vs8++9R2egAAAKCWGtV2gIqKipxyyik55ZRTqtX+Bz/4QU4++eRUVFRYcwAAAADWAbUOB2qqbdu2a3pKAAAA4FPU+rYCAAAAYP0mHAAAAICSq1Y48MMf/jCzZ89erYW88847OfXUU1frHAAAAMDyqhUOXHDBBenUqVPOOuusvP/++3VawMyZM3Paaaflc5/7XC6++OI6HRsAAAD4bNUKB7bffvu89957Ofvss9OuXbsceeSRuf/++1MUxSpNunjx4tx666055JBD0q5du5x//vlZsGBBtt9++1UaDwAAAFh11XpawTPPPJNf//rXOffcczN79uxcc801ueaaa7LJJpukb9++6dOnT3bZZZd07tw5rVu3TuPGjav6fvTRR3nvvffy3HPP5dFHH82jjz6aiRMn5r333kuSFEWRli1b5owzzsh3v/vd1XOUAAAAwEpVKxxo1KhRfvSjH+WYY47Jr371q/zud7/LrFmzMmPGjNx666259dZbl2m/0UYbpXnz5pkzZ04++OCD5cZbesXBxhtvnBNPPDHf//7306pVq9ofDQAAAFBjNXpawcYbb5xzzjkn06ZNy6WXXpo+ffqkKIrlPubPn5+33347CxYsWG5fkuy+++75/e9/n2nTpuXnP/+5YAAAAADWompdOfCfmjVrluOOOy7HHXdcpk+fnnHjxuXRRx/NM888k6lTp+a9997LwoUL07Rp02yyySbp2LFjunbtmj59+uQrX/lKNttss7o+DgAAAGAVrVI48Elt27bNEUcckSOOOKIu6gEAAADWsBrdVgAAAADUP8IBAAAAKDnhAAAAAJSccAAAAABKTjgAAAAAJSccAAAAgJITDgAAAEDJCQcAAACg5IQDAAAAUHLCAQAAACg54QAAAACUnHAAAAAASq5W4cAZZ5yRqVOn1lEpdWP06NHp379/Nt544zRr1izdunXLeeedl48//niVx7zllltywAEHpG3btmncuHE222yz7Lbbbjn77LPrsHIAAABYO2oVDgwfPjzbbrtt9t1339x8881ZvHhxXdW1Sk499dQMGTIkDz74YHbeeefsu+++ef3113Paaadlr732ygcffFCj8T766KMMGTIkgwYNyj333JMdd9wxhxxySLp06ZKXX345F1100Wo6EgAAAFhzGtV2gCVLluTuu+/O3XffnbZt2+aoo47K0Ucfnfbt29dFfdV28803Z8SIEamsrMyECRPSs2fPJMmMGTOy1157ZeLEiTnzzDNz/vnnV3vMY445JqNHj86gQYNy+eWXp02bNlX7lixZkscee6zOjwMAAADWtFpdOXDVVVdl1113TVEUKYoib731Vn75y1+mU6dO2X///XPbbbdlyZIldVXrpzrnnHOSJKeffnpVMJAkbdq0ySWXXJIkGTlyZGbPnl2t8e69995cc8016dKlS2644YZlgoEkadCgQfr06VNH1QMAAMDaU6tw4IgjjsiDDz6Yp59+Ot/+9rfTqlWrFEWRxYsX54477sigQYOyzTbb5Kyzzsobb7xRVzUv580338zjjz+eJBk6dOhy+3ffffdsvfXWWbhwYcaOHVutMS+++OIk/75VYYMNNqi7YgEAAGAdUydPK+jSpUsuvvji/Otf/8qVV16ZPn36VF1N8Oabb+bss89Ox44dc+CBB2bs2LEpiqIupq0yefLkJEnr1q3TsWPHFbbp1avXMm0/zeLFi3PvvfcmSfbYY49Mnz49v/nNb3LCCSfk1FNPzdVXX5158+bVUfUAAACwdtV6zYFPatq0aYYNG5Zhw4bl2Wefze9+97v86U9/yuzZs7N48eL89a9/zV//+te0a9cuxxxzTL71rW9lyy23rPW8r776apJ86joHW2+99TJtP80rr7xS9cv/I488khNPPHG5MOCHP/xhrrvuuuy11141qnXKlCnp379/jfosfU0BAAAop1GjRmXUqFE16jNlypRqt63TcOCTunTpkpEjR+ZXv/pVrrvuuvz+97/Po48+miSZNm1afvrTn+bss8/O/vvvnxNOOCFf/vKXV3muuXPnJkmaNWu20jaVlZVJkjlz5nzmeDNnzqz6/Kijjspuu+2W888/P507d87LL7+cM844I2PHjs2BBx6YSZMmZbvttqt2rbNnz86ECROq3T5JjcMEAAAA6pepU6fW+HfJmlht4cBSG264YY488sgMGTIkP/7xjzNy5MhUVFQkSRYtWpRbbrklt9xyS3bYYYf8/Oc/z0EHHbS6S/pMn7ztYauttsq4cePSpEmTJEm3bt1y6623pnv37nn22WczfPjwXHHFFdUeu2XLlunevXuN6unQoUON2gMAAFC/dOjQIf369atRnylTplR7Uf7VHg5MmTIll112Wf785z9n7ty5qaioSFEUadCgQbbddtu8+OKLSZLnnnsuhxxySA477LBcc801adiwYbXnaN68eZJk/vz5K22z9LaAFi1aVHu85N+X9C8NBpZq2LBhjjvuuJx88sm55557ql1nknTv3j3jx4+vUR8AAADKbVVuN+/fv3+1rzaokwUJ/9OCBQvyhz/8ITvvvHN22mmn/P73v8+cOXNSFEU22WST/OhHP8qLL76YF154IZMnT84xxxyTxo0bpyiKXHfddbnssstqNN/Sv6xPmzZtpW2W7qvOX+E7dOhQdXXD5z73uRW2Wbr9rbfeqkGlAAAAsO6p03Bg8uTJOf7447PFFlvkuOOOy5NPPln11ILddtst//d//5c33ngjw4cPr3qqQLdu3XLZZZfl6aefTvv27VMURS6//PIazdujR48k/14rYGULDj7xxBNJkp49e37meJWVldl+++2TJDNmzFhhm6Xbl65lAAAAAOurWocD8+fPz+WXX57evXunV69eufzyyzN37twURZFmzZrluOOOy1NPPZWJEyfm61//eho3brzCcbbbbrv84Ac/SJK8/PLLNaqhXbt26d27d5Lk2muvXW7/xIkTM23atDRp0iQDBw6s1piHHnpokqz0toG77747SbLzzjvXqFYAAABY19QqHDjuuOOy5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zVT7yoFBgwalQ4cOy2w78sgjU1FRkZNOOik9e/b81P4NGjRIZWVlOnbsmK5du6Zhw4arVDAAAABQt6odDnTr1i3dunVbZtuRRx6ZJBkwYEAOOOCAuq0MAAAAWCOqHQ6syFVXXZUkn3nVAAAAALDuqlU4cMQRR9RVHQAAAMBaUqMFCQEAAID6RzgAAAAAJVer2wo+6aGHHsrVV1+dRx55JG+88UbmzJmTJUuWfGqfioqKLFq0qK5KAAAAAFZBrcOBBQsW5Fvf+lZGjx6dJCmKotZFAQAAAGtOrcOBr3/967n11ltTFEWaNWuWrl275pFHHklFRUW+8IUvZMMNN8zUqVMzY8aMJP++WmCnnXZKs2bNal08AAAAUHu1WnPgnnvuyS233JIkGTRoUP71r3/loYceqtr/y1/+Mo899ljeeeedPProo9l3331TFEUWLlyYUaNG5f77769d9QAAAECt1SocuOaaa5IkW2yxRa699to0b958pW179+6dsWPH5jvf+U6eeeaZDBo0KB999FFtpgcAAADqQK3CgaW3D/zXf/1XmjZtutz+Fa0/cMEFF6Rz5855+umnc+WVV9ZmegAAAKAO1CocmD59epLki1/84jLbKyoqkiQLFy5cfsIGDfKNb3wjRVHkhhtuqM30AAAAQB2oVTjw4YcfJklatGixzPaliw2+//77K+y37bbbJkleeOGF2kwPAAAA1IFahQOtWrVK8u/HGX7SJptskiR56aWXVthvaWgwc+bM2kwPAAAA1IFahQPbbbddkuS1115bZnuXLl1SFEXuueeeFfabMGFCkuWvOAAAAADWvFqFA7169UpRFJk8efIy2/fdd98kydNPP53LLrtsmX1/+ctfcv3116eioiK9evWqzfQAAABAHahVODBgwIAkyX333ZfFixdXbf/6179edWvBiSeemJ133jlDhw7NzjvvnEMPPbTqKQbHHntsbaYHAAAA6kCtwoF99tknHTp0SOPGjZe5haBVq1b5wx/+kIYNG6Yoijz55JO5/vrr8+STT1YFA9/61rcyaNCgWhUPAAAA1F6twoEmTZrklVdeyVtvvZV99tlnmX0HHnhgJkyYkAEDBlSFBEVR5POf/3wuueSSXH755bUqHAAAAKgbjVbn4LvuumvuvvvuLFq0KDNmzEizZs3SvHnz1TklAAAAUEOrNRyomqRRo7Rt23ZNTAUAAADUUK1uK1hVl1xySXr27JmddtppbUwPAAAAfMIauXLgP7311luZMmVKKioq1sb0AAAAwCeslSsHAAAAgHWHcAAAAABKTjgAAAAAJSccAAAAgJITDgAAAEDJCQcAAACg5OpdODB69Oj0798/G2+8cZo1a5Zu3brlvPPOy8cff1zrsceOHZuKiopUVFRk7733roNqAQAAYO2rV+HAqaeemiFDhuTBBx/MzjvvnH333Tevv/56TjvttOy111754IMPVnns999/P8ccc0wqKirqsGIAAABY++pNOHDzzTdnxIgRqayszKOPPppx48blpptuyosvvpiuXbtm4sSJOfPMM1d5/JNPPjlvv/12jj/++DqsGgAAANa+aocDDRs2rLOPc845p84PZOmYp59+enr27Fm1vU2bNrnkkkuSJCNHjszs2bNrPPaYMWPypz/9Kd/73vey8847103BAAAAsI6odjhQFEXVf2v7UdfefPPNPP7440mSoUOHLrd/9913z9Zbb52FCxdm7NixNRp7xowZOf7447P99tvn7LPPrpN6AQAAYF1So9sK6uoX+7oOCCZPnpwkad26dTp27LjCNr169VqmbXWdcMIJmTFjRq644oo0bdq0doUCAADAOqhRdRsuWbJkddZRK6+++mqSpH379itts/XWWy/Ttjquu+663HjjjfnOd76Tvn371q5IAAAAWEdVOxxYl82dOzdJ0qxZs5W2qaysTJLMmTOnWmNOnz493/72t9OpU6c6XSNhypQp6d+/f436DBs2LMOGDauzGgAAAFi/jBo1KqNGjapRnylTplS7bb0IB1aHY489Nu+//35uuummbLTRRnU27uzZszNhwoQa9alpmAAAAED9MnXq1Br/LlkT9SIcaN68eZJk/vz5K20zb968JEmLFi0+c7yrr746t912W0444YQ6/8W8ZcuW6d69e436dOjQoU5rAAAAYP3SoUOH9OvXr0Z9pkyZUu0n9tWLcGDpL8/Tpk1baZul+6rzi/aYMWOSJI8//vhy4cD06dOTJE8++WTVvuuuuy5t27atVq3du3fP+PHjq9UWAAAAklW73bx///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JSccAAAAABKTjgAAAAAJSccAAAAgJITDgAAAEDJCQcAAACg5IQDAAAAUHLCAQAAACg54QAAAACUnHAAAAAASk44AAAAACUnHAAAAICSEw4AAABAyQkHAAAAoOSEAwAAAFBywgEAAAAoOeEAAAAAlJxwAAAAAEpOOAAAAAAlJxwAAACAkhMOAAAAQMnVu3Bg9OjR6d+/fzbeeOM0a9Ys3bp1y3nnnZePP/64RuNMnjw55557bgYMGJDNN988G2ywQTbeeON86Utfym9/+9sajwcAAADrqkZru4C6dOqpp2bEiBFp1KhR9tprr1RWVua+++7Laaedlttuuy133XVXNtxww88cZ9GiRenZs2eSpLKyMr17987mm2+eN954Iw8//HAmTpyYa665JuPGjUurVq1W81EBAADA6lVvrhy4+eabM2LEiFRWVubRRx/NuHHjctNNN+XFF19M165dM3HixJx55pnVHm+nnXbKDTfckBkzZuS+++7Ln//85zzwwAOZPHlytthiizz22GP53ve+txqPCAAAANaMehMOnHPOOUmS008/veqv/knSpk2bXHLJJUmSkSNHZvbs2Z85VqNGjfLEE0/k0EMPTZMmTZbZ17Vr15x33nlJkuuuu87tBQAAAKz36kU48Oabb+bxxx9PkgwdOnS5/bvvvnu23nrrLFy4MGPHjq31fD169EiSfPDBB5kxY0atxwMAAIC1qV6EA5MnT06StG7dOh07dlxhm169ei3TtjZefPHFJEnjxo3TunXrWo8HAAAAa1O9WJDw1VdfTZK0b99+pW223nrrZdquqqIoqm4r2H///Ze77eCzTJkyJf37969Rn2HDhmXYsGE16gMAAED9MWrUqIwaNapGfaZMmVLttvUiHJg7d26SpFmzZittU1lZmSSZM2dOreY666yz8vDDD6eysjLDhw+vcf/Zs2dnwoQJNepT0zABAACA+mXq1Kk1/l2yJupFOLCmXHPNNTn77LPToEGDXHnlldluu+1qPEbLli3TvXv3GvXp0KFDjecBAACg/ujQoUP69etXoz5Tpkyp1qL8ST0JB5o3b54kmT9//krbzJs3L0nSokWLVZpj9OjR+da3vpUkufzyy3PooYeu0jjdu3fP+PHjV6kvAAAA5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3LhxNttss+y22245++yzl2s7f/78XHvttfn+97+f/v37p0WLFqmoqPjMP0i+8cYb+dGPfpQvf/nL6dChQ5o3b54mTZqkffv2OeywwzJx4sRVPnbKpV48yhBYNwwbNixXX311rrrqqgwbNmyVxvjTn/6UP/3pT9l2223TpUuXbLrpppk5c2Yee+yxnHvuubniiity3333Zccdd6zx2J06dcruu+++wn1bbbVVjccbP3589txzz/Tr1y/jx4+vcX8A1l3OaST/XodsxIgRadSoUfbaa69UVlbmvvvuy2mnnZbbbrstd9111wqvTv7oo4/yjW98I6NHj86GG26YXXfdNZtvvnmmT5+ev//977nooovy//1//98yfV588cV8/etfr3GNzz//fH71q19l4403zhe+8IX07t07ixYtynPPPZfrr78+119/ff73f/83P/rRj1b5daAchAPAOuUHP/hBzj///LRt23aZ7fPmzcu3vvWtjB49OkcffXQefvjhGo+9++67Z9SoUXVUKQB8Oue09dvNN9+cESNGpLKyMhMmTKh6hPmMGTOy1157ZeLEiTnzzDNz/vnnL9f3mGOOyejRozNo0KBcfvnladOmTdW+JUuW5LHHHluuT/PmzXPkkUemZ8+e6dGjR2bNmpX999//M+vs2rVrJk+enC9+8Ytp0GDZC8P//Oc/57//+7/z4x//OF/72teyww471PRloETq3W0FwPqte/fuy72JSpLKyspccMEFSZJHHnkkc+bMWdOlAUCNOKet384555wkyemnn14VDCRJmzZtcskllyRJRo4cmdmzZy/T7957780111yTLl265IYbblgmGEiSBg0apE+fPsvN16lTp1x55ZU56aST0rdv3zRr1qxadW6++ebp3r37csFAkhx++OHp169flixZknvuuada41FewgEogWeffTaDBw9OmzZtstFGG6Vr1675zW9+kyVLlqRDhw6pqKhYZu2NT24bM2ZMdt9997Ro0SLNmzdP//79M3bs2GXGnzp1aioqKnL11VcnSY488shl7n382c9+VifH0ajRvy92atCgQTbYYIM6GXNV9e/fP3vuuWeSZMKECcscb4cOHZZpV1FRsdJLNH/2s5+t8DX65PbXX389Rx11VLbeeutssMEGK7y8dcGCBTnjjDOy7bbbpmnTptlyyy1z1FFH5c0331zpMTz//PNVT2xp0qRJWrdunQEDBuSGG26o6csBsMY4p9U957Tlvfnmm3n88ceTJEOHDl1u/+67756tt946CxcuXO5n6OKLL07y71sS1vb3Nvl/P2tNmjRZy5WwrnNbAdRzEyZMyH777ZcPPvggnTp1ype//OXMnDkzp512Wh555JFP7XvRRRflwgsvTK9evbL//vvn5ZdfzoQJEzJhwoRcdNFFOfnkk5P8+y8gRxxxRCZOnJiXX345ffv2XWbxnO7du9f6OBYuXJgzzjgjSfLlL3+5xk8fSZKXXnop//M//5N33nknlZWV6dKlSw444IDlEv3q2HfffdO0adOMGzcum2++efbdd9+qfasy3sq8+OKL6dGjRxo3bpy+ffumKIrlxv/oo48yYMCAPP300+nfv3969uyZiRMn5sorr8zYsWPzt7/9Ldttt90yfW6//fYccsgh+fDDD7P99tvn4IMPzjvvvJMJEybkvvvuy7hx43LFFVfU2XEA1AXntP/HOe3/WR3ntMmTJydJWrdunY4dO66wTa9evTJt2rRMnjw5hx9+eJJk8eLFuffee5Mke+yxR6ZPn57rrrsuL7zwQpo0aZIePXpk8ODBqaysrFE9q+r222/P/fffn6ZNm+YrX/nKGpmT9VgB1FsLFiwottpqqyJJ8f3vf79YvHhx1b6///3vxeabb14kKZIUr776atW+bbbZpkhSVFRUFH/84x+XGfO6664rKioqikaNGhXPPPPMMvuOOOKIIklx1VVX1br2J598sjjiiCOKb37zm8V+++1XtGnTpkhS9O7du3jjjTdqNNZVV11VdZz/+dG0adNi+PDhq1Tj/fffXyQp+vXrt9I2/fr1K5IU999//wr3//SnPy2SFD/96U9XuD1J8Y1vfKP48MMPVzp/kmLbbbctXnvttap9H3zwQTF48OAiSdGnT59l+k2fPr1o2bJlkaT4xS9+USxZsqRq3+OPP15svPHGRZLi97///We/CABriHPavzmnrZlz2kUXXVQkKbp3777SNqecckqRpDjkkEOqtv3zn/+sOo5rrrmmqKysXO77tOmmmxb33nvvZ9aw9DXp1KlTtes+4YQTiiOOOKIYPHhw0bVr1yJJ0bx58+LGG2+s9hiUl9sKoB678cYb8+abb2abbbbJueeeu8y9aF/4whdy5plnfmr/Aw88cLlVc//rv/4rBx98cBYtWpSLLrpotdSdJK+//nquvvrqXHPNNbnjjjsyY8aM7L333rnuuutqvApz27Zt85Of/CSPPvpo3n333cyZMyePP/54vvnNb2bhwoU5/fTTq+4rXNe0bt06I0eO/MxLAc8///y0b9++6uumTZvmkksuyUYbbZRHHnkkDz30UNW+yy+/PLNnz85OO+2Un/zkJ6moqKja16tXr/zkJz9JkvzqV7+q46MBWHXOaf/mnLZmzmlz585Nkk+973/pX/8/uWbEzJkzqz4/6qijstNOO+Xxxx/P3LlzM2XKlAwcODDvvvtuDjzwwLz44os1qqk6rr322lx99dW56aab8swzz2TTTTfNqFGjMnjw4Dqfi/pHOAD12IQJE5Ikhx566Arvefusx+UcccQRn7p9dT7qaNCgQSmKIosWLcrUqVPzhz/8Ic8991y6dOmSG2+8sUZj7bvvvvnFL36RnXfeOW3atEnz5s3Tq1evXH311VUrDJ999tl5++23V8eh1Mree++dli1bfmqbVq1a5YADDlhu+2abbVZ1aegnv1dLP1/Z9/eoo45K8u/LP//1r3+tQtUAdc857d+c09btc1pRFFWfb7XVVhk3blx69eqVysrKdOvWLbfeemu6dOmSefPmZfjw4XU+/6xZs1IURWbOnFn1hIXBgwfn8MMPz+LFi+t8PuoXaw5APfbGG28kyTKLCX1Sq1at0rJly+VW2V1qZffYLd2+dPzq+sEPfpAZM2Yst/3THsXUsGHDbLPNNjnqqKMyYMCA7LjjjjnyyCOz++67r3AF6Jr6zne+k3PPPTczZszIXXfdlf/+7/9OkkycODF/+MMflms/aNCgDBo0qNbzVtfKvnf/2eaTfyn5pBV9r5Yu6LSy72+rVq3SunXrvPfee3njjTey5ZZb1rBqgLrnnPbZnNOWt7Jz2ooWQmzTpk1VwNK8efMkyfz581da67x585IkLVq0qNq2tN/SOf7zKomGDRvmuOOOy8knn7xanx7QunXr7LHHHvnSl76Ur33ta7nuuuvSt2/fnHTSSattTtZ/wgEogZWdZD9r32f5ZDpeHTfeeGNee+215bZX9znNHTp0yJ577pnbb789d999d9Wbntpo2LBhtttuu8yYMWOZNxsvvfRS1UrV/1lDXb6RWrJkyafuX5VFqlakpt8rgHWVc9rKOadV34pej2222aYqHFgaZEybNm2lYyzd98nQY2m4URRFPve5z62w39Ltb7311qqUXiMVFRUZNmxYbr/99owZM0Y4wKdyWwHUY0vvY/zkI50+afbs2Zk1a9ZK+7/66qsr3L50vHbt2tWonqlTp6YoiuU+amLpvX/vvPNOjfp9mqX3B/5n2r+iWmv6CKvGjRsn+X/3Lv6nFb2xrKmVfX8/ue+T36ulPxevvPLKCvvMnj0777333jJtAdY257TqcU5b1srOaSt6PT45d48ePZL8+/Vc2c/OE088kSTp2bNn1bbKyspsv/32SbLCK0s+uX1NPbFgdfycUT8JB6Ae22OPPZIko0ePzqJFi5bbf+21135q///7v/9b4fZrrrkmyb+fd/xJS980rGiuurBw4cJMnDgxSfL5z3++TsacNGlS/vnPfyZJdt555xr1rc7xLn0j8txzzy23b8GCBbn//vtrNOeKzJo1K7fddtty2999993ceeedSZb9Xi39fEV/NUmSK6+8Mkmy3XbbCQeAdYZz2mdzTlveqp7T2rVrl969eydZ8c/WxIkTM23atDRp0iQDBw5cZt+hhx6aJCu9beDuu+9OUvPv0apa+mjFuvo5ox5b3Y9DANae+fPnF1tssUWRpPjRj360zGOfnnvuuaJt27af+dinP//5z8uMOXr06KJBgwZFo0aNiqeeemqZfWeddVaRpDj11FNXqd633367uOSSS4rZs2cvt++NN94oDj300CJJ0aFDh+KDDz5YZv9f/vKXYvvtty/22muv5V6DkSNHFnPmzFluzAkTJhQdOnQokhS77757jet97bXXiiTFZpttVnz00UcrbPPHP/6xSFK0b99+mcdVzZs3r/j6179e9fqv7LFP/7n9kz752KftttuumDZtWtW+Dz/8sOr12nnnnZfpN3369KJFixZFkuKXv/zlMo99mjRpUtG6dWuPMgTWOc5pzmlr+pw2ZsyYIklRWVlZPPnkk1XbZ8yYUfWYwO9///vL9Xv33XerHqH4u9/9bpl9f/7zn4uKiooiSXH77bd/6vzVfZThZZddVjz//PPLbf/oo4+Kyy67rNhggw2KJMWdd975qeOAcADquXvvvbdo2rRp1XODDzvssOIrX/lK0bhx4+LQQw8t2rdvXyQp3nzzzao+S99InXrqqVXPYR46dGixyy67VJ24f/3rXy8311NPPVU0aNCgaNCgQbH33nsXRx55ZHHUUUcVt9xyS7VqffXVV4skRePGjYudd965GDJkSHHooYcWffr0KRo3blwkKbbccstiypQpy/Vd+tznbbbZZpnt77//fpGkaNKkSdGnT59iyJAhxcEHH1x06dKl6li6du1a/Otf/6rZC/v/16tXryJJsf322xdf//rXi6OOOqo47bTTqvZ/9NFHVW1atmxZfPWrXy3222+/YtNNNy222mqr4lvf+lat30jtuuuuxS677FJstNFGxf77718MGTKk2HLLLave5K3oDcNtt91W9XPRuXPn4vDDDy8GDBhQNGrUqEhSHHnkkav0egCsTs5pzmlr+px2yimnFEmKDTbYoNh3332LwYMHF61atSqSFH379i0WLFiwwn533XVXVU077rhjccghhxQ9evSo+j6deeaZK+w3aNCgYpdddil22WWXYocddqj6fi/dtssuuxSXX375Mn369etXFSIccMABxdChQ4sBAwZUBWYNGjQozj333FV+DSgP4QCUwFNPPVUcdNBBRevWrYumTZsWX/jCF4pf/epXxcKFC4vGjRsXDRo0WOavFkvfSL366qvFDTfcUOy6665FZWVl0axZs+JLX/pScdttt610rjFjxhR9+/YtmjdvXpWMf9qbgU+aP39+ccEFFxQHHnhg0alTp6J58+ZFo0aNijZt2hR77LFH8atf/WqFf4EpipW/kVq4cGFx5plnFvvtt1/RsWPHqjE33XTTYu+99y4uu+yyYuHChdWqb0Vee+21YujQocUWW2xR9SZkRW/mTjrppKJdu3bFBhtsUGy11VbFscceW7z99tsrfcNUkzdS/fr1K+bNm1f88Ic/LDp27Fg0bty42HzzzYthw4YVr7/++kr7/+Mf/yiOOOKIqrpatWpV7LnnnsV11123yq8HwOrmnOactiKr85x2/fXXF3vssUfRokWLYsMNNyy6dOlSDB8+/DNf6xdeeKE44ogjiq222qrYYIMNik022aQYOHBgMW7cuJX2Wfrz+mkf//k63n777cWxxx5bdOvWrdh0002LRo0aFc2bNy923HHH4oQTTljuqhhYmYqisIQ1lNXf/va39OvXL127ds3TTz9dtb1Dhw557bXX8uqrr1brsUMAsLY5pwHUjgUJoZ579913V7jK7rPPPptjjjkmSXLkkUeu6bIAoMac0wBWn0ZruwBg9fr73/+ePffcM1/4whfyuc99LhtuuGFeffXVTJo0KUuWLMmXv/zlnHzyyWu7TAD4TM5pAKuPcADquc9//vP59re/nQkTJuTBBx/M3Llz07x58+y2224ZOnRojjnmmDRq5H8FAKz7nNMAVh9rDgAAAEDJWXMAAAAASk44AAAAACUnHAAAAICSEw4AAABAyQkHAAAAoOSEAwAAAFBywgEAAAAoOeEAAAAAlJxwAAAAAEru/wdgyx9sx58BigAAAABJRU5ErkJggg==", "text/plain": [ "
" ] diff --git a/examples/notebooks/remote/Saving_and_Loading_ExperimentHarness_to_Remote.ipynb b/examples/notebooks/remote/Saving_and_Loading_ExperimentHarness_to_Remote.ipynb index 3a18bd09..6d92cc01 100644 --- a/examples/notebooks/remote/Saving_and_Loading_ExperimentHarness_to_Remote.ipynb +++ b/examples/notebooks/remote/Saving_and_Loading_ExperimentHarness_to_Remote.ipynb @@ -4,7 +4,9 @@ "cell_type": "code", "execution_count": 1, "id": "0921cecc", - "metadata": {}, + "metadata": { + "is_executing": true + }, "outputs": [], "source": [ "from prompttools.experiment import OpenAIChatExperiment\n", @@ -54,7 +56,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 3, "id": "6f5d85de", "metadata": {}, "outputs": [ @@ -80,8 +82,15 @@ " \n", " \n", " user_inputs\n", + " model\n", " messages\n", + " temperature\n", + " top_p\n", + " n\n", + " presence_penalty\n", + " frequency_penalty\n", " response\n", + " response_usage\n", " latency\n", " \n", " \n", @@ -89,41 +98,69 @@ " \n", " 0\n", " {'input': 'first'}\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", - " 1.197017\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He served two terms from 1789 to 1797.\n", + " {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47}\n", + " 1.251051\n", " \n", " \n", " 1\n", " {'input': 'second'}\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}]\n", - " The second president of the United States was John Adams.\n", - " 0.479534\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The second president of the United States was John Adams. He served from 1797 to 1801.\n", + " {'completion_tokens': 22, 'prompt_tokens': 23, 'total_tokens': 45}\n", + " 0.949733\n", " \n", " \n", " 2\n", " {'input': 'first'}\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " The first Vice President of the United States was John Adams, serving under President George Washington from 1789 to 1797.\n", - " 0.806056\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first Vice President of the United States was John Adams. He served as Vice President under President George Washington from 1789 to 1797.\n", + " {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54}\n", + " 0.936664\n", " \n", " \n", " 3\n", " {'input': 'second'}\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}]\n", - " The second Vice President of the United States was Thomas Jefferson, serving under President John Adams from 1797 to 1801.\n", - " 1.065417\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The second vice president of the United States was Thomas Jefferson. He served as vice president from 1797 to 1801 under President John Adams.\n", + " {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54}\n", + " 0.971230\n", " \n", " \n", "\n", "" ], "text/plain": [ - " user_inputs \\\n", - "0 {'input': 'first'} \n", - "1 {'input': 'second'} \n", - "2 {'input': 'first'} \n", - "3 {'input': 'second'} \n", + " user_inputs model \\\n", + "0 {'input': 'first'} gpt-3.5-turbo \n", + "1 {'input': 'second'} gpt-3.5-turbo \n", + "2 {'input': 'first'} gpt-3.5-turbo \n", + "3 {'input': 'second'} gpt-3.5-turbo \n", "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", @@ -131,17 +168,29 @@ "2 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", "3 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}] \n", "\n", - " response \\\n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The second president of the United States was John Adams. \n", - "2 The first Vice President of the United States was John Adams, serving under President George Washington from 1789 to 1797. \n", - "3 The second Vice President of the United States was Thomas Jefferson, serving under President John Adams from 1797 to 1801. \n", + " temperature top_p n presence_penalty frequency_penalty \\\n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", + "2 1.0 1.0 1 0.0 0.0 \n", + "3 1.0 1.0 1 0.0 0.0 \n", + "\n", + " response \\\n", + "0 The first president of the United States was George Washington. He served two terms from 1789 to 1797. \n", + "1 The second president of the United States was John Adams. He served from 1797 to 1801. \n", + "2 The first Vice President of the United States was John Adams. He served as Vice President under President George Washington from 1789 to 1797. \n", + "3 The second vice president of the United States was Thomas Jefferson. He served as vice president from 1797 to 1801 under President John Adams. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47} \n", + "1 {'completion_tokens': 22, 'prompt_tokens': 23, 'total_tokens': 45} \n", + "2 {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54} \n", + "3 {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54} \n", "\n", " latency \n", - "0 1.197017 \n", - "1 0.479534 \n", - "2 0.806056 \n", - "3 1.065417 " + "0 1.251051 \n", + "1 0.949733 \n", + "2 0.936664 \n", + "3 0.971230 " ] }, "metadata": {}, @@ -156,7 +205,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 4, "id": "dca05d0e", "metadata": {}, "outputs": [ @@ -175,7 +224,7 @@ "" ] }, - "execution_count": 6, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -194,50 +243,29 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 5, "id": "da6b96a2", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Sending HTTP GET request...\n", + "Loaded experiment.\n", + "Loaded harness.\n" + ] + } + ], "source": [ "harness_from_load = ChatPromptTemplateExperimentationHarness.load_experiment(harness._experiment_id)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "id": "243ff097", "metadata": {}, - "outputs": [], - "source": [ - "harness_from_load.visualize()" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "eac45d4d", - "metadata": {}, - "outputs": [], - "source": [ - "harness_from_load.run()\n", - "harness_from_load.visualize()" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "eaa30c25", - "metadata": {}, - "outputs": [], - "source": [ - "harness_from_load.experiment.run()" - ] - }, - { - "cell_type": "code", - "execution_count": 13, - "id": "feb04ffb", - "metadata": {}, "outputs": [ { "data": { @@ -260,20 +288,15 @@ " \n", " \n", " \n", + " user_inputs\n", " model\n", " messages\n", " temperature\n", " top_p\n", " n\n", - " stream\n", " presence_penalty\n", " frequency_penalty\n", " response\n", - " response_id\n", - " response_object\n", - " response_created\n", - " response_model\n", - " response_choices\n", " response_usage\n", " latency\n", " \n", @@ -281,575 +304,100 @@ " \n", " \n", " 0\n", + " {'input': 'first'}\n", " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", " 1.0\n", " 1.0\n", " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The first president of the United States was George Washington.\n", - " chatcmpl-8F4wN02YkqM8t17K8Jz8UliEEYY7F\n", - " chat.completion\n", - " 1698604603\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first president of the United States was George Washington.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 23, 'completion_tokens': 11, 'total_tokens': 34}\n", - " 0.829433\n", - " \n", - " \n", - " 1\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The second president of the United States was John Adams.\n", - " chatcmpl-8F4wOBz1Fnv0snkIIjsgWDYCJbCFN\n", - " chat.completion\n", - " 1698604604\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second president of the United States was John Adams.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 23, 'completion_tokens': 11, 'total_tokens': 34}\n", - " 0.712007\n", - " \n", - " \n", - " 2\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The first vice president of the United States was John Adams. He served under President George Washington from 1789 to 1797.\n", - " chatcmpl-8F4wOTBLjCC9dnI29Jyi8ol3UPw7R\n", - " chat.completion\n", - " 1698604604\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first vice president of the United States was John Adams. He served under President George Washington from 1789 to 1797.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 24, 'completion_tokens': 27, 'total_tokens': 51}\n", - " 1.023236\n", - " \n", - " \n", - " 3\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The second Vice President of the United States was Thomas Jefferson. He served as Vice President under President John Adams from 1797 to 1801.\n", - " chatcmpl-8F4wQoEXOUtRbwj4B5xgr7HrlWfoO\n", - " chat.completion\n", - " 1698604606\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second Vice President of the United States was Thomas Jefferson. He served as Vice President under President John Adams from 1797 to 1801.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 24, 'completion_tokens': 30, 'total_tokens': 54}\n", - " 1.333316\n", - " \n", - " \n", - " 0\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The first president of the United States was George Washington. He served from 1789-1797.\n", - " chatcmpl-8F4wa7MquDquowetG3AIQomJqJlgG\n", - " chat.completion\n", - " 1698604616\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first president of the United States was George Washington. He served from 1789-1797.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 23, 'completion_tokens': 21, 'total_tokens': 44}\n", - " 0.853307\n", - " \n", - " \n", - " 1\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The second president of the United States was John Adams.\n", - " chatcmpl-8F4wbktfasTPH3OmSnzK0ElmbNW19\n", - " chat.completion\n", - " 1698604617\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second president of the United States was John Adams.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 23, 'completion_tokens': 11, 'total_tokens': 34}\n", - " 0.717581\n", - " \n", - " \n", - " 2\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The first Vice President of the United States was John Adams. He served as Vice President under President George Washington from 1789 to 1797.\n", - " chatcmpl-8F4wb39Imx8WTTcrP6GPLDfzJ1fN5\n", - " chat.completion\n", - " 1698604617\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first Vice President of the United States was John Adams. He served as Vice President under President George Washington from 1789 to 1797.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 24, 'completion_tokens': 30, 'total_tokens': 54}\n", - " 1.124732\n", - " \n", - " \n", - " 3\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The second Vice President of the United States was Thomas Jefferson, serving from 1797 to 1801 under President John Adams.\n", - " chatcmpl-8F4wc5lSprgny70aSqHQLP58gMWCR\n", - " chat.completion\n", - " 1698604618\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second Vice President of the United States was Thomas Jefferson, serving from 1797 to 1801 under President John Adams.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 24, 'completion_tokens': 26, 'total_tokens': 50}\n", - " 0.715227\n", - " \n", - " \n", - " 0\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", - " chatcmpl-8F4xSEJkYZ8YqC9K9CJ9IfUHj4k3C\n", - " chat.completion\n", - " 1698604670\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first president of the United States was George Washington. He served as president from 1789 to 1797.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 23, 'completion_tokens': 24, 'total_tokens': 47}\n", - " 0.946845\n", - " \n", - " \n", - " 1\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The second president of the United States was John Adams.\n", - " chatcmpl-8F4xTjgZqWNoYUvvEduczKmSBhEgm\n", - " chat.completion\n", - " 1698604671\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second president of the United States was John Adams.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 23, 'completion_tokens': 11, 'total_tokens': 34}\n", - " 0.716422\n", - " \n", - " \n", - " 2\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The first Vice President of the United States was John Adams. He served from 1789 to 1797 under President George Washington.\n", - " chatcmpl-8F4xUdAiuVAZ5c7M40KdAQM88GAqN\n", - " chat.completion\n", - " 1698604672\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first Vice President of the United States was John Adams. He served from 1789 to 1797 under President George Washington.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 24, 'completion_tokens': 27, 'total_tokens': 51}\n", - " 1.031161\n", - " \n", - " \n", - " 3\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", - " 0.0\n", - " 0.0\n", - " The second vice president of the United States was Thomas Jefferson.\n", - " chatcmpl-8F4xVmrsfR17Tn4NbNJiYvsrQ12T7\n", - " chat.completion\n", - " 1698604673\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second vice president of the United States was Thomas Jefferson.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 24, 'completion_tokens': 12, 'total_tokens': 36}\n", - " 0.712583\n", - " \n", - " \n", - " 0\n", - " gpt-3.5-turbo\n", - " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " 1.0\n", - " 1.0\n", - " 1\n", - " False\n", " 0.0\n", " 0.0\n", - " The first president of the United States was George Washington. He served as the country's president from 1789 to 1797.\n", - " chatcmpl-8F4xZXe1bYYMs6Fvdzshgy71j5AuT\n", - " chat.completion\n", - " 1698604677\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first president of the United States was George Washington. He served as the country's president from 1789 to 1797.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 23, 'completion_tokens': 27, 'total_tokens': 50}\n", - " 1.026579\n", + " The first president of the United States was George Washington. He served two terms from 1789 to 1797.\n", + " {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47}\n", + " 1.251051\n", " \n", " \n", " 1\n", + " {'input': 'second'}\n", " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}]\n", " 1.0\n", " 1.0\n", " 1\n", - " False\n", " 0.0\n", " 0.0\n", - " The second president of the United States was John Adams, serving from 1797 to 1801.\n", - " chatcmpl-8F4xa3vbyy0Tmo9sRapQ0AW8dyeAp\n", - " chat.completion\n", - " 1698604678\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second president of the United States was John Adams, serving from 1797 to 1801.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 23, 'completion_tokens': 21, 'total_tokens': 44}\n", - " 0.922105\n", + " The second president of the United States was John Adams. He served from 1797 to 1801.\n", + " {'completion_tokens': 22, 'prompt_tokens': 23, 'total_tokens': 45}\n", + " 0.949733\n", " \n", " \n", " 2\n", + " {'input': 'first'}\n", " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", " 1.0\n", " 1.0\n", " 1\n", - " False\n", " 0.0\n", " 0.0\n", " The first Vice President of the United States was John Adams. He served as Vice President under President George Washington from 1789 to 1797.\n", - " chatcmpl-8F4xbKCF97VHxoeuzuno4YUoQuovl\n", - " chat.completion\n", - " 1698604679\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first Vice President of the United States was John Adams. He served as Vice President under President George Washington from 1789 to 1797.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 24, 'completion_tokens': 30, 'total_tokens': 54}\n", - " 0.921220\n", + " {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54}\n", + " 0.936664\n", " \n", " \n", " 3\n", + " {'input': 'second'}\n", " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}]\n", " 1.0\n", " 1.0\n", " 1\n", - " False\n", " 0.0\n", " 0.0\n", - " The second Vice President of the United States was Thomas Jefferson. He served under President John Adams from 1797 to 1801.\n", - " chatcmpl-8F4xbdIvxnae3r0jiYPQGcpKe7hmW\n", - " chat.completion\n", - " 1698604679\n", - " gpt-3.5-turbo-0613\n", - " [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second Vice President of the United States was Thomas Jefferson. He served under President John Adams from 1797 to 1801.'}, 'finish_reason': 'stop'}]\n", - " {'prompt_tokens': 24, 'completion_tokens': 27, 'total_tokens': 51}\n", - " 0.925952\n", + " The second vice president of the United States was Thomas Jefferson. He served as vice president from 1797 to 1801 under President John Adams.\n", + " {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54}\n", + " 0.971230\n", " \n", " \n", "\n", "" ], "text/plain": [ - " model \\\n", - "0 gpt-3.5-turbo \n", - "1 gpt-3.5-turbo \n", - "2 gpt-3.5-turbo \n", - "3 gpt-3.5-turbo \n", - "0 gpt-3.5-turbo \n", - "1 gpt-3.5-turbo \n", - "2 gpt-3.5-turbo \n", - "3 gpt-3.5-turbo \n", - "0 gpt-3.5-turbo \n", - "1 gpt-3.5-turbo \n", - "2 gpt-3.5-turbo \n", - "3 gpt-3.5-turbo \n", - "0 gpt-3.5-turbo \n", - "1 gpt-3.5-turbo \n", - "2 gpt-3.5-turbo \n", - "3 gpt-3.5-turbo \n", + " user_inputs model \\\n", + "0 {'input': 'first'} gpt-3.5-turbo \n", + "1 {'input': 'second'} gpt-3.5-turbo \n", + "2 {'input': 'first'} gpt-3.5-turbo \n", + "3 {'input': 'second'} gpt-3.5-turbo \n", "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}] \n", "2 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", "3 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}] \n", - "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", - "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}] \n", - "2 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", - "3 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}] \n", - "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", - "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}] \n", - "2 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", - "3 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}] \n", - "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", - "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}] \n", - "2 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", - "3 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}] \n", "\n", - " temperature top_p n stream presence_penalty frequency_penalty \\\n", - "0 1.0 1.0 1 False 0.0 0.0 \n", - "1 1.0 1.0 1 False 0.0 0.0 \n", - "2 1.0 1.0 1 False 0.0 0.0 \n", - "3 1.0 1.0 1 False 0.0 0.0 \n", - "0 1.0 1.0 1 False 0.0 0.0 \n", - "1 1.0 1.0 1 False 0.0 0.0 \n", - "2 1.0 1.0 1 False 0.0 0.0 \n", - "3 1.0 1.0 1 False 0.0 0.0 \n", - "0 1.0 1.0 1 False 0.0 0.0 \n", - "1 1.0 1.0 1 False 0.0 0.0 \n", - "2 1.0 1.0 1 False 0.0 0.0 \n", - "3 1.0 1.0 1 False 0.0 0.0 \n", - "0 1.0 1.0 1 False 0.0 0.0 \n", - "1 1.0 1.0 1 False 0.0 0.0 \n", - "2 1.0 1.0 1 False 0.0 0.0 \n", - "3 1.0 1.0 1 False 0.0 0.0 \n", + " temperature top_p n presence_penalty frequency_penalty \\\n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", + "2 1.0 1.0 1 0.0 0.0 \n", + "3 1.0 1.0 1 0.0 0.0 \n", "\n", " response \\\n", - "0 The first president of the United States was George Washington. \n", - "1 The second president of the United States was John Adams. \n", - "2 The first vice president of the United States was John Adams. He served under President George Washington from 1789 to 1797. \n", - "3 The second Vice President of the United States was Thomas Jefferson. He served as Vice President under President John Adams from 1797 to 1801. \n", - "0 The first president of the United States was George Washington. He served from 1789-1797. \n", - "1 The second president of the United States was John Adams. \n", - "2 The first Vice President of the United States was John Adams. He served as Vice President under President George Washington from 1789 to 1797. \n", - "3 The second Vice President of the United States was Thomas Jefferson, serving from 1797 to 1801 under President John Adams. \n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The second president of the United States was John Adams. \n", - "2 The first Vice President of the United States was John Adams. He served from 1789 to 1797 under President George Washington. \n", - "3 The second vice president of the United States was Thomas Jefferson. \n", - "0 The first president of the United States was George Washington. He served as the country's president from 1789 to 1797. \n", - "1 The second president of the United States was John Adams, serving from 1797 to 1801. \n", + "0 The first president of the United States was George Washington. He served two terms from 1789 to 1797. \n", + "1 The second president of the United States was John Adams. He served from 1797 to 1801. \n", "2 The first Vice President of the United States was John Adams. He served as Vice President under President George Washington from 1789 to 1797. \n", - "3 The second Vice President of the United States was Thomas Jefferson. He served under President John Adams from 1797 to 1801. \n", - "\n", - " response_id response_object response_created \\\n", - "0 chatcmpl-8F4wN02YkqM8t17K8Jz8UliEEYY7F chat.completion 1698604603 \n", - "1 chatcmpl-8F4wOBz1Fnv0snkIIjsgWDYCJbCFN chat.completion 1698604604 \n", - "2 chatcmpl-8F4wOTBLjCC9dnI29Jyi8ol3UPw7R chat.completion 1698604604 \n", - "3 chatcmpl-8F4wQoEXOUtRbwj4B5xgr7HrlWfoO chat.completion 1698604606 \n", - "0 chatcmpl-8F4wa7MquDquowetG3AIQomJqJlgG chat.completion 1698604616 \n", - "1 chatcmpl-8F4wbktfasTPH3OmSnzK0ElmbNW19 chat.completion 1698604617 \n", - "2 chatcmpl-8F4wb39Imx8WTTcrP6GPLDfzJ1fN5 chat.completion 1698604617 \n", - "3 chatcmpl-8F4wc5lSprgny70aSqHQLP58gMWCR chat.completion 1698604618 \n", - "0 chatcmpl-8F4xSEJkYZ8YqC9K9CJ9IfUHj4k3C chat.completion 1698604670 \n", - "1 chatcmpl-8F4xTjgZqWNoYUvvEduczKmSBhEgm chat.completion 1698604671 \n", - "2 chatcmpl-8F4xUdAiuVAZ5c7M40KdAQM88GAqN chat.completion 1698604672 \n", - "3 chatcmpl-8F4xVmrsfR17Tn4NbNJiYvsrQ12T7 chat.completion 1698604673 \n", - "0 chatcmpl-8F4xZXe1bYYMs6Fvdzshgy71j5AuT chat.completion 1698604677 \n", - "1 chatcmpl-8F4xa3vbyy0Tmo9sRapQ0AW8dyeAp chat.completion 1698604678 \n", - "2 chatcmpl-8F4xbKCF97VHxoeuzuno4YUoQuovl chat.completion 1698604679 \n", - "3 chatcmpl-8F4xbdIvxnae3r0jiYPQGcpKe7hmW chat.completion 1698604679 \n", - "\n", - " response_model \\\n", - "0 gpt-3.5-turbo-0613 \n", - "1 gpt-3.5-turbo-0613 \n", - "2 gpt-3.5-turbo-0613 \n", - "3 gpt-3.5-turbo-0613 \n", - "0 gpt-3.5-turbo-0613 \n", - "1 gpt-3.5-turbo-0613 \n", - "2 gpt-3.5-turbo-0613 \n", - "3 gpt-3.5-turbo-0613 \n", - "0 gpt-3.5-turbo-0613 \n", - "1 gpt-3.5-turbo-0613 \n", - "2 gpt-3.5-turbo-0613 \n", - "3 gpt-3.5-turbo-0613 \n", - "0 gpt-3.5-turbo-0613 \n", - "1 gpt-3.5-turbo-0613 \n", - "2 gpt-3.5-turbo-0613 \n", - "3 gpt-3.5-turbo-0613 \n", - "\n", - " response_choices \\\n", - "0 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first president of the United States was George Washington.'}, 'finish_reason': 'stop'}] \n", - "1 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second president of the United States was John Adams.'}, 'finish_reason': 'stop'}] \n", - "2 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first vice president of the United States was John Adams. He served under President George Washington from 1789 to 1797.'}, 'finish_reason': 'stop'}] \n", - "3 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second Vice President of the United States was Thomas Jefferson. He served as Vice President under President John Adams from 1797 to 1801.'}, 'finish_reason': 'stop'}] \n", - "0 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first president of the United States was George Washington. He served from 1789-1797.'}, 'finish_reason': 'stop'}] \n", - "1 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second president of the United States was John Adams.'}, 'finish_reason': 'stop'}] \n", - "2 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first Vice President of the United States was John Adams. He served as Vice President under President George Washington from 1789 to 1797.'}, 'finish_reason': 'stop'}] \n", - "3 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second Vice President of the United States was Thomas Jefferson, serving from 1797 to 1801 under President John Adams.'}, 'finish_reason': 'stop'}] \n", - "0 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first president of the United States was George Washington. He served as president from 1789 to 1797.'}, 'finish_reason': 'stop'}] \n", - "1 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second president of the United States was John Adams.'}, 'finish_reason': 'stop'}] \n", - "2 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first Vice President of the United States was John Adams. He served from 1789 to 1797 under President George Washington.'}, 'finish_reason': 'stop'}] \n", - "3 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second vice president of the United States was Thomas Jefferson.'}, 'finish_reason': 'stop'}] \n", - "0 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first president of the United States was George Washington. He served as the country's president from 1789 to 1797.'}, 'finish_reason': 'stop'}] \n", - "1 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second president of the United States was John Adams, serving from 1797 to 1801.'}, 'finish_reason': 'stop'}] \n", - "2 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The first Vice President of the United States was John Adams. He served as Vice President under President George Washington from 1789 to 1797.'}, 'finish_reason': 'stop'}] \n", - "3 [{'index': 0, 'message': {'role': 'assistant', 'content': 'The second Vice President of the United States was Thomas Jefferson. He served under President John Adams from 1797 to 1801.'}, 'finish_reason': 'stop'}] \n", + "3 The second vice president of the United States was Thomas Jefferson. He served as vice president from 1797 to 1801 under President John Adams. \n", "\n", " response_usage \\\n", - "0 {'prompt_tokens': 23, 'completion_tokens': 11, 'total_tokens': 34} \n", - "1 {'prompt_tokens': 23, 'completion_tokens': 11, 'total_tokens': 34} \n", - "2 {'prompt_tokens': 24, 'completion_tokens': 27, 'total_tokens': 51} \n", - "3 {'prompt_tokens': 24, 'completion_tokens': 30, 'total_tokens': 54} \n", - "0 {'prompt_tokens': 23, 'completion_tokens': 21, 'total_tokens': 44} \n", - "1 {'prompt_tokens': 23, 'completion_tokens': 11, 'total_tokens': 34} \n", - "2 {'prompt_tokens': 24, 'completion_tokens': 30, 'total_tokens': 54} \n", - "3 {'prompt_tokens': 24, 'completion_tokens': 26, 'total_tokens': 50} \n", - "0 {'prompt_tokens': 23, 'completion_tokens': 24, 'total_tokens': 47} \n", - "1 {'prompt_tokens': 23, 'completion_tokens': 11, 'total_tokens': 34} \n", - "2 {'prompt_tokens': 24, 'completion_tokens': 27, 'total_tokens': 51} \n", - "3 {'prompt_tokens': 24, 'completion_tokens': 12, 'total_tokens': 36} \n", - "0 {'prompt_tokens': 23, 'completion_tokens': 27, 'total_tokens': 50} \n", - "1 {'prompt_tokens': 23, 'completion_tokens': 21, 'total_tokens': 44} \n", - "2 {'prompt_tokens': 24, 'completion_tokens': 30, 'total_tokens': 54} \n", - "3 {'prompt_tokens': 24, 'completion_tokens': 27, 'total_tokens': 51} \n", + "0 {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47} \n", + "1 {'completion_tokens': 22, 'prompt_tokens': 23, 'total_tokens': 45} \n", + "2 {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54} \n", + "3 {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54} \n", "\n", " latency \n", - "0 0.829433 \n", - "1 0.712007 \n", - "2 1.023236 \n", - "3 1.333316 \n", - "0 0.853307 \n", - "1 0.717581 \n", - "2 1.124732 \n", - "3 0.715227 \n", - "0 0.946845 \n", - "1 0.716422 \n", - "2 1.031161 \n", - "3 0.712583 \n", - "0 1.026579 \n", - "1 0.922105 \n", - "2 0.921220 \n", - "3 0.925952 " - ] - }, - "execution_count": 13, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "harness_from_load.experiment.full_df" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "id": "f72c4024", - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
user_inputsmessagesresponselatency
0{'input': 'first'}[{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]The first president of the United States was George Washington. He served as president from 1789 to 1797.1.023014
1{'input': 'second'}[{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}]The second president of the United States was John Adams. He served from 1797 to 1801.2.899930
2{'input': 'first'}[{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797.1.023490
3{'input': 'second'}[{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}]The second Vice President of the United States was Thomas Jefferson. He served as Vice President under President John Adams from 1797 to 1801.0.923946
\n", - "
" - ], - "text/plain": [ - " user_inputs \\\n", - "0 {'input': 'first'} \n", - "1 {'input': 'second'} \n", - "2 {'input': 'first'} \n", - "3 {'input': 'second'} \n", - "\n", - " messages \\\n", - "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", - "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}] \n", - "2 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", - "3 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}] \n", - "\n", - " response \\\n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The second president of the United States was John Adams. He served from 1797 to 1801. \n", - "2 The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797. \n", - "3 The second Vice President of the United States was Thomas Jefferson. He served as Vice President under President John Adams from 1797 to 1801. \n", - "\n", - " latency \n", - "0 1.023014 \n", - "1 2.899930 \n", - "2 1.023490 \n", - "3 0.923946 " + "0 1.251051 \n", + "1 0.949733 \n", + "2 0.936664 \n", + "3 0.971230 " ] }, "metadata": {}, @@ -862,8 +410,8 @@ }, { "cell_type": "code", - "execution_count": 16, - "id": "5e802e37", + "execution_count": 7, + "id": "eac45d4d", "metadata": {}, "outputs": [ { @@ -888,8 +436,15 @@ " \n", " \n", " user_inputs\n", + " model\n", " messages\n", + " temperature\n", + " top_p\n", + " n\n", + " presence_penalty\n", + " frequency_penalty\n", " response\n", + " response_usage\n", " latency\n", " \n", " \n", @@ -897,41 +452,69 @@ " \n", " 0\n", " {'input': 'first'}\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", " The first president of the United States was George Washington.\n", - " 0.551219\n", + " {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34}\n", + " 0.744072\n", " \n", " \n", " 1\n", " {'input': 'second'}\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}]\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", " The second president of the United States was John Adams.\n", - " 0.510815\n", + " {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34}\n", + " 0.613869\n", " \n", " \n", " 2\n", " {'input': 'first'}\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " The first Vice President of the United States was John Adams. Adams served as Vice President from 1789 to 1797, during President George Washington's administration.\n", - " 1.535680\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first Vice President of the United States was John Adams, serving under President George Washington from 1789 to 1797.\n", + " {'completion_tokens': 26, 'prompt_tokens': 24, 'total_tokens': 50}\n", + " 1.126319\n", " \n", " \n", " 3\n", " {'input': 'second'}\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}]\n", - " The second Vice President of the United States was Thomas Jefferson. He served as Vice President from 1797 to 1801, under President John Adams.\n", - " 0.921390\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The second vice president of the United States was Thomas Jefferson. He served as vice president under President John Adams from 1797 to 1801.\n", + " {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54}\n", + " 1.534311\n", " \n", " \n", "\n", "" ], "text/plain": [ - " user_inputs \\\n", - "0 {'input': 'first'} \n", - "1 {'input': 'second'} \n", - "2 {'input': 'first'} \n", - "3 {'input': 'second'} \n", + " user_inputs model \\\n", + "0 {'input': 'first'} gpt-3.5-turbo \n", + "1 {'input': 'second'} gpt-3.5-turbo \n", + "2 {'input': 'first'} gpt-3.5-turbo \n", + "3 {'input': 'second'} gpt-3.5-turbo \n", "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", @@ -939,137 +522,40 @@ "2 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", "3 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}] \n", "\n", - " response \\\n", - "0 The first president of the United States was George Washington. \n", - "1 The second president of the United States was John Adams. \n", - "2 The first Vice President of the United States was John Adams. Adams served as Vice President from 1789 to 1797, during President George Washington's administration. \n", - "3 The second Vice President of the United States was Thomas Jefferson. He served as Vice President from 1797 to 1801, under President John Adams. \n", - "\n", - " latency \n", - "0 0.551219 \n", - "1 0.510815 \n", - "2 1.535680 \n", - "3 0.921390 " - ] - }, - "execution_count": 16, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "harness.experiment.partial_df" - ] - }, - { - "cell_type": "code", - "execution_count": 17, - "id": "afc8e067", - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
user_inputsmessagesresponselatency
0{'input': 'first'}[{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]The first president of the United States was George Washington. He served as president from 1789 to 1797.1.023014
1{'input': 'second'}[{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}]The second president of the United States was John Adams. He served from 1797 to 1801.2.899930
2{'input': 'first'}[{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797.1.023490
3{'input': 'second'}[{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}]The second Vice President of the United States was Thomas Jefferson. He served as Vice President under President John Adams from 1797 to 1801.0.923946
\n", - "
" - ], - "text/plain": [ - " user_inputs \\\n", - "0 {'input': 'first'} \n", - "1 {'input': 'second'} \n", - "2 {'input': 'first'} \n", - "3 {'input': 'second'} \n", - "\n", - " messages \\\n", - "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", - "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second president?'}] \n", - "2 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", - "3 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the second vice president?'}] \n", + " temperature top_p n presence_penalty frequency_penalty \\\n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", + "2 1.0 1.0 1 0.0 0.0 \n", + "3 1.0 1.0 1 0.0 0.0 \n", "\n", " response \\\n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The second president of the United States was John Adams. He served from 1797 to 1801. \n", - "2 The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797. \n", - "3 The second Vice President of the United States was Thomas Jefferson. He served as Vice President under President John Adams from 1797 to 1801. \n", + "0 The first president of the United States was George Washington. \n", + "1 The second president of the United States was John Adams. \n", + "2 The first Vice President of the United States was John Adams, serving under President George Washington from 1789 to 1797. \n", + "3 The second vice president of the United States was Thomas Jefferson. He served as vice president under President John Adams from 1797 to 1801. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34} \n", + "1 {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34} \n", + "2 {'completion_tokens': 26, 'prompt_tokens': 24, 'total_tokens': 50} \n", + "3 {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54} \n", "\n", " latency \n", - "0 1.023014 \n", - "1 2.899930 \n", - "2 1.023490 \n", - "3 0.923946 " + "0 0.744072 \n", + "1 0.613869 \n", + "2 1.126319 \n", + "3 1.534311 " ] }, - "execution_count": 17, "metadata": {}, - "output_type": "execute_result" + "output_type": "display_data" } ], "source": [ - "harness_from_load.experiment.partial_df" + "harness_from_load.run(clear_previous_results=True) # You can set to `False` to persist previous results\n", + "harness_from_load.visualize()" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "19f2f8a3", - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "id": "2ebbc052", @@ -1124,58 +610,111 @@ " \n", " \n", " \n", + " model\n", " messages\n", + " temperature\n", + " top_p\n", + " n\n", + " presence_penalty\n", + " frequency_penalty\n", " response\n", + " response_usage\n", " latency\n", " \n", " \n", " \n", " \n", " 0\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", - " 0.987327\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States is George Washington.\n", + " {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34}\n", + " 0.849522\n", " \n", " \n", " 1\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797.\n", - " 1.222432\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first Vice President of the United States was John Adams. He served under President George Washington from 1789 to 1797.\n", + " {'completion_tokens': 27, 'prompt_tokens': 24, 'total_tokens': 51}\n", + " 1.012878\n", " \n", " \n", " 2\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He served as president from 1789 to 1797 and played a crucial role in establishing many of the practices and institutions that still exist in our country today.\n", - " 1.434122\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He was elected in 1788 and served two terms from 1789 to 1797.\n", + " {'completion_tokens': 31, 'prompt_tokens': 27, 'total_tokens': 58}\n", + " 1.540456\n", " \n", " \n", " 3\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " The first vice president of the United States was John Adams. He served as the vice president under President George Washington from 1789 to 1797. Adams later became the second president of the United States.\n", - " 1.125934\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first vice president of the United States was John Adams. He served as vice president from 1789 to 1797 under President George Washington. Adams later became the second president of the United States.\n", + " {'completion_tokens': 41, 'prompt_tokens': 28, 'total_tokens': 69}\n", + " 1.117473\n", " \n", " \n", "\n", "" ], "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "2 gpt-3.5-turbo \n", + "3 gpt-3.5-turbo \n", + "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", "2 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "3 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", "\n", - " response \\\n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797. \n", - "2 The first president of the United States was George Washington. He served as president from 1789 to 1797 and played a crucial role in establishing many of the practices and institutions that still exist in our country today. \n", - "3 The first vice president of the United States was John Adams. He served as the vice president under President George Washington from 1789 to 1797. Adams later became the second president of the United States. \n", + " temperature top_p n presence_penalty frequency_penalty \\\n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", + "2 1.0 1.0 1 0.0 0.0 \n", + "3 1.0 1.0 1 0.0 0.0 \n", + "\n", + " response \\\n", + "0 The first president of the United States is George Washington. \n", + "1 The first Vice President of the United States was John Adams. He served under President George Washington from 1789 to 1797. \n", + "2 The first president of the United States was George Washington. He was elected in 1788 and served two terms from 1789 to 1797. \n", + "3 The first vice president of the United States was John Adams. He served as vice president from 1789 to 1797 under President George Washington. Adams later became the second president of the United States. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34} \n", + "1 {'completion_tokens': 27, 'prompt_tokens': 24, 'total_tokens': 51} \n", + "2 {'completion_tokens': 31, 'prompt_tokens': 27, 'total_tokens': 58} \n", + "3 {'completion_tokens': 41, 'prompt_tokens': 28, 'total_tokens': 69} \n", "\n", " latency \n", - "0 0.987327 \n", - "1 1.222432 \n", - "2 1.434122 \n", - "3 1.125934 " + "0 0.849522 \n", + "1 1.012878 \n", + "2 1.540456 \n", + "3 1.117473 " ] }, "metadata": {}, @@ -1273,58 +812,111 @@ " \n", " \n", " \n", + " model\n", " messages\n", + " temperature\n", + " top_p\n", + " n\n", + " presence_penalty\n", + " frequency_penalty\n", " response\n", + " response_usage\n", " latency\n", " \n", " \n", " \n", " \n", " 0\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", - " 0.987327\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States is George Washington.\n", + " {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34}\n", + " 0.849522\n", " \n", " \n", " 1\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797.\n", - " 1.222432\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first Vice President of the United States was John Adams. He served under President George Washington from 1789 to 1797.\n", + " {'completion_tokens': 27, 'prompt_tokens': 24, 'total_tokens': 51}\n", + " 1.012878\n", " \n", " \n", " 2\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He served as president from 1789 to 1797 and played a crucial role in establishing many of the practices and institutions that still exist in our country today.\n", - " 1.434122\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He was elected in 1788 and served two terms from 1789 to 1797.\n", + " {'completion_tokens': 31, 'prompt_tokens': 27, 'total_tokens': 58}\n", + " 1.540456\n", " \n", " \n", " 3\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " The first vice president of the United States was John Adams. He served as the vice president under President George Washington from 1789 to 1797. Adams later became the second president of the United States.\n", - " 1.125934\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first vice president of the United States was John Adams. He served as vice president from 1789 to 1797 under President George Washington. Adams later became the second president of the United States.\n", + " {'completion_tokens': 41, 'prompt_tokens': 28, 'total_tokens': 69}\n", + " 1.117473\n", " \n", " \n", "\n", "" ], "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "2 gpt-3.5-turbo \n", + "3 gpt-3.5-turbo \n", + "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", "2 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "3 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", "\n", - " response \\\n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797. \n", - "2 The first president of the United States was George Washington. He served as president from 1789 to 1797 and played a crucial role in establishing many of the practices and institutions that still exist in our country today. \n", - "3 The first vice president of the United States was John Adams. He served as the vice president under President George Washington from 1789 to 1797. Adams later became the second president of the United States. \n", + " temperature top_p n presence_penalty frequency_penalty \\\n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", + "2 1.0 1.0 1 0.0 0.0 \n", + "3 1.0 1.0 1 0.0 0.0 \n", + "\n", + " response \\\n", + "0 The first president of the United States is George Washington. \n", + "1 The first Vice President of the United States was John Adams. He served under President George Washington from 1789 to 1797. \n", + "2 The first president of the United States was George Washington. He was elected in 1788 and served two terms from 1789 to 1797. \n", + "3 The first vice president of the United States was John Adams. He served as vice president from 1789 to 1797 under President George Washington. Adams later became the second president of the United States. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34} \n", + "1 {'completion_tokens': 27, 'prompt_tokens': 24, 'total_tokens': 51} \n", + "2 {'completion_tokens': 31, 'prompt_tokens': 27, 'total_tokens': 58} \n", + "3 {'completion_tokens': 41, 'prompt_tokens': 28, 'total_tokens': 69} \n", "\n", " latency \n", - "0 0.987327 \n", - "1 1.222432 \n", - "2 1.434122 \n", - "3 1.125934 " + "0 0.849522 \n", + "1 1.012878 \n", + "2 1.540456 \n", + "3 1.117473 " ] }, "metadata": {}, @@ -1362,65 +954,138 @@ " \n", " \n", " \n", + " model\n", " messages\n", + " temperature\n", + " top_p\n", + " n\n", + " presence_penalty\n", + " frequency_penalty\n", " response\n", + " response_usage\n", " latency\n", " \n", " \n", " \n", " \n", " 0\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", - " 0.987327\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States is George Washington.\n", + " {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34}\n", + " 0.849522\n", " \n", " \n", " 1\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797.\n", - " 1.222432\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first Vice President of the United States was John Adams. He served under President George Washington from 1789 to 1797.\n", + " {'completion_tokens': 27, 'prompt_tokens': 24, 'total_tokens': 51}\n", + " 1.012878\n", " \n", " \n", " 2\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He served as president from 1789 to 1797 and played a crucial role in establishing many of the practices and institutions that still exist in our country today.\n", - " 1.434122\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He was elected in 1788 and served two terms from 1789 to 1797.\n", + " {'completion_tokens': 31, 'prompt_tokens': 27, 'total_tokens': 58}\n", + " 1.540456\n", " \n", " \n", " 3\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " The first vice president of the United States was John Adams. He served as the vice president under President George Washington from 1789 to 1797. Adams later became the second president of the United States.\n", - " 1.125934\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first vice president of the United States was John Adams. He served as vice president from 1789 to 1797 under President George Washington. Adams later became the second president of the United States.\n", + " {'completion_tokens': 41, 'prompt_tokens': 28, 'total_tokens': 69}\n", + " 1.117473\n", " \n", " \n", " 0\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", - " 1.101437\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington.\n", + " {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34}\n", + " 0.872892\n", " \n", " \n", " 1\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " The first vice president of the United States was John Adams. He served under President George Washington from 1789 to 1797.\n", - " 0.816013\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797.\n", + " {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54}\n", + " 1.129201\n", " \n", " \n", " 2\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He served as the President from 1789 to 1797.\n", - " 0.723490\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He served as the president from 1789 to 1797. George Washington was a key figure in the American Revolution and played a crucial role in the formation of the United States as a nation. He is often called the \"Father of His Country\" for his leadership and contributions to the development of the young nation.\n", + " {'completion_tokens': 75, 'prompt_tokens': 27, 'total_tokens': 102}\n", + " 4.299786\n", " \n", " \n", " 3\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first vice president?'}]\n", - " The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797.\n", - " 1.122580\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first Vice President of the United States was John Adams. He served in this role from 1789 to 1797 under President George Washington. After his vice presidency, John Adams went on to become the second President of the United States.\n", + " {'completion_tokens': 49, 'prompt_tokens': 28, 'total_tokens': 77}\n", + " 1.591939\n", " \n", " \n", "\n", "" ], "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "2 gpt-3.5-turbo \n", + "3 gpt-3.5-turbo \n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "2 gpt-3.5-turbo \n", + "3 gpt-3.5-turbo \n", + "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", @@ -1431,25 +1096,45 @@ "2 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "3 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first vice president?'}] \n", "\n", - " response \\\n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797. \n", - "2 The first president of the United States was George Washington. He served as president from 1789 to 1797 and played a crucial role in establishing many of the practices and institutions that still exist in our country today. \n", - "3 The first vice president of the United States was John Adams. He served as the vice president under President George Washington from 1789 to 1797. Adams later became the second president of the United States. \n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The first vice president of the United States was John Adams. He served under President George Washington from 1789 to 1797. \n", - "2 The first president of the United States was George Washington. He served as the President from 1789 to 1797. \n", - "3 The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797. \n", + " temperature top_p n presence_penalty frequency_penalty \\\n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", + "2 1.0 1.0 1 0.0 0.0 \n", + "3 1.0 1.0 1 0.0 0.0 \n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", + "2 1.0 1.0 1 0.0 0.0 \n", + "3 1.0 1.0 1 0.0 0.0 \n", + "\n", + " response \\\n", + "0 The first president of the United States is George Washington. \n", + "1 The first Vice President of the United States was John Adams. He served under President George Washington from 1789 to 1797. \n", + "2 The first president of the United States was George Washington. He was elected in 1788 and served two terms from 1789 to 1797. \n", + "3 The first vice president of the United States was John Adams. He served as vice president from 1789 to 1797 under President George Washington. Adams later became the second president of the United States. \n", + "0 The first president of the United States was George Washington. \n", + "1 The first vice president of the United States was John Adams. He served as vice president under President George Washington from 1789 to 1797. \n", + "2 The first president of the United States was George Washington. He served as the president from 1789 to 1797. George Washington was a key figure in the American Revolution and played a crucial role in the formation of the United States as a nation. He is often called the \"Father of His Country\" for his leadership and contributions to the development of the young nation. \n", + "3 The first Vice President of the United States was John Adams. He served in this role from 1789 to 1797 under President George Washington. After his vice presidency, John Adams went on to become the second President of the United States. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34} \n", + "1 {'completion_tokens': 27, 'prompt_tokens': 24, 'total_tokens': 51} \n", + "2 {'completion_tokens': 31, 'prompt_tokens': 27, 'total_tokens': 58} \n", + "3 {'completion_tokens': 41, 'prompt_tokens': 28, 'total_tokens': 69} \n", + "0 {'completion_tokens': 11, 'prompt_tokens': 23, 'total_tokens': 34} \n", + "1 {'completion_tokens': 30, 'prompt_tokens': 24, 'total_tokens': 54} \n", + "2 {'completion_tokens': 75, 'prompt_tokens': 27, 'total_tokens': 102} \n", + "3 {'completion_tokens': 49, 'prompt_tokens': 28, 'total_tokens': 77} \n", "\n", " latency \n", - "0 0.987327 \n", - "1 1.222432 \n", - "2 1.434122 \n", - "3 1.125934 \n", - "0 1.101437 \n", - "1 0.816013 \n", - "2 0.723490 \n", - "3 1.122580 " + "0 0.849522 \n", + "1 1.012878 \n", + "2 1.540456 \n", + "3 1.117473 \n", + "0 0.872892 \n", + "1 1.129201 \n", + "2 4.299786 \n", + "3 1.591939 " ] }, "metadata": {}, @@ -1457,18 +1142,10 @@ } ], "source": [ - "harness_from_load.run()\n", + "harness_from_load.run(clear_previous_results=False) # You can set to `True` to clear results\n", "harness_from_load.visualize()" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "bece5501", - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "id": "051929e1", @@ -1479,7 +1156,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 11, "id": "916167ae", "metadata": {}, "outputs": [], @@ -1493,7 +1170,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 12, "id": "85aec661", "metadata": {}, "outputs": [ @@ -1518,40 +1195,73 @@ " \n", " \n", " \n", + " model\n", " messages\n", + " temperature\n", + " top_p\n", + " n\n", + " presence_penalty\n", + " frequency_penalty\n", " response\n", + " response_usage\n", " latency\n", " \n", " \n", " \n", " \n", " 0\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", - " 1.090410\n", + " {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47}\n", + " 0.947374\n", " \n", " \n", " 1\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He was elected in 1789 and served two terms as the country's leader.\n", - " 1.208399\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He served as the president from 1789 to 1797. George Washington played a crucial role in shaping the presidency and establishing many of the traditions and practices that are still followed today.\n", + " {'completion_tokens': 49, 'prompt_tokens': 27, 'total_tokens': 76}\n", + " 1.519669\n", " \n", " \n", "\n", "" ], "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "1 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "\n", - " response \\\n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The first president of the United States was George Washington. He was elected in 1789 and served two terms as the country's leader. \n", + " temperature top_p n presence_penalty frequency_penalty \\\n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", + "\n", + " response \\\n", + "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", + "1 The first president of the United States was George Washington. He served as the president from 1789 to 1797. George Washington played a crucial role in shaping the presidency and establishing many of the traditions and practices that are still followed today. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47} \n", + "1 {'completion_tokens': 49, 'prompt_tokens': 27, 'total_tokens': 76} \n", "\n", " latency \n", - "0 1.090410 \n", - "1 1.208399 " + "0 0.947374 \n", + "1 1.519669 " ] }, "metadata": {}, @@ -1565,7 +1275,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 13, "id": "e91becef", "metadata": {}, "outputs": [ @@ -1590,25 +1300,46 @@ " \n", " \n", " \n", + " model\n", " messages\n", + " temperature\n", + " top_p\n", + " n\n", + " presence_penalty\n", + " frequency_penalty\n", " response\n", + " response_usage\n", " latency\n", - " dumb_eval_metric\n", + " simple_eval_metric\n", " \n", " \n", " \n", " \n", " 0\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", - " 1.090410\n", + " {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47}\n", + " 0.947374\n", " EVAL'ED The first\n", " \n", " \n", " 1\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He was elected in 1789 and served two terms as the country's leader.\n", - " 1.208399\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He served as the president from 1789 to 1797. George Washington played a crucial role in shaping the presidency and establishing many of the traditions and practices that are still followed today.\n", + " {'completion_tokens': 49, 'prompt_tokens': 27, 'total_tokens': 76}\n", + " 1.519669\n", " EVAL'ED The first\n", " \n", " \n", @@ -1616,17 +1347,29 @@ "" ], "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "1 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "\n", - " response \\\n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The first president of the United States was George Washington. He was elected in 1789 and served two terms as the country's leader. \n", + " temperature top_p n presence_penalty frequency_penalty \\\n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", + "\n", + " response \\\n", + "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", + "1 The first president of the United States was George Washington. He served as the president from 1789 to 1797. George Washington played a crucial role in shaping the presidency and establishing many of the traditions and practices that are still followed today. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47} \n", + "1 {'completion_tokens': 49, 'prompt_tokens': 27, 'total_tokens': 76} \n", "\n", - " latency dumb_eval_metric \n", - "0 1.090410 EVAL'ED The first \n", - "1 1.208399 EVAL'ED The first " + " latency simple_eval_metric \n", + "0 0.947374 EVAL'ED The first \n", + "1 1.519669 EVAL'ED The first " ] }, "metadata": {}, @@ -1634,17 +1377,17 @@ } ], "source": [ - "def _dumb_eval(row):\n", + "def _simple_eval(row):\n", " return \"EVAL'ED \" + row['response'][:10]\n", "\n", "\n", - "harness.evaluate(\"dumb_eval_metric\", _dumb_eval)\n", + "harness.evaluate(\"simple_eval_metric\", _simple_eval)\n", "harness.visualize()" ] }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 14, "id": "625b4da4", "metadata": {}, "outputs": [ @@ -1664,7 +1407,7 @@ "" ] }, - "execution_count": 5, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -1683,7 +1426,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 15, "id": "370caae6", "metadata": {}, "outputs": [ @@ -1704,7 +1447,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 16, "id": "ab9110f9", "metadata": {}, "outputs": [ @@ -1729,25 +1472,46 @@ " \n", " \n", " \n", + " model\n", " messages\n", + " temperature\n", + " top_p\n", + " n\n", + " presence_penalty\n", + " frequency_penalty\n", " response\n", + " response_usage\n", " latency\n", - " dumb_eval_metric\n", + " simple_eval_metric\n", " \n", " \n", " \n", " \n", " 0\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", - " 1.090410\n", + " {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47}\n", + " 0.947374\n", " EVAL'ED The first\n", " \n", " \n", " 1\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He was elected in 1789 and served two terms as the country's leader.\n", - " 1.208399\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He served as the president from 1789 to 1797. George Washington played a crucial role in shaping the presidency and establishing many of the traditions and practices that are still followed today.\n", + " {'completion_tokens': 49, 'prompt_tokens': 27, 'total_tokens': 76}\n", + " 1.519669\n", " EVAL'ED The first\n", " \n", " \n", @@ -1755,17 +1519,29 @@ "" ], "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "1 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "\n", - " response \\\n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The first president of the United States was George Washington. He was elected in 1789 and served two terms as the country's leader. \n", + " temperature top_p n presence_penalty frequency_penalty \\\n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", "\n", - " latency dumb_eval_metric \n", - "0 1.090410 EVAL'ED The first \n", - "1 1.208399 EVAL'ED The first " + " response \\\n", + "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", + "1 The first president of the United States was George Washington. He served as the president from 1789 to 1797. George Washington played a crucial role in shaping the presidency and establishing many of the traditions and practices that are still followed today. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47} \n", + "1 {'completion_tokens': 49, 'prompt_tokens': 27, 'total_tokens': 76} \n", + "\n", + " latency simple_eval_metric \n", + "0 0.947374 EVAL'ED The first \n", + "1 1.519669 EVAL'ED The first " ] }, "metadata": {}, @@ -1778,7 +1554,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 17, "id": "7a55f289", "metadata": {}, "outputs": [], @@ -1788,7 +1564,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 18, "id": "9d27cbc2", "metadata": {}, "outputs": [ @@ -1813,39 +1589,74 @@ " \n", " \n", " \n", + " model\n", " messages\n", + " temperature\n", + " top_p\n", + " n\n", + " presence_penalty\n", + " frequency_penalty\n", " response\n", + " response_usage\n", " latency\n", - " dumb_eval_metric\n", + " simple_eval_metric\n", " \n", " \n", " \n", " \n", " 0\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", - " 1.090410\n", + " {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47}\n", + " 0.947374\n", " EVAL'ED The first\n", " \n", " \n", " 1\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington.\n", - " 0.888243\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", + " {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47}\n", + " 1.145145\n", " NaN\n", " \n", " \n", " 2\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He was elected in 1789 and served two terms as the country's leader.\n", - " 1.208399\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He served as the president from 1789 to 1797. George Washington played a crucial role in shaping the presidency and establishing many of the traditions and practices that are still followed today.\n", + " {'completion_tokens': 49, 'prompt_tokens': 27, 'total_tokens': 76}\n", + " 1.519669\n", " EVAL'ED The first\n", " \n", " \n", " 3\n", + " gpt-3.5-turbo\n", " [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}]\n", - " The first president of the United States was George Washington. He served as president from 1789 to 1797. George Washington was also a general during the American Revolutionary War and played a crucial role in leading the country to independence.\n", - " 1.557461\n", + " 1.0\n", + " 1.0\n", + " 1\n", + " 0.0\n", + " 0.0\n", + " The first president of the United States was George Washington. He served as president from 1789 to 1797.\n", + " {'completion_tokens': 24, 'prompt_tokens': 27, 'total_tokens': 51}\n", + " 1.004023\n", " NaN\n", " \n", " \n", @@ -1853,23 +1664,41 @@ "" ], "text/plain": [ + " model \\\n", + "0 gpt-3.5-turbo \n", + "1 gpt-3.5-turbo \n", + "2 gpt-3.5-turbo \n", + "3 gpt-3.5-turbo \n", + "\n", " messages \\\n", "0 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "1 [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "2 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "3 [{'role': 'system', 'content': 'You are a 5th grade history teacher.'}, {'role': 'user', 'content': 'Who was the first president?'}] \n", "\n", - " response \\\n", - "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", - "1 The first president of the United States was George Washington. \n", - "2 The first president of the United States was George Washington. He was elected in 1789 and served two terms as the country's leader. \n", - "3 The first president of the United States was George Washington. He served as president from 1789 to 1797. George Washington was also a general during the American Revolutionary War and played a crucial role in leading the country to independence. \n", - "\n", - " latency dumb_eval_metric \n", - "0 1.090410 EVAL'ED The first \n", - "1 0.888243 NaN \n", - "2 1.208399 EVAL'ED The first \n", - "3 1.557461 NaN " + " temperature top_p n presence_penalty frequency_penalty \\\n", + "0 1.0 1.0 1 0.0 0.0 \n", + "1 1.0 1.0 1 0.0 0.0 \n", + "2 1.0 1.0 1 0.0 0.0 \n", + "3 1.0 1.0 1 0.0 0.0 \n", + "\n", + " response \\\n", + "0 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", + "1 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", + "2 The first president of the United States was George Washington. He served as the president from 1789 to 1797. George Washington played a crucial role in shaping the presidency and establishing many of the traditions and practices that are still followed today. \n", + "3 The first president of the United States was George Washington. He served as president from 1789 to 1797. \n", + "\n", + " response_usage \\\n", + "0 {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47} \n", + "1 {'completion_tokens': 24, 'prompt_tokens': 23, 'total_tokens': 47} \n", + "2 {'completion_tokens': 49, 'prompt_tokens': 27, 'total_tokens': 76} \n", + "3 {'completion_tokens': 24, 'prompt_tokens': 27, 'total_tokens': 51} \n", + "\n", + " latency simple_eval_metric \n", + "0 0.947374 EVAL'ED The first \n", + "1 1.145145 NaN \n", + "2 1.519669 EVAL'ED The first \n", + "3 1.004023 NaN " ] }, "metadata": {}, diff --git a/examples/prompttests/test_openai_chat.py b/examples/prompttests/test_openai_chat.py index 9d67ac28..9aae33e9 100644 --- a/examples/prompttests/test_openai_chat.py +++ b/examples/prompttests/test_openai_chat.py @@ -13,6 +13,7 @@ from prompttools.utils import validate_json from prompttools.mock.mock import mock_openai_completion_fn + if not (("OPENAI_API_KEY" in os.environ) or ("DEBUG" in os.environ)): print("Error: This example requires you to set either your OPENAI_API_KEY or DEBUG=1") exit(1) @@ -40,12 +41,11 @@ def create_prompt(): prompts=[create_json_prompt()], ) def json_completion_fn(prompt: str): - response = None if os.getenv("DEBUG", default=False): response = mock_openai_completion_fn(**{"prompt": prompt}) else: - response = openai.Completion.create(prompt) - return response["choices"][0]["text"] + response = openai.completions.create(model="babbage-002", prompt=prompt) + return response.choices[0].text @prompttest.prompttest( @@ -57,12 +57,11 @@ def json_completion_fn(prompt: str): threshold_type=ThresholdType.MAXIMUM, ) def completion_fn(prompt: str): - response = None if os.getenv("DEBUG", default=False): response = mock_openai_completion_fn(**{"prompt": prompt}) else: - response = openai.Completion.create(prompt) - return response["choices"][0]["text"] + response = openai.completions.create(model="babbage-002", prompt=prompt) + return response.choices[0].text if __name__ == "__main__": diff --git a/prompttools/experiment/experiments/experiment.py b/prompttools/experiment/experiments/experiment.py index 41ee2d5f..30c01828 100644 --- a/prompttools/experiment/experiments/experiment.py +++ b/prompttools/experiment/experiments/experiment.py @@ -250,6 +250,10 @@ def _construct_result_dfs( result_df = response_df else: # Handle the case where `input_arg_df` has the same column names as `result_df` + try: + results = [r.model_dump() for r in results] # For turing OpenAI response in to dict + except Exception: + pass result_df = pd.DataFrame(results) common_columns = set(input_arg_df.columns) & set(result_df.columns) result_df = result_df.add_prefix("response_") if common_columns else result_df @@ -457,12 +461,7 @@ def aggregate(self, metric_name, column_name, is_average=False): # Define the custom colors custom_colors = [ - "black", - "#7e1e9c", - "#15b01a", - "#448ee4", - "#ff7fa7", - "#029386", + "black", "#771541", "#EB8F4C", "#594F3B", "#A8B7AB", "#9C92A3" ] plt.ylabel("Latency (s)") @@ -523,7 +522,7 @@ def to_csv( table = self.get_table(get_all_cols=get_all_cols) table.to_csv(path, **kwargs) - def to_pandas_df(self, get_all_cols: bool = True): + def to_pandas_df(self, get_all_cols: bool = True, from_streamlit: bool = False): r""" Return the results as a ``pandas.DataFrame``. If the experiment has not been executed, it will run. @@ -531,6 +530,8 @@ def to_pandas_df(self, get_all_cols: bool = True): get_all_cols (bool): defaults to ``False``. If ``True``, it will return the full data with all input arguments (including frozen ones), full model response (not just the text response), and scores. """ + if from_streamlit: + self.run() return self.get_table(get_all_cols=get_all_cols) def to_json( diff --git a/prompttools/experiment/experiments/openai_chat_experiment.py b/prompttools/experiment/experiments/openai_chat_experiment.py index 2fdb5f95..77f27a24 100644 --- a/prompttools/experiment/experiments/openai_chat_experiment.py +++ b/prompttools/experiment/experiments/openai_chat_experiment.py @@ -85,11 +85,20 @@ class OpenAIChatExperiment(Experiment): Defaults to [None]. A dictionary containing the name and arguments of a function that should be called, s generated by the model. + response_format (list[Optional[dict]]): + Setting to `{ type: "json_object" }` enables JSON mode, which guarantees the message + the model generates is valid JSON. + + seed (list[Optional[int]]): + This feature is in Beta. If specified, our system will make a best effort to sample deterministically, + such that repeated requests with the same `seed` and parameters should return the same result. + Determinism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to + monitor changes in the backend. + azure_openai_service_configs (Optional[dict]): Defaults to ``None``. If it is set, the experiment will use Azure OpenAI Service. The input dict should - contain these 3 keys (but with values based on your use case and configuration): - ``{"AZURE_OPENAI_ENDPOINT": "https://YOUR_RESOURCE_NAME.openai.azure.com/", - "API_TYPE": "azure", "API_VERSION": "2023-05-15"`` + contain these 2 keys (but with values based on your use case and configuration): + ``{"AZURE_OPENAI_ENDPOINT": "https://YOUR_RESOURCE_NAME.openai.azure.com/", "API_VERSION": "2023-05-15"}`` """ _experiment_type = "RawExperiment" @@ -107,11 +116,21 @@ def __init__( presence_penalty: Optional[List[float]] = [0.0], frequency_penalty: Optional[List[float]] = [0.0], logit_bias: Optional[List[Dict]] = [None], + response_format: List[Optional[Dict]] = [None], + seed: List[Optional[int]] = [None], functions: Optional[List[Dict]] = [None], function_call: Optional[List[Dict[str, str]]] = [None], azure_openai_service_configs: Optional[dict] = None, ): - self.completion_fn = openai.ChatCompletion.create + if azure_openai_service_configs is None: + self.completion_fn = openai.chat.completions.create + else: + client = openai.AzureOpenAI( + api_key=os.environ["AZURE_OPENAI_KEY"], + api_version=azure_openai_service_configs["API_VERSION"], + azure_endpoint=azure_openai_service_configs["AZURE_OPENAI_ENDPOINT"], + ) + self.completion_fn = client.chat.completions.create if os.getenv("DEBUG", default=False): if functions[0] is not None: self.completion_fn = mock_openai_chat_function_completion_fn @@ -143,6 +162,8 @@ def __init__( presence_penalty=presence_penalty, frequency_penalty=frequency_penalty, logit_bias=logit_bias, + seed=seed, + response_format=response_format, ) # These parameters aren't supported by `gpt-35-turbo`, we can remove them if they are equal to defaults @@ -150,23 +171,15 @@ def __init__( if self.all_args["logit_bias"] == [None]: del self.all_args["logit_bias"] - if azure_openai_service_configs: - openai.api_key = os.environ["AZURE_OPENAI_KEY"] - openai.api_base = azure_openai_service_configs["AZURE_OPENAI_ENDPOINT"] - openai.api_type = azure_openai_service_configs["API_TYPE"] - openai.api_version = azure_openai_service_configs["API_VERSION"] - del self.all_args["model"] - self.all_args["engine"] = model - super().__init__() @staticmethod - def _extract_responses(output: Dict[str, object]) -> str: - message = output["choices"][0]["message"] - if "function_call" in message: - return json.dumps(json.loads(message["function_call"]["arguments"])) + def _extract_responses(output: openai.types.Completion) -> str: + message = output.choices[0].message + if hasattr(message, "function_call") and message.function_call is not None: + return json.dumps(json.loads(message.function_call.arguments)) else: - return message["content"] + return message.content @staticmethod def _is_chat(): @@ -194,7 +207,13 @@ def _get_state(self): print("Creating state of experiment...") return state - def save_experiment(self, name: str): + def save_experiment(self, name: Optional[str] = None): + r""" + name (str, optional): Name of the experiment. This is optional if you have previously loaded an experiment + into this object. + """ + if name is None and self._experiment_id is None: + raise RuntimeError("Please provide a name for your experiment.") if self.full_df is None: raise RuntimeError("Cannot save empty experiment. Please run it first.") if os.environ["HEGELAI_API_KEY"] is None: @@ -214,6 +233,9 @@ def save_experiment(self, name: str): @classmethod def load_experiment(cls, experiment_id: str): + r""" + experiment_id (str): experiment ID of the experiment that you wish to load. + """ if os.environ["HEGELAI_API_KEY"] is None: raise PermissionError("Please set HEGELAI_API_KEY (e.g. os.environ['HEGELAI_API_KEY']).") @@ -234,6 +256,9 @@ def load_experiment(cls, experiment_id: str): @classmethod def load_revision(cls, revision_id: str): + r""" + revision_id (str): revision ID of the experiment that you wish to load. + """ if os.environ["HEGELAI_API_KEY"] is None: raise PermissionError("Please set HEGELAI_API_KEY (e.g. os.environ['HEGELAI_API_KEY']).") @@ -269,8 +294,12 @@ def _load_state(cls, state, experiment_id: str, revision_id: str, experiment_typ experiment.prompt_keys = prompt_keys experiment.all_args = all_args experiment.full_df = pd.DataFrame(full_df) - experiment.partial_df = experiment.full_df[state_params["partial_col_names"]].copy() - experiment.score_df = experiment.full_df[state_params["score_col_names"]].copy() + experiment.partial_df = ( + experiment.full_df[state_params["partial_col_names"]].copy() if experiment.full_df is not None else None + ) + experiment.score_df = ( + experiment.full_df[state_params["score_col_names"]].copy() if experiment.full_df is not None else None + ) experiment._experiment_id = experiment_id experiment._revision_id = revision_id print("Loaded experiment.") @@ -356,6 +385,8 @@ def run_one( presence_penalty: Optional[float] = 0.0, frequency_penalty: Optional[float] = 0.0, logit_bias: Optional[Dict] = None, + response_format: Optional[dict] = None, + seed: Optional[int] = None, functions: Optional[Dict] = None, function_call: Optional[Dict[str, str]] = None, ): @@ -376,6 +407,8 @@ def run_one( "presence_penalty": presence_penalty, "frequency_penalty": frequency_penalty, "logit_bias": logit_bias, + "response_format": response_format, + "seed": seed, "functions": functions, "function_call": function_call, } @@ -394,6 +427,36 @@ def run_one( self._construct_result_dfs(self.queue.get_input_args(), self.queue.get_results(), self.queue.get_latencies()) + def get_table(self, get_all_cols: bool = False) -> pd.DataFrame: + columns_to_hide = [ + "stream", + "response_id", + "response_choices", + "response_created", + "response_created", + "response_object", + "response_model", + "response_system_fingerprint", + "revision_id", + "log_id", + ] + + if get_all_cols: + return self.full_df + else: + table = self.full_df + columns_to_hide.extend( + [ + col + for col in ["temperature", "top_p", "n", "presence_penalty", "frequency_penalty"] + if col not in self.partial_df.columns + ] + ) + for col in columns_to_hide: + if col in table.columns: + table = table.drop(col, axis=1) + return table + # def _update_values_in_dataframe(self): # r""" # If, in the future, we wish to update existing values rather than appending to the end of the row. diff --git a/prompttools/experiment/experiments/openai_completion_experiment.py b/prompttools/experiment/experiments/openai_completion_experiment.py index f04a2e1f..23546cf8 100644 --- a/prompttools/experiment/experiments/openai_completion_experiment.py +++ b/prompttools/experiment/experiments/openai_completion_experiment.py @@ -108,7 +108,7 @@ def __init__( logit_bias: Optional[Dict] = [None], azure_openai_service_configs: Optional[dict] = None, ): - self.completion_fn = openai.Completion.create + self.completion_fn = openai.completions.create if os.getenv("DEBUG", default=False): self.completion_fn = mock_openai_completion_fn @@ -161,8 +161,8 @@ def __init__( super().__init__() @staticmethod - def _extract_responses(output: Dict[str, object]) -> list[str]: - return [choice["text"] for choice in output["choices"]][0] + def _extract_responses(output: openai.types.Completion) -> list[str]: + return [choice.text for choice in output.choices][0] def _get_model_names(self): return [combo["model"] for combo in self.argument_combos] diff --git a/prompttools/experiment/experiments/style.mplstyle b/prompttools/experiment/experiments/style.mplstyle index b31c0eac..aa62ae2f 100755 --- a/prompttools/experiment/experiments/style.mplstyle +++ b/prompttools/experiment/experiments/style.mplstyle @@ -40,11 +40,8 @@ legend.frameon : False savefig.bbox : tight savefig.dpi : 100 -# Rainbow color cycle -#axes.prop_cycle: cycler('color', ["black", "332288","88CCEE","44AA99","117733","999933","DDCC77","CC6677","882255","AA4499","brown","fd3c06","gray"]) - -# Not good for colorblind people -axes.prop_cycle: cycler('color', ['black', '7e1e9c', '15b01a', '448ee4', 'ff7fa7', '029386', 'ed872d', 'ae1717', 'gray', 'e03fd8', '011288', '0b4008']) +# Hegel AI color cycle +axes.prop_cycle: cycler('color', ["black", "771541", "EB8F4C","594F3B","A8B7AB","9C92A3"]) #font.family : serif #text.usetex : True diff --git a/prompttools/harness/chat_prompt_template_harness.py b/prompttools/harness/chat_prompt_template_harness.py index 5a48f725..7ddb563a 100644 --- a/prompttools/harness/chat_prompt_template_harness.py +++ b/prompttools/harness/chat_prompt_template_harness.py @@ -11,6 +11,10 @@ from .harness import ExperimentationHarness, Experiment from typing import Optional from copy import deepcopy +from .utility import is_interactive +from IPython import display +from tabulate import tabulate +import logging def _render_messages_openai_chat(message_template: list[dict], user_input: dict, environment): @@ -73,10 +77,10 @@ def prepare(self) -> None: ) super().prepare() - def run(self): + def run(self, clear_previous_results: bool = False): if not self.experiment: self.prepare() - super().run() + super().run(clear_previous_results=clear_previous_results) # Add user inputs to DataFrame if len(self.experiment.full_df) > 0: @@ -95,6 +99,44 @@ def run(self): self.experiment.partial_df.reset_index(drop=True, inplace=True) self.experiment.partial_df = pd.concat([user_input_df, self.experiment.partial_df], axis=1) + def get_table(self, get_all_cols: bool = False) -> pd.DataFrame: + columns_to_hide = [ + "stream", + "response_id", + "response_choices", + "response_created", + "response_created", + "response_object", + "response_model", + "response_system_fingerprint", + "revision_id", + "log_id", + ] + + if get_all_cols: + return self.full_df + else: + table = self.full_df + columns_to_hide.extend( + [ + col + for col in ["temperature", "top_p", "n", "presence_penalty", "frequency_penalty"] + if col not in self.partial_df.columns + ] + ) + for col in columns_to_hide: + if col in table.columns: + table = table.drop(col, axis=1) + return table + + def visualize(self, get_all_cols: bool = False): + table = self.get_table(get_all_cols) + if is_interactive(): + display.display(table) + else: + logging.getLogger().setLevel(logging.INFO) + logging.info(tabulate(table, headers="keys", tablefmt="psql")) + def _get_state(self): state_params = { "experiment_cls_constructor": self.experiment_cls_constructor, diff --git a/prompttools/harness/harness.py b/prompttools/harness/harness.py index 425fdfea..4f547de7 100644 --- a/prompttools/harness/harness.py +++ b/prompttools/harness/harness.py @@ -4,7 +4,7 @@ # This source code's license can be found in the # LICENSE file in the root directory of this source tree. -from typing import Callable +from typing import Callable, Optional from prompttools.experiment import Experiment @@ -39,11 +39,11 @@ def prepare(self) -> None: """ self.experiment.prepare() - def run(self) -> None: + def run(self, clear_previous_results: bool = False) -> None: r""" Runs the underlying experiment. """ - self.experiment.run(runs=self.runs) + self.experiment.run(runs=self.runs, clear_previous_results=clear_previous_results) def evaluate(self, metric_name: str, eval_fn: Callable, static_eval_fn_kwargs: dict = {}, **eval_fn_kwargs) -> None: r""" @@ -89,7 +89,13 @@ def _get_state(self): def _load_state(cls, state, experiment_id: str, revision_id: str, experiment_type_str: str): raise NotImplementedError("Should be implemented by specific harness class.") - def save_experiment(self, name: str): + def save_experiment(self, name: Optional[str] = None): + r""" + name (str, optional): Name of the experiment. This is optional if you have previously loaded an experiment + into this object. + """ + if name is None and self._experiment_id is None: + raise RuntimeError("Please provide a name for your experiment.") if self.full_df is None: raise RuntimeError("Cannot save empty experiment. Please run it first.") if os.environ["HEGELAI_API_KEY"] is None: @@ -109,6 +115,9 @@ def save_experiment(self, name: str): @classmethod def load_experiment(cls, experiment_id: str): + r""" + experiment_id (str): experiment ID of the experiment that you wish to load. + """ if os.environ["HEGELAI_API_KEY"] is None: raise PermissionError("Please set HEGELAI_API_KEY (e.g. os.environ['HEGELAI_API_KEY']).") @@ -129,6 +138,9 @@ def load_experiment(cls, experiment_id: str): @classmethod def load_revision(cls, revision_id: str): + r""" + revision_id (str): revision ID of the experiment that you wish to load. + """ if os.environ["HEGELAI_API_KEY"] is None: raise PermissionError("Please set HEGELAI_API_KEY (e.g. os.environ['HEGELAI_API_KEY']).") diff --git a/prompttools/harness/model_comparison_harness.py b/prompttools/harness/model_comparison_harness.py index ac4ec310..d80ce18a 100644 --- a/prompttools/harness/model_comparison_harness.py +++ b/prompttools/harness/model_comparison_harness.py @@ -103,11 +103,11 @@ def partial_df(self): def score_df(self): return self._score_df - def run(self): + def run(self, clear_previous_results: bool = False): if not self.experiments: self.prepare() for exp in self.experiments: - exp.run() + exp.run(clear_previous_results=clear_previous_results) self._update_dfs() def evaluate(self, metric_name: str, eval_fn: Callable, static_eval_fn_kwargs: dict = {}, **eval_fn_kwargs) -> None: @@ -121,10 +121,34 @@ def evaluate(self, metric_name: str, eval_fn: Callable, static_eval_fn_kwargs: d self._update_dfs() def get_table(self, get_all_cols: bool = False) -> pd.DataFrame: + columns_to_hide = [ + "stream", + "response_id", + "response_choices", + "response_created", + "response_created", + "response_object", + "response_model", + "response_system_fingerprint", + "revision_id", + "log_id", + ] + if get_all_cols: return self.full_df else: - return self.partial_df + table = self.full_df + columns_to_hide.extend( + [ + col + for col in ["temperature", "top_p", "n", "presence_penalty", "frequency_penalty"] + if table[col].nunique() == 1 # Note this is checking for uniqueness + ] + ) + for col in columns_to_hide: + if col in table.columns: + table = table.drop(col, axis=1) + return table def _update_dfs(self): self._full_df = pd.concat([exp.full_df for exp in self.experiments], axis=0, ignore_index=True) diff --git a/prompttools/harness/rag_harness.py b/prompttools/harness/rag_harness.py index c955c748..877ae854 100644 --- a/prompttools/harness/rag_harness.py +++ b/prompttools/harness/rag_harness.py @@ -105,8 +105,6 @@ def run(self) -> None: # Run the LLM experiment self.experiment.run() - self.partial_df = self.experiment.partial_df - self.full_df = self.experiment.full_df # Add "query text" (i.e. the prompt used to retrieve documents from the vector DB) # to the final results table here diff --git a/prompttools/harness/system_prompt_harness.py b/prompttools/harness/system_prompt_harness.py index 1f356880..9dd9009e 100644 --- a/prompttools/harness/system_prompt_harness.py +++ b/prompttools/harness/system_prompt_harness.py @@ -6,6 +6,11 @@ from typing import Dict, List, Optional, Type from .harness import ExperimentationHarness, Experiment +import pandas as pd +from .utility import is_interactive +from IPython import display +from tabulate import tabulate +import logging class SystemPromptExperimentationHarness(ExperimentationHarness): @@ -69,10 +74,10 @@ def prepare(self) -> None: ) super().prepare() - def run(self): + def run(self, clear_previous_results: bool = False): if not self.experiment: self.prepare() - super().run() + super().run(clear_previous_results=clear_previous_results) def _get_state(self): state_params = { @@ -117,3 +122,41 @@ def _load_state(cls, state, experiment_id: str, revision_id: str, experiment_typ harness._revision_id = revision_id print("Loaded harness.") return harness + + def get_table(self, get_all_cols: bool = False) -> pd.DataFrame: + columns_to_hide = [ + "stream", + "response_id", + "response_choices", + "response_created", + "response_created", + "response_object", + "response_model", + "response_system_fingerprint", + "revision_id", + "log_id", + ] + + if get_all_cols: + return self.full_df + else: + table = self.full_df + columns_to_hide.extend( + [ + col + for col in ["temperature", "top_p", "n", "presence_penalty", "frequency_penalty"] + if col not in self.partial_df.columns + ] + ) + for col in columns_to_hide: + if col in table.columns: + table = table.drop(col, axis=1) + return table + + def visualize(self, get_all_cols: bool = False): + table = self.get_table(get_all_cols) + if is_interactive(): + display.display(table) + else: + logging.getLogger().setLevel(logging.INFO) + logging.info(tabulate(table, headers="keys", tablefmt="psql")) diff --git a/prompttools/logger/__init__.py b/prompttools/logger/__init__.py new file mode 100644 index 00000000..5bc0ab72 --- /dev/null +++ b/prompttools/logger/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) Hegel AI, Inc. +# All rights reserved. +# +# This source code's license can be found in the +# LICENSE file in the root directory of this source tree. + + +from .logger import Logger, add_feedback + + +__all__ = [ + "Logger", + "add_feedback", +] diff --git a/prompttools/logger/logger.py b/prompttools/logger/logger.py new file mode 100644 index 00000000..c9cc70df --- /dev/null +++ b/prompttools/logger/logger.py @@ -0,0 +1,125 @@ +# Copyright (c) Hegel AI, Inc. +# All rights reserved. +# +# This source code's license can be found in the +# LICENSE file in the root directory of this source tree. +import json +import uuid + +import requests +import threading +import queue +from functools import partial +import openai +import os +from dotenv import load_dotenv +from os.path import join, dirname +from time import perf_counter +from prompttools.common import HEGEL_BACKEND_URL + + +# Load "OPENAI_API_KEY" into `os.environ["OPENAI_API_KEY"]` +# See `.env.example` +dotenv_path = join(dirname(__file__), ".env") +load_dotenv(dotenv_path) + + +class Logger: + def __init__(self): + self.backend_url = f"{HEGEL_BACKEND_URL}/sdk/logger" + self.data_queue = queue.Queue() + self.feedback_queue = queue.Queue() + self.worker_thread = threading.Thread(target=self.worker) + + # When the main thread is joining, put `None` into queue to signal worker thread to end + threading.Thread(target=lambda: threading.main_thread().join() or self.data_queue.put(None)).start() + + self.worker_thread.start() + + def add_feedback(self, log_id, metric_name, value): + self.feedback_queue.put({ + "log_id": log_id, + "key": metric_name, + "value": value + }) + + def execute_and_add_to_queue(self, callable_func, **kwargs): + if "hegel_model" in kwargs: + hegel_model = kwargs["hegel_model"] + del kwargs["hegel_model"] + else: + hegel_model = None + start = perf_counter() + result = callable_func(**kwargs) + latency = perf_counter() - start + log_id = str(uuid.uuid4()) + self.data_queue.put( + { + "hegel_model": hegel_model, + "result": result.model_dump_json(), + "input_parameters": json.dumps(kwargs), + "latency": latency, + "log_id": log_id, + } + ) + result.log_id = log_id + return result + + def wrap(self, callable_func): + return partial(self.execute_and_add_to_queue, callable_func) + + def worker(self): + while True: + # Process logging data + if not self.data_queue.empty(): + data = self.data_queue.get() + if data is None: # Shutdown signal + return + self.log_data_to_remote(data) + self.data_queue.task_done() + + # Process feedback data + if not self.feedback_queue.empty(): + feedback_data = self.feedback_queue.get() + if feedback_data is None: # Shutdown signal + return + self.send_feedback_to_remote(feedback_data) + self.feedback_queue.task_done() + + def log_data_to_remote(self, data): + try: + headers = { + "Content-Type": "application/json", + "Authorization": os.environ["HEGELAI_API_KEY"], + } + + response = requests.post(self.backend_url, json=data, headers=headers) + if response.status_code != 200: + print(f"Failed to send data to Flask API. Status code: {response.status_code} for {data}.") + except requests.exceptions.RequestException as e: + print(f"Error sending data to Flask API: {e}") + + def send_feedback_to_remote(self, feedback_data): + feedback_url = f"{HEGEL_BACKEND_URL}/sdk/add_feedback/" + try: + headers = { + "Content-Type": "application/json", + "Authorization": os.environ["HEGELAI_API_KEY"], + } + + response = requests.post(feedback_url, json=feedback_data, headers=headers) + if response.status_code != 200: + print(f"Failed to send feedback to Flask API. Status code: {response.status_code}") + except requests.exceptions.RequestException as e: + print(f"Error sending feedback to Flask API: {e}") + +sender = Logger() +# Monkey-patching +try: + openai.chat.completions.create = sender.wrap(openai.chat.completions.create) +except Exception: + print("You may need to add `OPENAI_API_KEY=''` to your `.env` file.") + raise + +def add_feedback(*args): + sender.add_feedback(*args) \ No newline at end of file diff --git a/prompttools/mock/mock.py b/prompttools/mock/mock.py index d574f234..6e4b8867 100644 --- a/prompttools/mock/mock.py +++ b/prompttools/mock/mock.py @@ -15,66 +15,102 @@ cv2 = None +class DotDict(dict): + r""" + Have dot access to dictionary attributes + """ + __setattr__ = dict.__setitem__ + __delattr__ = dict.__delitem__ + + def __getattr__(self, key): + try: + val = self.get(key) + if val is None: # Doesn't support `None` as value + raise KeyError + else: + return val + except KeyError: + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{key}'") + + def mock_openai_chat_completion_fn(**kwargs): - return { - "choices": [ - { - "finish_reason": "stop", - "index": 0, - "message": { - "content": "George Washington", - "role": "assistant", - }, - } - ], - "created": 1687839008, - "id": "", - "model": "gpt-3.5-turbo-0301", - "object": "chat.completion", - "usage": {"completion_tokens": 18, "prompt_tokens": 57, "total_tokens": 75}, - } + return DotDict( + { + "choices": [ + DotDict( + { + "finish_reason": "stop", + "index": 0, + "message": DotDict( + { + "content": "George Washington", + "role": "assistant", + } + ), + } + ) + ], + "created": 1687839008, + "id": "", + "model": "gpt-3.5-turbo-0301", + "object": "chat.completion", + "usage": DotDict({"completion_tokens": 18, "prompt_tokens": 57, "total_tokens": 75}), + } + ) def mock_openai_chat_function_completion_fn(**kwargs): - return { - "choices": [ - { - "finish_reason": "stop", - "index": 0, - "message": { - "role": "assistant", - "content": None, - "function_call": { - "name": "get_current_weather", - "arguments": '{\n "location": "Toronto, Canada",\n "format": "celsius"\n}', - }, - }, - } - ], - "created": 1687839008, - "id": "", - "model": "gpt-3.5-turbo-0301", - "object": "chat.completion", - "usage": {"completion_tokens": 18, "prompt_tokens": 57, "total_tokens": 75}, - } + return DotDict( + { + "choices": [ + DotDict( + { + "finish_reason": "stop", + "index": 0, + "message": DotDict( + { + "role": "assistant", + "content": None, + "function_call": DotDict( + { + "name": "get_current_weather", + "arguments": '{\n "location": "Toronto, Canada",\n "format": "celsius"\n}', + } + ), + } + ), + } + ) + ], + "created": 1687839008, + "id": "", + "model": "gpt-3.5-turbo-0301", + "object": "chat.completion", + "usage": DotDict({"completion_tokens": 18, "prompt_tokens": 57, "total_tokens": 75}), + } + ) def mock_openai_completion_fn(**kwargs): - return { - "id": "", - "object": "text_completion", - "created": 1589478378, - "model": "text-davinci-003", - "choices": [ - { - "text": json.dumps({"text": "George Washington"}), - "index": 0, - "logprobs": None, - "finish_reason": "length", - } - ], - "usage": {"prompt_tokens": 5, "completion_tokens": 7, "total_tokens": 12}, - } + return DotDict( + { + "id": "", + "object": "text_completion", + "created": 1589478378, + "model": "text-davinci-003", + "choices": [ + DotDict( + { + "text": json.dumps({"text": "George Washington"}), + "index": 0, + "logprobs": None, + "finish_reason": "length", + } + ) + ], + "usage": DotDict({"prompt_tokens": 5, "completion_tokens": 7, "total_tokens": 12}), + } + ) def mock_hf_completion_fn(**kwargs): diff --git a/prompttools/playground/data_loader.py b/prompttools/playground/data_loader.py index d5aee79e..22ad7c9a 100644 --- a/prompttools/playground/data_loader.py +++ b/prompttools/playground/data_loader.py @@ -66,7 +66,7 @@ def load_data( model_specific_kwargs = {model: {}} experiment = EXPERIMENTS[model_type]([model], input_kwargs, model_specific_kwargs) - return experiment.to_pandas_df() + return experiment.to_pandas_df(True, True) @st.cache_data @@ -112,5 +112,5 @@ def run_multiple( experiment = EXPERIMENTS[model_types[i]]([models[i]], input_kwargs, model_specific_kwargs) else: experiment = EXPERIMENTS[model_types[i]]([models[i]], prompts) - dfs.append(experiment.to_pandas_df()) + dfs.append(experiment.to_pandas_df(True, True)) return dfs diff --git a/prompttools/requests/request_queue.py b/prompttools/requests/request_queue.py index 0f29c00a..ced95a6c 100644 --- a/prompttools/requests/request_queue.py +++ b/prompttools/requests/request_queue.py @@ -50,7 +50,7 @@ def _do_task(self, fn: Callable, args: Dict[str, object]) -> None: self.request_results.append(res[0]) self.request_latencies.append(res[1]) # TODO: If we get an unexpected error here, the queue will hang - except openai.error.AuthenticationError: + except openai.AuthenticationError: logging.error("Authentication error. Skipping request.") @retry_decorator diff --git a/prompttools/requests/retries.py b/prompttools/requests/retries.py index 27bf52a3..5745c862 100644 --- a/prompttools/requests/retries.py +++ b/prompttools/requests/retries.py @@ -32,11 +32,13 @@ def generate_retry_decorator(wait_lower_bound: int = 3, wait_upper_bound: int = stop=stop_after_attempt(max_retry_attempts), reraise=True, retry=( # Retry for these specific exceptions - retry_if_exception_type(openai.error.APIConnectionError) - | retry_if_exception_type(openai.error.APIError) - | retry_if_exception_type(openai.error.RateLimitError) - | retry_if_exception_type(openai.error.ServiceUnavailableError) - | retry_if_exception_type(openai.error.Timeout) + retry_if_exception_type(openai.APIConnectionError) + | retry_if_exception_type(openai.APIError) + | retry_if_exception_type(openai.RateLimitError) + | retry_if_exception_type(openai.APIStatusError) + | retry_if_exception_type(openai.APIConnectionError) + | retry_if_exception_type(openai.APIResponseValidationError) + | retry_if_exception_type(openai.APITimeoutError) ), before_sleep=before_sleep_log(logging.getLogger(__name__), logging.WARNING), ) diff --git a/prompttools/sentry.py b/prompttools/sentry.py index f3dff61c..3be08d38 100644 --- a/prompttools/sentry.py +++ b/prompttools/sentry.py @@ -57,7 +57,7 @@ def init_sentry(): sentry_sdk.init( dsn=SENTRY_DSN, release=__version__, - traces_sample_rate=1.0, + traces_sample_rate=0.01, include_local_variables=False, send_default_pii=False, attach_stacktrace=False, diff --git a/prompttools/utils/__init__.py b/prompttools/utils/__init__.py index 543c2b2b..fdbd32cc 100644 --- a/prompttools/utils/__init__.py +++ b/prompttools/utils/__init__.py @@ -12,6 +12,7 @@ from .autoeval_with_docs import autoeval_with_documents from .chunk_text import chunk_text from .expected import compute_similarity_against_model +from .moderation import apply_moderation from .ranking_correlation import ranking_correlation from .similarity import semantic_similarity from .validate_json import validate_json_response @@ -26,11 +27,12 @@ "chunk_text", "compute_similarity_against_model", "expected", + "apply_moderation", + "ranking_correlation", + "semantic_similarity", + "similarity", "validate_json", "validate_json_response", "validate_python", "validate_python_response", - "ranking_correlation", - "semantic_similarity", - "similarity", ] diff --git a/prompttools/utils/autoeval.py b/prompttools/utils/autoeval.py index 58d3fc74..4eb9b86e 100644 --- a/prompttools/utils/autoeval.py +++ b/prompttools/utils/autoeval.py @@ -48,8 +48,8 @@ def compute(prompt: str, response: str, model: str = "gpt-4") -> float: """ if not os.environ["OPENAI_API_KEY"]: raise PromptToolsUtilityError - evaluation = openai.ChatCompletion.create(model=model, messages=_get_messages(prompt, response)) - return 1.0 if "RIGHT" in evaluation["choices"][0]["message"]["content"] else 0.0 + evaluation = openai.chat.completions.create(model=model, messages=_get_messages(prompt, response)) + return 1.0 if "RIGHT" in evaluation.choices[0].message.content else 0.0 def evaluate(prompt: str, response: str, _metadata: Dict) -> float: diff --git a/prompttools/utils/autoeval_from_expected.py b/prompttools/utils/autoeval_from_expected.py index 88618e0f..d8c692c0 100644 --- a/prompttools/utils/autoeval_from_expected.py +++ b/prompttools/utils/autoeval_from_expected.py @@ -51,8 +51,8 @@ def compute(prompt: str, expected: str, response: str, model: str = "gpt-4") -> """ if not os.environ["OPENAI_API_KEY"]: raise PromptToolsUtilityError("Missing API key for evaluation.") - evaluation = openai.ChatCompletion.create(model=model, messages=_get_messages(prompt, expected, response)) - return 1.0 if "RIGHT" in evaluation["choices"][0]["message"]["content"] else 0.0 + evaluation = openai.chat.completions.create(model=model, messages=_get_messages(prompt, expected, response)) + return 1.0 if "RIGHT" in evaluation.choices[0].message.content else 0.0 def evaluate(prompt: str, response: str, metadata: dict, expected: str) -> float: diff --git a/prompttools/utils/autoeval_with_docs.py b/prompttools/utils/autoeval_with_docs.py index f92d11db..7abd4c39 100644 --- a/prompttools/utils/autoeval_with_docs.py +++ b/prompttools/utils/autoeval_with_docs.py @@ -49,8 +49,8 @@ def compute(documents: list[str], response: str, model: str = "gpt-4") -> float: """ if not os.environ["OPENAI_API_KEY"]: raise PromptToolsUtilityError - evaluation = openai.ChatCompletion.create(model=model, messages=_get_messages(documents, response)) - score_text = evaluation["choices"][0]["message"]["content"] + evaluation = openai.chat.completions.create(model=model, messages=_get_messages(documents, response)) + score_text = evaluation.choices[0].message.content return int(score_text) diff --git a/prompttools/utils/expected.py b/prompttools/utils/expected.py index 0a527d0f..b898c0a9 100644 --- a/prompttools/utils/expected.py +++ b/prompttools/utils/expected.py @@ -24,8 +24,13 @@ def compute(prompt: str, model: str = "gpt-4") -> str: """ if not os.environ["OPENAI_API_KEY"]: raise PromptToolsUtilityError - response = openai.ChatCompletion.create(model=model, prompt=prompt) - return response["choices"][0]["message"]["content"] + response = openai.chat.completions.create( + model=model, + messages=[ + {"role": "user", "content": prompt}, + ], + ) + return response.choices[0].message.content def evaluate(prompt: str, response: str, model: str = "gpt-4") -> str: diff --git a/prompttools/utils/moderation.py b/prompttools/utils/moderation.py new file mode 100644 index 00000000..1bb96fc5 --- /dev/null +++ b/prompttools/utils/moderation.py @@ -0,0 +1,53 @@ +# Copyright (c) Hegel AI, Inc. +# All rights reserved. +# +# This source code's license can be found in the +# LICENSE file in the root directory of this source tree. + + +import openai +import pandas +from typing import Optional, Union + + +def apply_moderation( + row: pandas.core.series.Series, + text_col_name: str = "response", + moderation_model: str = "text-moderation-latest", + category_names: Optional[list[str]] = None, + category_score_names: Optional[list[str]] = None, +) -> Union[bool, dict]: + r""" + Uses OpenAI's moderation API to determine whether the text complies with OpenAI's usage policies. + + Args: + row (pandas.core.series.Series): A row of data from the full DataFrame (including input, model response, other + metrics, etc). + text_col_name (str): column name of text to be moderated + moderation_model (str): name of the OpenAI moderation model, defaults to ``"text-moderation-latest"`` + category_names (Optional[list[str]]): specify the names of category flags to extract from the response and + be added as column(s) in the row, optional. (e.g. ``["harassment", "violence"]``) + category_score_names (Optional[list[str]]): specify the names of category scores to extract from the response + and be added as column(s) in the row, optional. (e.g. ``["harassment", "violence"]``) + + Returns: + A boolean flag (of whether the input violates policies), or a dict with various topic specific flags/scores. + """ + text = row[text_col_name] + + moderation_response = openai.moderations.create(model=moderation_model, input=text) + flagged = moderation_response.results[0].flagged + res = {} + if category_names: + category_flags = moderation_response.results[0].categories.model_dump() + for c in category_names: + res[c] = category_flags[c] + if category_score_names: + category_scores = moderation_response.results[0].category_scores.model_dump() + for c in category_score_names: + res[f"{c}_score"] = category_scores[c] + if category_names or category_score_names: + res["moderation_flag"] = flagged + return res + else: + return flagged diff --git a/prompttools/version.py b/prompttools/version.py index b713ca27..49a555da 100644 --- a/prompttools/version.py +++ b/prompttools/version.py @@ -1,2 +1,2 @@ -__version__ = '0.0.41a0+6e6ef77' -git_version = '6e6ef77d520abd969925039b5ababcd3c52fe679' +__version__ = '0.0.45a0+6151062' +git_version = '6151062e36d63229b66d1c4193f0173ad022502d' diff --git a/pyproject.toml b/pyproject.toml index a314ece5..e01419d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "prompttools" -version = "0.0.41" +version = "0.0.45" authors = [ { name="Hegel AI", email="team@hegel-ai.com" }, ] diff --git a/test/app.py b/test/app.py new file mode 100644 index 00000000..dd2a9934 --- /dev/null +++ b/test/app.py @@ -0,0 +1,27 @@ +# Copyright (c) Hegel AI, Inc. +# All rights reserved. +# +# This source code's license can be found in the +# LICENSE file in the root directory of this source tree. + + +r""" +App for local testing of logger +""" + +from flask import Flask, request +import time + +app = Flask(__name__) + + +@app.route("/", methods=["POST"]) +def process_request(): + time.sleep(0.1) + data = request.json + print(f"Request received and processed {data}.") + return "", 200 + + +if __name__ == "__main__": + app.run(debug=True) diff --git a/test/test_logger.py b/test/test_logger.py new file mode 100644 index 00000000..8e6b4793 --- /dev/null +++ b/test/test_logger.py @@ -0,0 +1,42 @@ +# Copyright (c) Hegel AI, Inc. +# All rights reserved. +# +# This source code's license can be found in the +# LICENSE file in the root directory of this source tree. + + +if False: # Skipping this in CI + + import openai + import prompttools.logger # noqa: F401 Importing this line will monkey-patch `openai.chat.completions.create` + + +r""" +Example of using `prompttools.logger`. + +All you need to do is call `import prompttools.logger` to start logging. +You can optionally add `hegel_model` to your call (as seen below). This will associate +this call with a specific name in the logs. + +The OpenAI call is unchanged, it executes normally between your machine and OpenAI's server. + +Note: +You should have "HEGELAI_API_KEY" and "OPENAI_API_KEY" loaded into `os.environ`. +""" + +if __name__ == "__main__": + if False: # Skipping this in CI + for i in range(1): + messages = [ + {"role": "user", "content": f"What is 1 + {i}?"}, + ] + + # `hegel_model` is an optional argument that allows you to tag your call with a specific name + # Logging still works without this argument + # The rest of the OpenAI call happens as normal between your machine and OpenAI's server + openai_response = openai.chat.completions.create( + model="gpt-3.5-turbo", messages=messages, hegel_model="Math Model" + ) + print(f"{openai_response = }") + + print("End") diff --git a/version.txt b/version.txt index 4e731d9c..0f225676 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.0.41a0 +0.0.45a0