\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",
" 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 @@
"