Spaces:
Running
Running
File size: 68,032 Bytes
0d0811c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 |
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"workding dir: /home/inflaton/code/chat-with-orca-2\n"
]
}
],
"source": [
"import os\n",
"import sys\n",
"from pathlib import Path\n",
"\n",
"workding_dir = str(Path.cwd().parent)\n",
"os.chdir(workding_dir)\n",
"sys.path.append(workding_dir)\n",
"print(\"workding dir:\", workding_dir)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/inflaton/miniconda3/envs/chat-with-orca-2/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
" from .autonotebook import tqdm as notebook_tqdm\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"loading env vars from: /home/inflaton/code/chat-with-orca-2/.env\n",
"Running on: Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.35\n",
"MPS is NOT available\n",
"CUDA is available\n",
"MPS not available because the current PyTorch install was not built with MPS enabled.\n",
"CUDA is available, we have found 1 GPU(s)\n",
"NVIDIA GeForce RTX 4090\n",
"CUDA version: 12.1\n",
"hf_embeddings_device_type: cuda:0\n",
"hf_pipeline_device_type: cuda:0\n",
"load INSTRUCTOR_Transformer\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/inflaton/miniconda3/envs/chat-with-orca-2/lib/python3.11/site-packages/torch/_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()\n",
" return self.fget.__get__(instance, owner)()\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"max_seq_length 512\n",
"Completed in 0.464s\n",
"Load index from ./data/faiss_1024_512/ with FAISS\n",
"Completed in 0.013s\n",
"initializing LLM: openai\n",
" hf_pipeline_device_type: cuda:0\n",
" load_quantized_model: None\n",
" torch_dtype: torch.bfloat16\n",
" n_threds: 4\n",
" using model: gpt-3.5-turbo\n",
"initialization complete\n",
"Completed in 0.024s\n",
"CPU times: user 5.59 s, sys: 5.55 s, total: 11.1 s\n",
"Wall time: 3.47 s\n"
]
}
],
"source": [
"%%time\n",
"\n",
"os.environ[\"LLM_MODEL_TYPE\"] = \"openai\"\n",
"from eval_models import *"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"loading: ./notebook/nvidia-4090-orca-2-7b.ipynb\n",
"processing repetition_penalty: 1.05\n",
"processing repetition_penalty: 1.10\n",
"processing repetition_penalty: 1.15\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:52<00:00, 6.53s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 0.8304, 'answer_relevancy': 0.9783, 'overall_score': 0.8983}\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:31<00:00, 3.97s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 0.7500, 'answer_relevancy': 0.9748, 'overall_score': 0.8478}\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:29<00:00, 3.65s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 1.0000, 'answer_relevancy': 0.9733, 'overall_score': 0.9865}\n",
"\n",
"loading: ./notebook/nvidia-4090-llama-2-7b.ipynb\n",
"processing repetition_penalty: 1.05\n",
"processing repetition_penalty: 1.10\n",
"processing repetition_penalty: 1.15\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:35<00:00, 4.39s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 0.8750, 'answer_relevancy': 0.7151, 'overall_score': 0.7870}\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:40<00:00, 5.02s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 0.8796, 'answer_relevancy': 0.7313, 'overall_score': 0.7986}\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:53<00:00, 6.63s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 1.0000, 'answer_relevancy': 0.7112, 'overall_score': 0.8312}\n",
"\n",
"loading: ./notebook/nvidia-4090-orca-2-13b.ipynb\n",
"processing repetition_penalty: 1.05\n",
"processing repetition_penalty: 1.10\n",
"processing repetition_penalty: 1.15\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:44<00:00, 5.54s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 1.0000, 'answer_relevancy': 0.9876, 'overall_score': 0.9938}\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:47<00:00, 5.99s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 1.0000, 'answer_relevancy': 0.9608, 'overall_score': 0.9800}\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [02:41<00:00, 20.19s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 0.9500, 'answer_relevancy': 0.9611, 'overall_score': 0.9555}\n",
"\n",
"loading: ./notebook/nvidia-4090-llama-2-13b.ipynb\n",
"processing repetition_penalty: 1.05\n",
"processing repetition_penalty: 1.10\n",
"processing repetition_penalty: 1.15\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:33<00:00, 4.20s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 0.9000, 'answer_relevancy': 0.9624, 'overall_score': 0.9302}\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:41<00:00, 5.17s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 0.8750, 'answer_relevancy': 0.9673, 'overall_score': 0.9188}\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:50<00:00, 6.26s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 0.9444, 'answer_relevancy': 0.9646, 'overall_score': 0.9544}\n",
"\n",
"loading: ./notebook/nvidia-4090-openai.ipynb\n",
"processing repetition_penalty: 1.05\n",
"processing repetition_penalty: 1.10\n",
"processing repetition_penalty: 1.15\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [02:41<00:00, 20.17s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 0.9583, 'answer_relevancy': 0.4836, 'overall_score': 0.6428}\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [00:36<00:00, 4.54s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 0.8373, 'answer_relevancy': 0.9527, 'overall_score': 0.8913}\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Evaluating: 100%|██████████| 8/8 [03:09<00:00, 23.67s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"# Ragas scores: {'faithfulness': 1.0000, 'answer_relevancy': 0.7019, 'overall_score': 0.8248}\n",
"\n",
"CPU times: user 5.91 s, sys: 930 ms, total: 6.84 s\n",
"Wall time: 17min 18s\n"
]
}
],
"source": [
"%%time\n",
"\n",
"model_names = [\"orca-2-7b\", \"llama-2-7b\", \"orca-2-13b\", \"llama-2-13b\", \"openai\"]\n",
"\n",
"perf_pd, raw_pd = evaluate_models(model_names)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>model_name</th>\n",
" <th>repetition_penalty</th>\n",
" <th>faithfulness</th>\n",
" <th>answer_relevancy</th>\n",
" <th>overall_score</th>\n",
" <th>total_time_used</th>\n",
" <th>num_tokens_generated</th>\n",
" <th>token_per_second</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.05</td>\n",
" <td>0.830357</td>\n",
" <td>0.978324</td>\n",
" <td>0.898288</td>\n",
" <td>46.121</td>\n",
" <td>536</td>\n",
" <td>11.622</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.10</td>\n",
" <td>0.750000</td>\n",
" <td>0.974817</td>\n",
" <td>0.847757</td>\n",
" <td>20.195</td>\n",
" <td>652</td>\n",
" <td>32.286</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.15</td>\n",
" <td>1.000000</td>\n",
" <td>0.973278</td>\n",
" <td>0.986458</td>\n",
" <td>13.672</td>\n",
" <td>454</td>\n",
" <td>33.208</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.05</td>\n",
" <td>0.875000</td>\n",
" <td>0.715099</td>\n",
" <td>0.787010</td>\n",
" <td>19.468</td>\n",
" <td>679</td>\n",
" <td>34.878</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.10</td>\n",
" <td>0.879630</td>\n",
" <td>0.731304</td>\n",
" <td>0.798638</td>\n",
" <td>21.670</td>\n",
" <td>759</td>\n",
" <td>35.026</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.15</td>\n",
" <td>1.000000</td>\n",
" <td>0.711172</td>\n",
" <td>0.831210</td>\n",
" <td>22.604</td>\n",
" <td>803</td>\n",
" <td>35.524</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.05</td>\n",
" <td>1.000000</td>\n",
" <td>0.987592</td>\n",
" <td>0.993757</td>\n",
" <td>397.548</td>\n",
" <td>641</td>\n",
" <td>1.612</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.10</td>\n",
" <td>1.000000</td>\n",
" <td>0.960806</td>\n",
" <td>0.980011</td>\n",
" <td>272.891</td>\n",
" <td>478</td>\n",
" <td>1.752</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.15</td>\n",
" <td>0.950000</td>\n",
" <td>0.961115</td>\n",
" <td>0.955525</td>\n",
" <td>291.610</td>\n",
" <td>514</td>\n",
" <td>1.763</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.05</td>\n",
" <td>0.900000</td>\n",
" <td>0.962428</td>\n",
" <td>0.930168</td>\n",
" <td>369.084</td>\n",
" <td>677</td>\n",
" <td>1.834</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.10</td>\n",
" <td>0.875000</td>\n",
" <td>0.967267</td>\n",
" <td>0.918823</td>\n",
" <td>505.816</td>\n",
" <td>881</td>\n",
" <td>1.742</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.15</td>\n",
" <td>0.944444</td>\n",
" <td>0.964647</td>\n",
" <td>0.954439</td>\n",
" <td>435.429</td>\n",
" <td>777</td>\n",
" <td>1.784</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>gpt-3.5-turbo</td>\n",
" <td></td>\n",
" <td>0.958333</td>\n",
" <td>0.483574</td>\n",
" <td>0.642795</td>\n",
" <td>13.232</td>\n",
" <td>425</td>\n",
" <td>32.119</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <td>gpt-3.5-turbo-instruct</td>\n",
" <td></td>\n",
" <td>0.837302</td>\n",
" <td>0.952711</td>\n",
" <td>0.891286</td>\n",
" <td>10.360</td>\n",
" <td>411</td>\n",
" <td>39.673</td>\n",
" </tr>\n",
" <tr>\n",
" <th>14</th>\n",
" <td>gpt-4</td>\n",
" <td></td>\n",
" <td>1.000000</td>\n",
" <td>0.701869</td>\n",
" <td>0.824822</td>\n",
" <td>42.257</td>\n",
" <td>670</td>\n",
" <td>15.855</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" model_name repetition_penalty faithfulness answer_relevancy \\\n",
"0 orca-2-7b 1.05 0.830357 0.978324 \n",
"1 orca-2-7b 1.10 0.750000 0.974817 \n",
"2 orca-2-7b 1.15 1.000000 0.973278 \n",
"3 llama-2-7b 1.05 0.875000 0.715099 \n",
"4 llama-2-7b 1.10 0.879630 0.731304 \n",
"5 llama-2-7b 1.15 1.000000 0.711172 \n",
"6 orca-2-13b 1.05 1.000000 0.987592 \n",
"7 orca-2-13b 1.10 1.000000 0.960806 \n",
"8 orca-2-13b 1.15 0.950000 0.961115 \n",
"9 llama-2-13b 1.05 0.900000 0.962428 \n",
"10 llama-2-13b 1.10 0.875000 0.967267 \n",
"11 llama-2-13b 1.15 0.944444 0.964647 \n",
"12 gpt-3.5-turbo 0.958333 0.483574 \n",
"13 gpt-3.5-turbo-instruct 0.837302 0.952711 \n",
"14 gpt-4 1.000000 0.701869 \n",
"\n",
" overall_score total_time_used num_tokens_generated token_per_second \n",
"0 0.898288 46.121 536 11.622 \n",
"1 0.847757 20.195 652 32.286 \n",
"2 0.986458 13.672 454 33.208 \n",
"3 0.787010 19.468 679 34.878 \n",
"4 0.798638 21.670 759 35.026 \n",
"5 0.831210 22.604 803 35.524 \n",
"6 0.993757 397.548 641 1.612 \n",
"7 0.980011 272.891 478 1.752 \n",
"8 0.955525 291.610 514 1.763 \n",
"9 0.930168 369.084 677 1.834 \n",
"10 0.918823 505.816 881 1.742 \n",
"11 0.954439 435.429 777 1.784 \n",
"12 0.642795 13.232 425 32.119 \n",
"13 0.891286 10.360 411 39.673 \n",
"14 0.824822 42.257 670 15.855 "
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"perf_pd"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>model_name</th>\n",
" <th>repetition_penalty</th>\n",
" <th>user_question</th>\n",
" <th>standalone_question</th>\n",
" <th>contexts</th>\n",
" <th>answer</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.05</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS stands for Payment Card Industry Data ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.05</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>What are the main differences between PCI DSS ...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The main differences between PCI DSS version 3...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.05</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are the new requirements for vulnerabilit...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The new requirements for vulnerability assessm...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.05</td>\n",
" <td>more on penetration testing</td>\n",
" <td>What are the new requirements for penetration ...</td>\n",
" <td>[PCI DSS v4.0 ROC Template r1 December 2022 ...</td>\n",
" <td>The new requirements for penetration testing i...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.10</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS stands for Payment Card Industry Data ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.10</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>What are the main differences between PCI DSS ...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The main differences between PCI DSS versions ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.10</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are the new requirements for vulnerabilit...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>There are several new requirements related to ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.10</td>\n",
" <td>more on penetration testing</td>\n",
" <td>What are some key differences between penetrat...</td>\n",
" <td>[PCI DSS v4.0 ROC Template r1 December 2022 ...</td>\n",
" <td>Some key differences between penetration testi...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.15</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS stands for Payment Card Industry Data ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.15</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>How has the latest version of PCI DSS, version...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The latest version of PCI DSS, version 4.0, di...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.15</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are some new requirements for vulnerabili...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>Some new requirements for vulnerability assess...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>orca-2-7b</td>\n",
" <td>1.15</td>\n",
" <td>more on penetration testing</td>\n",
" <td>What are some best practices for conducting ef...</td>\n",
" <td>[methodology examined for this testing \\nproc...</td>\n",
" <td>Some best practices for conducting effective p...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.05</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS stands for Payment Card Industry Data ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.05</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>What are the key changes made in PCI DSS versi...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>Based on the provided document, the key chang...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>14</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.05</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are the new requirements for vulnerabilit...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>According to the provided summary of changes,...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.05</td>\n",
" <td>more on penetration testing</td>\n",
" <td>What are the new requirements for penetration ...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The new requirement for penetration testing i...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.10</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS stands for Payment Card Industry Data ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>17</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.10</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>What are the key changes made in PCI DSS versi...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The key changes made in PCI DSS version 4.0 co...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>18</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.10</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are the new requirements for vulnerabilit...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The new requirement for vulnerability assessme...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>19</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.10</td>\n",
" <td>more on penetration testing</td>\n",
" <td>What are the new requirements for penetration ...</td>\n",
" <td>[PCI DSS v4.0 ROC Template r1 December 2022 ...</td>\n",
" <td>The new requirements for penetration testing i...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>20</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.15</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>According to the given quick reference guide, ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>21</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.15</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>What are the key changes between PCI DSS versi...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The document highlights several significant mo...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>22</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.15</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are some of the new requirements for vuln...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>According to the provided documents, one of th...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>23</th>\n",
" <td>llama-2-7b</td>\n",
" <td>1.15</td>\n",
" <td>more on penetration testing</td>\n",
" <td>Could you explain what penetration testing ent...</td>\n",
" <td>[PCI DSS v4.0 ROC Template r1 December 2022 ...</td>\n",
" <td>Sure! Penetration testing is a crucial compone...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>24</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.05</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS is a global standard that provides a b...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.05</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>¿Puedes resumir los cambios realizados desde l...</td>\n",
" <td>[April 2015 PCI DSS 3.1, \\nRevision 1.0 Revi...</td>\n",
" <td>Sí, puedo resumir los cambios realizados desde...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>26</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.05</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>¿Cuáles son las nuevas requisitos para las eva...</td>\n",
" <td>[The Prioritized Approach to Pursue PCI DSS Co...</td>\n",
" <td>Las nuevas requisitos para las evaluaciones de...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>27</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.05</td>\n",
" <td>more on penetration testing</td>\n",
" <td>¿Puedes dar más detalles sobre las prácticas d...</td>\n",
" <td>[The Prioritized Approach to Pursue PCI DSS Co...</td>\n",
" <td>Sí, puedo dar más detalles sobre las prácticas...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>28</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.10</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS is a set of requirements designed to p...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>29</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.10</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>¿Puedes resumir los cambios realizados desde l...</td>\n",
" <td>[April 2015 PCI DSS 3.1, \\nRevision 1.0 Revi...</td>\n",
" <td>Sí, puedo resumir los cambios realizados desde...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>30</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.10</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>¿Cuáles son las nuevas exigencias para las eva...</td>\n",
" <td>[The Prioritized Approach to Pursue PCI DSS Co...</td>\n",
" <td>Las nuevas exigencias para las evaluaciones de...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>31</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.10</td>\n",
" <td>more on penetration testing</td>\n",
" <td>¿Puedo obtener más información sobre las prueb...</td>\n",
" <td>[The Prioritized Approach to Pursue PCI DSS Co...</td>\n",
" <td>Yes, you can get more information about penetr...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>32</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.15</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS is a set of requirements designed to p...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>33</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.15</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>¿Puedes resumir los cambios realizados desde l...</td>\n",
" <td>[April 2015 PCI DSS 3.1, \\nRevision 1.0 Revi...</td>\n",
" <td>Sí, puedo resumir los cambios realizados desde...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>34</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.15</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>¿Cuáles son las nuevas recomendaciones para la...</td>\n",
" <td>[The Prioritized Approach to Pursue PCI DSS Co...</td>\n",
" <td>Las nuevas recomendaciones para las evaluacion...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>35</th>\n",
" <td>orca-2-13b</td>\n",
" <td>1.15</td>\n",
" <td>more on penetration testing</td>\n",
" <td>¿Puedes dar más información sobre las pruebas ...</td>\n",
" <td>[The Prioritized Approach to Pursue PCI DSS Co...</td>\n",
" <td>Sí, puedo dar más información sobre las prueba...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>36</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.05</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS is the Payment Card Industry Data Secu...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>37</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.05</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>What are the key changes between PCI DSS versi...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>What are the key changes between PCI DSS vers...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>38</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.05</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are the new requirements for vulnerabilit...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>According to the provided document, there are ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>39</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.05</td>\n",
" <td>more on penetration testing</td>\n",
" <td>What are the new requirements for penetration ...</td>\n",
" <td>[PCI DSS v4.0 ROC Template r1 December 2022 ...</td>\n",
" <td>Based on the provided information, the new re...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>40</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.10</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS stands for Payment Card Industry Data ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>41</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.10</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>What are the key changes between PCI DSS versi...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>Based on the provided document, here are the ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>42</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.10</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are the new requirements for vulnerabilit...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>According to the provided document, there are...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>43</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.10</td>\n",
" <td>more on penetration testing</td>\n",
" <td>What are the new requirements for penetration ...</td>\n",
" <td>[PCI DSS v4.0 ROC Template r1 December 2022 ...</td>\n",
" <td>Based on the provided information, there are ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>44</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.15</td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS stands for Payment Card Industry Data ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>45</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.15</td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>What are the key changes between PCI DSS versi...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>Based on the provided document, here are some...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>46</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.15</td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are the new requirements for vulnerabilit...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>According to the provided document, there are...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>47</th>\n",
" <td>llama-2-13b</td>\n",
" <td>1.15</td>\n",
" <td>more on penetration testing</td>\n",
" <td>What are the new requirements for penetration ...</td>\n",
" <td>[PCI DSS v4.0 ROC Template r1 December 2022 ...</td>\n",
" <td>Based on the provided information, there are ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>48</th>\n",
" <td>gpt-3.5-turbo</td>\n",
" <td></td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>PCI DSS stands for Payment Card Industry Data ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>49</th>\n",
" <td>gpt-3.5-turbo</td>\n",
" <td></td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>What are the differences between PCI DSS versi...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The document provided does not specify the spe...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>50</th>\n",
" <td>gpt-3.5-turbo</td>\n",
" <td></td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are the new requirements for vulnerabilit...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>In PCI DSS version 4.0, there are several new ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>51</th>\n",
" <td>gpt-3.5-turbo</td>\n",
" <td></td>\n",
" <td>more on penetration testing</td>\n",
" <td>Can you provide more information about the cha...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>I'm sorry, but I don't have access to the spec...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>52</th>\n",
" <td>gpt-3.5-turbo-instruct</td>\n",
" <td></td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>The PCI Data Security Standard (PCI DSS) is a...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>53</th>\n",
" <td>gpt-3.5-turbo-instruct</td>\n",
" <td></td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>What changes were made from PCI DSS version 3...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The changes made from PCI DSS version 3.2.1 t...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>54</th>\n",
" <td>gpt-3.5-turbo-instruct</td>\n",
" <td></td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are the new requirements for vulnerabili...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The new requirements for vulnerability assess...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>55</th>\n",
" <td>gpt-3.5-turbo-instruct</td>\n",
" <td></td>\n",
" <td>more on penetration testing</td>\n",
" <td>Can you provide more information about the ne...</td>\n",
" <td>[PCI DSS v4.0 ROC Template r1 December 2022 ...</td>\n",
" <td>The new requirements for penetration testing ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>56</th>\n",
" <td>gpt-4</td>\n",
" <td></td>\n",
" <td>What's PCI DSS?</td>\n",
" <td></td>\n",
" <td>[PCI Data Security Standard\\nPCI DSS provides ...</td>\n",
" <td>The PCI Data Security Standard (PCI DSS) is a ...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>57</th>\n",
" <td>gpt-4</td>\n",
" <td></td>\n",
" <td>Can you summarize the changes made from PCI DS...</td>\n",
" <td>Can you provide a summary of the changes that ...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>I'm sorry, but the provided context does not i...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>58</th>\n",
" <td>gpt-4</td>\n",
" <td></td>\n",
" <td>new requirements for vulnerability assessments</td>\n",
" <td>What are the new requirements for vulnerabilit...</td>\n",
" <td>[PCI DSS v3.2.1 to v.4.0 Summary of Changes r...</td>\n",
" <td>The new requirements for vulnerability assessm...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>59</th>\n",
" <td>gpt-4</td>\n",
" <td></td>\n",
" <td>more on penetration testing</td>\n",
" <td>Can you provide more information on penetratio...</td>\n",
" <td>[PCI DSS v4.0 ROC Template r1 December 2022 ...</td>\n",
" <td>Penetration testing in the context of PCI DSS ...</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" model_name repetition_penalty \\\n",
"0 orca-2-7b 1.05 \n",
"1 orca-2-7b 1.05 \n",
"2 orca-2-7b 1.05 \n",
"3 orca-2-7b 1.05 \n",
"4 orca-2-7b 1.10 \n",
"5 orca-2-7b 1.10 \n",
"6 orca-2-7b 1.10 \n",
"7 orca-2-7b 1.10 \n",
"8 orca-2-7b 1.15 \n",
"9 orca-2-7b 1.15 \n",
"10 orca-2-7b 1.15 \n",
"11 orca-2-7b 1.15 \n",
"12 llama-2-7b 1.05 \n",
"13 llama-2-7b 1.05 \n",
"14 llama-2-7b 1.05 \n",
"15 llama-2-7b 1.05 \n",
"16 llama-2-7b 1.10 \n",
"17 llama-2-7b 1.10 \n",
"18 llama-2-7b 1.10 \n",
"19 llama-2-7b 1.10 \n",
"20 llama-2-7b 1.15 \n",
"21 llama-2-7b 1.15 \n",
"22 llama-2-7b 1.15 \n",
"23 llama-2-7b 1.15 \n",
"24 orca-2-13b 1.05 \n",
"25 orca-2-13b 1.05 \n",
"26 orca-2-13b 1.05 \n",
"27 orca-2-13b 1.05 \n",
"28 orca-2-13b 1.10 \n",
"29 orca-2-13b 1.10 \n",
"30 orca-2-13b 1.10 \n",
"31 orca-2-13b 1.10 \n",
"32 orca-2-13b 1.15 \n",
"33 orca-2-13b 1.15 \n",
"34 orca-2-13b 1.15 \n",
"35 orca-2-13b 1.15 \n",
"36 llama-2-13b 1.05 \n",
"37 llama-2-13b 1.05 \n",
"38 llama-2-13b 1.05 \n",
"39 llama-2-13b 1.05 \n",
"40 llama-2-13b 1.10 \n",
"41 llama-2-13b 1.10 \n",
"42 llama-2-13b 1.10 \n",
"43 llama-2-13b 1.10 \n",
"44 llama-2-13b 1.15 \n",
"45 llama-2-13b 1.15 \n",
"46 llama-2-13b 1.15 \n",
"47 llama-2-13b 1.15 \n",
"48 gpt-3.5-turbo \n",
"49 gpt-3.5-turbo \n",
"50 gpt-3.5-turbo \n",
"51 gpt-3.5-turbo \n",
"52 gpt-3.5-turbo-instruct \n",
"53 gpt-3.5-turbo-instruct \n",
"54 gpt-3.5-turbo-instruct \n",
"55 gpt-3.5-turbo-instruct \n",
"56 gpt-4 \n",
"57 gpt-4 \n",
"58 gpt-4 \n",
"59 gpt-4 \n",
"\n",
" user_question \\\n",
"0 What's PCI DSS? \n",
"1 Can you summarize the changes made from PCI DS... \n",
"2 new requirements for vulnerability assessments \n",
"3 more on penetration testing \n",
"4 What's PCI DSS? \n",
"5 Can you summarize the changes made from PCI DS... \n",
"6 new requirements for vulnerability assessments \n",
"7 more on penetration testing \n",
"8 What's PCI DSS? \n",
"9 Can you summarize the changes made from PCI DS... \n",
"10 new requirements for vulnerability assessments \n",
"11 more on penetration testing \n",
"12 What's PCI DSS? \n",
"13 Can you summarize the changes made from PCI DS... \n",
"14 new requirements for vulnerability assessments \n",
"15 more on penetration testing \n",
"16 What's PCI DSS? \n",
"17 Can you summarize the changes made from PCI DS... \n",
"18 new requirements for vulnerability assessments \n",
"19 more on penetration testing \n",
"20 What's PCI DSS? \n",
"21 Can you summarize the changes made from PCI DS... \n",
"22 new requirements for vulnerability assessments \n",
"23 more on penetration testing \n",
"24 What's PCI DSS? \n",
"25 Can you summarize the changes made from PCI DS... \n",
"26 new requirements for vulnerability assessments \n",
"27 more on penetration testing \n",
"28 What's PCI DSS? \n",
"29 Can you summarize the changes made from PCI DS... \n",
"30 new requirements for vulnerability assessments \n",
"31 more on penetration testing \n",
"32 What's PCI DSS? \n",
"33 Can you summarize the changes made from PCI DS... \n",
"34 new requirements for vulnerability assessments \n",
"35 more on penetration testing \n",
"36 What's PCI DSS? \n",
"37 Can you summarize the changes made from PCI DS... \n",
"38 new requirements for vulnerability assessments \n",
"39 more on penetration testing \n",
"40 What's PCI DSS? \n",
"41 Can you summarize the changes made from PCI DS... \n",
"42 new requirements for vulnerability assessments \n",
"43 more on penetration testing \n",
"44 What's PCI DSS? \n",
"45 Can you summarize the changes made from PCI DS... \n",
"46 new requirements for vulnerability assessments \n",
"47 more on penetration testing \n",
"48 What's PCI DSS? \n",
"49 Can you summarize the changes made from PCI DS... \n",
"50 new requirements for vulnerability assessments \n",
"51 more on penetration testing \n",
"52 What's PCI DSS? \n",
"53 Can you summarize the changes made from PCI DS... \n",
"54 new requirements for vulnerability assessments \n",
"55 more on penetration testing \n",
"56 What's PCI DSS? \n",
"57 Can you summarize the changes made from PCI DS... \n",
"58 new requirements for vulnerability assessments \n",
"59 more on penetration testing \n",
"\n",
" standalone_question \\\n",
"0 \n",
"1 What are the main differences between PCI DSS ... \n",
"2 What are the new requirements for vulnerabilit... \n",
"3 What are the new requirements for penetration ... \n",
"4 \n",
"5 What are the main differences between PCI DSS ... \n",
"6 What are the new requirements for vulnerabilit... \n",
"7 What are some key differences between penetrat... \n",
"8 \n",
"9 How has the latest version of PCI DSS, version... \n",
"10 What are some new requirements for vulnerabili... \n",
"11 What are some best practices for conducting ef... \n",
"12 \n",
"13 What are the key changes made in PCI DSS versi... \n",
"14 What are the new requirements for vulnerabilit... \n",
"15 What are the new requirements for penetration ... \n",
"16 \n",
"17 What are the key changes made in PCI DSS versi... \n",
"18 What are the new requirements for vulnerabilit... \n",
"19 What are the new requirements for penetration ... \n",
"20 \n",
"21 What are the key changes between PCI DSS versi... \n",
"22 What are some of the new requirements for vuln... \n",
"23 Could you explain what penetration testing ent... \n",
"24 \n",
"25 ¿Puedes resumir los cambios realizados desde l... \n",
"26 ¿Cuáles son las nuevas requisitos para las eva... \n",
"27 ¿Puedes dar más detalles sobre las prácticas d... \n",
"28 \n",
"29 ¿Puedes resumir los cambios realizados desde l... \n",
"30 ¿Cuáles son las nuevas exigencias para las eva... \n",
"31 ¿Puedo obtener más información sobre las prueb... \n",
"32 \n",
"33 ¿Puedes resumir los cambios realizados desde l... \n",
"34 ¿Cuáles son las nuevas recomendaciones para la... \n",
"35 ¿Puedes dar más información sobre las pruebas ... \n",
"36 \n",
"37 What are the key changes between PCI DSS versi... \n",
"38 What are the new requirements for vulnerabilit... \n",
"39 What are the new requirements for penetration ... \n",
"40 \n",
"41 What are the key changes between PCI DSS versi... \n",
"42 What are the new requirements for vulnerabilit... \n",
"43 What are the new requirements for penetration ... \n",
"44 \n",
"45 What are the key changes between PCI DSS versi... \n",
"46 What are the new requirements for vulnerabilit... \n",
"47 What are the new requirements for penetration ... \n",
"48 \n",
"49 What are the differences between PCI DSS versi... \n",
"50 What are the new requirements for vulnerabilit... \n",
"51 Can you provide more information about the cha... \n",
"52 \n",
"53 What changes were made from PCI DSS version 3... \n",
"54 What are the new requirements for vulnerabili... \n",
"55 Can you provide more information about the ne... \n",
"56 \n",
"57 Can you provide a summary of the changes that ... \n",
"58 What are the new requirements for vulnerabilit... \n",
"59 Can you provide more information on penetratio... \n",
"\n",
" contexts \\\n",
"0 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"1 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"2 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"3 [PCI DSS v4.0 ROC Template r1 December 2022 ... \n",
"4 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"5 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"6 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"7 [PCI DSS v4.0 ROC Template r1 December 2022 ... \n",
"8 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"9 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"10 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"11 [methodology examined for this testing \\nproc... \n",
"12 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"13 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"14 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"15 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"16 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"17 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"18 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"19 [PCI DSS v4.0 ROC Template r1 December 2022 ... \n",
"20 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"21 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"22 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"23 [PCI DSS v4.0 ROC Template r1 December 2022 ... \n",
"24 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"25 [April 2015 PCI DSS 3.1, \\nRevision 1.0 Revi... \n",
"26 [The Prioritized Approach to Pursue PCI DSS Co... \n",
"27 [The Prioritized Approach to Pursue PCI DSS Co... \n",
"28 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"29 [April 2015 PCI DSS 3.1, \\nRevision 1.0 Revi... \n",
"30 [The Prioritized Approach to Pursue PCI DSS Co... \n",
"31 [The Prioritized Approach to Pursue PCI DSS Co... \n",
"32 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"33 [April 2015 PCI DSS 3.1, \\nRevision 1.0 Revi... \n",
"34 [The Prioritized Approach to Pursue PCI DSS Co... \n",
"35 [The Prioritized Approach to Pursue PCI DSS Co... \n",
"36 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"37 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"38 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"39 [PCI DSS v4.0 ROC Template r1 December 2022 ... \n",
"40 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"41 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"42 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"43 [PCI DSS v4.0 ROC Template r1 December 2022 ... \n",
"44 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"45 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"46 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"47 [PCI DSS v4.0 ROC Template r1 December 2022 ... \n",
"48 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"49 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"50 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"51 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"52 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"53 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"54 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"55 [PCI DSS v4.0 ROC Template r1 December 2022 ... \n",
"56 [PCI Data Security Standard\\nPCI DSS provides ... \n",
"57 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"58 [PCI DSS v3.2.1 to v.4.0 Summary of Changes r... \n",
"59 [PCI DSS v4.0 ROC Template r1 December 2022 ... \n",
"\n",
" answer \n",
"0 PCI DSS stands for Payment Card Industry Data ... \n",
"1 The main differences between PCI DSS version 3... \n",
"2 The new requirements for vulnerability assessm... \n",
"3 The new requirements for penetration testing i... \n",
"4 PCI DSS stands for Payment Card Industry Data ... \n",
"5 The main differences between PCI DSS versions ... \n",
"6 There are several new requirements related to ... \n",
"7 Some key differences between penetration testi... \n",
"8 PCI DSS stands for Payment Card Industry Data ... \n",
"9 The latest version of PCI DSS, version 4.0, di... \n",
"10 Some new requirements for vulnerability assess... \n",
"11 Some best practices for conducting effective p... \n",
"12 PCI DSS stands for Payment Card Industry Data ... \n",
"13 Based on the provided document, the key chang... \n",
"14 According to the provided summary of changes,... \n",
"15 The new requirement for penetration testing i... \n",
"16 PCI DSS stands for Payment Card Industry Data ... \n",
"17 The key changes made in PCI DSS version 4.0 co... \n",
"18 The new requirement for vulnerability assessme... \n",
"19 The new requirements for penetration testing i... \n",
"20 According to the given quick reference guide, ... \n",
"21 The document highlights several significant mo... \n",
"22 According to the provided documents, one of th... \n",
"23 Sure! Penetration testing is a crucial compone... \n",
"24 PCI DSS is a global standard that provides a b... \n",
"25 Sí, puedo resumir los cambios realizados desde... \n",
"26 Las nuevas requisitos para las evaluaciones de... \n",
"27 Sí, puedo dar más detalles sobre las prácticas... \n",
"28 PCI DSS is a set of requirements designed to p... \n",
"29 Sí, puedo resumir los cambios realizados desde... \n",
"30 Las nuevas exigencias para las evaluaciones de... \n",
"31 Yes, you can get more information about penetr... \n",
"32 PCI DSS is a set of requirements designed to p... \n",
"33 Sí, puedo resumir los cambios realizados desde... \n",
"34 Las nuevas recomendaciones para las evaluacion... \n",
"35 Sí, puedo dar más información sobre las prueba... \n",
"36 PCI DSS is the Payment Card Industry Data Secu... \n",
"37 What are the key changes between PCI DSS vers... \n",
"38 According to the provided document, there are ... \n",
"39 Based on the provided information, the new re... \n",
"40 PCI DSS stands for Payment Card Industry Data ... \n",
"41 Based on the provided document, here are the ... \n",
"42 According to the provided document, there are... \n",
"43 Based on the provided information, there are ... \n",
"44 PCI DSS stands for Payment Card Industry Data ... \n",
"45 Based on the provided document, here are some... \n",
"46 According to the provided document, there are... \n",
"47 Based on the provided information, there are ... \n",
"48 PCI DSS stands for Payment Card Industry Data ... \n",
"49 The document provided does not specify the spe... \n",
"50 In PCI DSS version 4.0, there are several new ... \n",
"51 I'm sorry, but I don't have access to the spec... \n",
"52 The PCI Data Security Standard (PCI DSS) is a... \n",
"53 The changes made from PCI DSS version 3.2.1 t... \n",
"54 The new requirements for vulnerability assess... \n",
"55 The new requirements for penetration testing ... \n",
"56 The PCI Data Security Standard (PCI DSS) is a ... \n",
"57 I'm sorry, but the provided context does not i... \n",
"58 The new requirements for vulnerability assessm... \n",
"59 Penetration testing in the context of PCI DSS ... "
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"raw_pd"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"raw_pd.to_excel(\"./results/raw_data.xlsx\", index=False)\n",
"perf_pd.to_excel(\"./results/perf_data.xlsx\", index=False)"
]
}
],
"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.7"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
|