Skip to content

Commit 20d6c13

Browse files
committed
▶️ Re-run full notebook
1 parent 5f8054d commit 20d6c13

File tree

1 file changed

+113
-63
lines changed

1 file changed

+113
-63
lines changed

qa_engine.ipynb

+113-63
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@
182182
"id": "d2e4dd33",
183183
"metadata": {
184184
"ExecuteTime": {
185-
"end_time": "2023-12-08T11:28:08.927019Z",
186-
"start_time": "2023-12-08T11:28:04.559279Z"
185+
"end_time": "2023-12-08T13:46:12.732800Z",
186+
"start_time": "2023-12-08T13:46:09.093080Z"
187187
},
188188
"execution": {
189189
"iopub.execute_input": "2023-08-17T21:41:02.423021Z",
@@ -215,8 +215,8 @@
215215
"id": "bbd4edbe",
216216
"metadata": {
217217
"ExecuteTime": {
218-
"end_time": "2023-12-08T11:28:08.950950Z",
219-
"start_time": "2023-12-08T11:28:08.934849Z"
218+
"end_time": "2023-12-08T13:46:12.746540Z",
219+
"start_time": "2023-12-08T13:46:12.737016Z"
220220
},
221221
"execution": {
222222
"iopub.execute_input": "2023-08-16T22:06:50.604289Z",
@@ -245,8 +245,8 @@
245245
"id": "566e9d28",
246246
"metadata": {
247247
"ExecuteTime": {
248-
"end_time": "2023-12-08T11:28:09.042153Z",
249-
"start_time": "2023-12-08T11:28:09.011199Z"
248+
"end_time": "2023-12-08T13:46:12.768053Z",
249+
"start_time": "2023-12-08T13:46:12.749731Z"
250250
},
251251
"slideshow": {
252252
"slide_type": "fragment"
@@ -295,8 +295,8 @@
295295
"id": "5e02bdd6",
296296
"metadata": {
297297
"ExecuteTime": {
298-
"end_time": "2023-12-08T11:28:13.428528Z",
299-
"start_time": "2023-12-08T11:28:12.882609Z"
298+
"end_time": "2023-12-08T13:46:13.329499Z",
299+
"start_time": "2023-12-08T13:46:12.773825Z"
300300
},
301301
"execution": {
302302
"iopub.execute_input": "2023-08-16T22:06:50.623104Z",
@@ -321,8 +321,8 @@
321321
"id": "035dd36a",
322322
"metadata": {
323323
"ExecuteTime": {
324-
"end_time": "2023-12-08T11:29:01.705305Z",
325-
"start_time": "2023-12-08T11:28:14.842752Z"
324+
"end_time": "2023-12-08T13:46:50.833105Z",
325+
"start_time": "2023-12-08T13:46:13.332908Z"
326326
},
327327
"execution": {
328328
"iopub.execute_input": "2023-08-16T22:06:50.645364Z",
@@ -372,8 +372,8 @@
372372
"id": "356e652b",
373373
"metadata": {
374374
"ExecuteTime": {
375-
"end_time": "2023-12-08T11:29:10.118115Z",
376-
"start_time": "2023-12-08T11:29:08.484337Z"
375+
"end_time": "2023-12-08T13:46:52.229762Z",
376+
"start_time": "2023-12-08T13:46:50.841943Z"
377377
},
378378
"execution": {
379379
"iopub.execute_input": "2023-08-16T22:07:33.872300Z",
@@ -404,8 +404,8 @@
404404
"id": "ca4756f2",
405405
"metadata": {
406406
"ExecuteTime": {
407-
"end_time": "2023-12-08T11:30:08.646344Z",
408-
"start_time": "2023-12-08T11:29:12.212823Z"
407+
"end_time": "2023-12-08T13:47:36.683436Z",
408+
"start_time": "2023-12-08T13:46:52.232687Z"
409409
},
410410
"execution": {
411411
"iopub.execute_input": "2023-08-16T22:07:34.093984Z",
@@ -480,8 +480,8 @@
480480
"id": "3863d1ce",
481481
"metadata": {
482482
"ExecuteTime": {
483-
"end_time": "2023-12-08T11:30:24.406601Z",
484-
"start_time": "2023-12-08T11:30:24.386803Z"
483+
"end_time": "2023-12-08T13:47:36.701380Z",
484+
"start_time": "2023-12-08T13:47:36.693754Z"
485485
},
486486
"execution": {
487487
"iopub.execute_input": "2023-08-16T22:08:23.120133Z",
@@ -511,8 +511,8 @@
511511
"id": "e1be847d",
512512
"metadata": {
513513
"ExecuteTime": {
514-
"end_time": "2023-12-08T11:30:30.974602Z",
515-
"start_time": "2023-12-08T11:30:28.134081Z"
514+
"end_time": "2023-12-08T13:47:39.240148Z",
515+
"start_time": "2023-12-08T13:47:36.707930Z"
516516
},
517517
"execution": {
518518
"iopub.execute_input": "2023-08-16T22:08:23.144759Z",
@@ -559,8 +559,8 @@
559559
"id": "d8c8ce7f",
560560
"metadata": {
561561
"ExecuteTime": {
562-
"end_time": "2023-12-08T11:30:39.850367Z",
563-
"start_time": "2023-12-08T11:30:37.655638Z"
562+
"end_time": "2023-12-08T13:47:41.189439Z",
563+
"start_time": "2023-12-08T13:47:39.248366Z"
564564
},
565565
"execution": {
566566
"iopub.execute_input": "2023-08-16T22:08:26.146251Z",
@@ -595,8 +595,8 @@
595595
"id": "5f13f29e",
596596
"metadata": {
597597
"ExecuteTime": {
598-
"end_time": "2023-12-08T11:30:48.221606Z",
599-
"start_time": "2023-12-08T11:30:41.563111Z"
598+
"end_time": "2023-12-08T13:47:46.791522Z",
599+
"start_time": "2023-12-08T13:47:41.193109Z"
600600
},
601601
"execution": {
602602
"iopub.execute_input": "2023-08-16T22:08:28.441585Z",
@@ -643,8 +643,8 @@
643643
"id": "5f28f639",
644644
"metadata": {
645645
"ExecuteTime": {
646-
"end_time": "2023-12-08T11:30:55.176772Z",
647-
"start_time": "2023-12-08T11:30:50.712804Z"
646+
"end_time": "2023-12-08T13:47:50.670021Z",
647+
"start_time": "2023-12-08T13:47:46.794796Z"
648648
},
649649
"execution": {
650650
"iopub.execute_input": "2023-08-16T22:08:35.093745Z",
@@ -679,8 +679,8 @@
679679
"id": "6066e8c9",
680680
"metadata": {
681681
"ExecuteTime": {
682-
"end_time": "2023-12-08T11:31:00.628542Z",
683-
"start_time": "2023-12-08T11:30:56.897892Z"
682+
"end_time": "2023-12-08T13:47:53.719463Z",
683+
"start_time": "2023-12-08T13:47:50.674669Z"
684684
},
685685
"execution": {
686686
"iopub.execute_input": "2023-08-16T22:08:40.539606Z",
@@ -762,8 +762,8 @@
762762
"id": "d49c5278",
763763
"metadata": {
764764
"ExecuteTime": {
765-
"end_time": "2023-12-08T11:31:19.761723Z",
766-
"start_time": "2023-12-08T11:31:15.800215Z"
765+
"end_time": "2023-12-08T13:47:57.143492Z",
766+
"start_time": "2023-12-08T13:47:53.722976Z"
767767
},
768768
"slideshow": {
769769
"slide_type": "-"
@@ -796,8 +796,8 @@
796796
"id": "cec6a4fb",
797797
"metadata": {
798798
"ExecuteTime": {
799-
"end_time": "2023-12-08T11:31:28.000551Z",
800-
"start_time": "2023-12-08T11:31:27.974194Z"
799+
"end_time": "2023-12-08T13:47:57.166957Z",
800+
"start_time": "2023-12-08T13:47:57.149773Z"
801801
},
802802
"slideshow": {
803803
"slide_type": "fragment"
@@ -950,8 +950,8 @@
950950
"id": "1e971853",
951951
"metadata": {
952952
"ExecuteTime": {
953-
"end_time": "2023-12-08T11:32:42.467276Z",
954-
"start_time": "2023-12-08T11:32:00.287532Z"
953+
"end_time": "2023-12-08T13:48:36.775816Z",
954+
"start_time": "2023-12-08T13:47:57.172230Z"
955955
},
956956
"execution": {
957957
"iopub.execute_input": "2023-08-16T22:08:50.663435Z",
@@ -978,8 +978,8 @@
978978
"id": "040ddb4d",
979979
"metadata": {
980980
"ExecuteTime": {
981-
"end_time": "2023-12-08T11:32:43.409539Z",
982-
"start_time": "2023-12-08T11:32:42.483012Z"
981+
"end_time": "2023-12-08T13:48:38.079230Z",
982+
"start_time": "2023-12-08T13:48:36.780800Z"
983983
},
984984
"execution": {
985985
"iopub.execute_input": "2023-08-16T22:09:09.424667Z",
@@ -1027,8 +1027,8 @@
10271027
"id": "ac9b0f97",
10281028
"metadata": {
10291029
"ExecuteTime": {
1030-
"end_time": "2023-12-08T11:32:53.486476Z",
1031-
"start_time": "2023-12-08T11:32:53.384071Z"
1030+
"end_time": "2023-12-08T13:48:38.134643Z",
1031+
"start_time": "2023-12-08T13:48:38.081756Z"
10321032
},
10331033
"execution": {
10341034
"iopub.execute_input": "2023-08-16T22:09:10.089999Z",
@@ -1076,8 +1076,8 @@
10761076
"id": "2e24add8",
10771077
"metadata": {
10781078
"ExecuteTime": {
1079-
"end_time": "2023-12-08T11:33:07.103394Z",
1080-
"start_time": "2023-12-08T11:33:03.279260Z"
1079+
"end_time": "2023-12-08T13:48:41.293897Z",
1080+
"start_time": "2023-12-08T13:48:38.137813Z"
10811081
},
10821082
"execution": {
10831083
"iopub.execute_input": "2023-08-16T22:09:10.231405Z",
@@ -1130,8 +1130,8 @@
11301130
"id": "dc27f47d",
11311131
"metadata": {
11321132
"ExecuteTime": {
1133-
"end_time": "2023-12-08T11:34:24.808543Z",
1134-
"start_time": "2023-12-08T11:33:16.631775Z"
1133+
"end_time": "2023-12-08T13:49:33.582076Z",
1134+
"start_time": "2023-12-08T13:48:41.296949Z"
11351135
},
11361136
"execution": {
11371137
"iopub.execute_input": "2023-08-16T22:09:10.231405Z",
@@ -1175,18 +1175,40 @@
11751175
},
11761176
{
11771177
"cell_type": "code",
1178-
"execution_count": null,
1178+
"execution_count": 21,
11791179
"id": "39b07025",
11801180
"metadata": {
11811181
"ExecuteTime": {
1182-
"end_time": "2023-12-08T10:41:37.495107Z",
1183-
"start_time": "2023-12-08T10:41:37.426329Z"
1182+
"end_time": "2023-12-08T13:49:33.673070Z",
1183+
"start_time": "2023-12-08T13:49:33.586863Z"
11841184
},
11851185
"slideshow": {
11861186
"slide_type": "skip"
11871187
}
11881188
},
1189-
"outputs": [],
1189+
"outputs": [
1190+
{
1191+
"name": "stdout",
1192+
"output_type": "stream",
1193+
"text": [
1194+
" score | size | document chunk\n"
1195+
]
1196+
},
1197+
{
1198+
"data": {
1199+
"text/plain": [
1200+
"[\"0.570 | 245 | Białowieża [bʲawɔˈvʲɛʐa] in Poland's Podlasie Province, in t ...\",\n",
1201+
" '0.624 | 450 | == Location ==\\nBiałowieża is in eastern Poland, in Podlasie ...',\n",
1202+
" '0.716 | 95 | village of Białowieża lies within the forest. Białowieża mea ...',\n",
1203+
" '0.748 | 498 | The Białowieża Forest takes its name from the Polish village ...',\n",
1204+
" '0.768 | 500 | Białowieża National Park (Polish: Białowieski Park Narodowy) ...']"
1205+
]
1206+
},
1207+
"execution_count": 21,
1208+
"metadata": {},
1209+
"output_type": "execute_result"
1210+
}
1211+
],
11901212
"source": [
11911213
"# similarity_search_with_score - lower score represents more similarity\n",
11921214
"\n",
@@ -1221,8 +1243,8 @@
12211243
"id": "4df87ac3",
12221244
"metadata": {
12231245
"ExecuteTime": {
1224-
"end_time": "2023-12-08T11:36:21.864230Z",
1225-
"start_time": "2023-12-08T11:36:21.857767Z"
1246+
"end_time": "2023-12-08T13:49:33.683159Z",
1247+
"start_time": "2023-12-08T13:49:33.677965Z"
12261248
},
12271249
"execution": {
12281250
"iopub.execute_input": "2023-08-16T22:09:33.262533Z",
@@ -1284,8 +1306,8 @@
12841306
"id": "edbc4533",
12851307
"metadata": {
12861308
"ExecuteTime": {
1287-
"end_time": "2023-12-08T11:37:08.924314Z",
1288-
"start_time": "2023-12-08T11:36:34.508189Z"
1309+
"end_time": "2023-12-08T13:50:02.508705Z",
1310+
"start_time": "2023-12-08T13:49:33.687323Z"
12891311
},
12901312
"execution": {
12911313
"iopub.execute_input": "2023-08-16T22:09:34.038393Z",
@@ -1322,8 +1344,8 @@
13221344
"id": "2e644748",
13231345
"metadata": {
13241346
"ExecuteTime": {
1325-
"end_time": "2023-12-08T11:37:34.951429Z",
1326-
"start_time": "2023-12-08T11:37:08.928693Z"
1347+
"end_time": "2023-12-08T13:50:24.046914Z",
1348+
"start_time": "2023-12-08T13:50:02.512336Z"
13271349
},
13281350
"execution": {
13291351
"iopub.execute_input": "2023-08-16T22:10:09.261416Z",
@@ -1373,8 +1395,8 @@
13731395
"id": "f7547af8",
13741396
"metadata": {
13751397
"ExecuteTime": {
1376-
"end_time": "2023-12-08T11:38:52.868931Z",
1377-
"start_time": "2023-12-08T11:38:28.198926Z"
1398+
"end_time": "2023-12-08T13:50:45.504073Z",
1399+
"start_time": "2023-12-08T13:50:24.050570Z"
13781400
},
13791401
"execution": {
13801402
"iopub.execute_input": "2023-08-16T22:10:46.006264Z",
@@ -1421,12 +1443,12 @@
14211443
},
14221444
{
14231445
"cell_type": "code",
1424-
"execution_count": null,
1446+
"execution_count": 26,
14251447
"id": "1690637d",
14261448
"metadata": {
14271449
"ExecuteTime": {
1428-
"end_time": "2023-12-08T10:43:15.552512Z",
1429-
"start_time": "2023-12-08T10:42:53.571356Z"
1450+
"end_time": "2023-12-08T13:51:07.169710Z",
1451+
"start_time": "2023-12-08T13:50:45.509588Z"
14301452
},
14311453
"slideshow": {
14321454
"slide_type": "skip"
@@ -1456,18 +1478,32 @@
14561478
},
14571479
{
14581480
"cell_type": "code",
1459-
"execution_count": null,
1481+
"execution_count": 27,
14601482
"id": "1224447a",
14611483
"metadata": {
14621484
"ExecuteTime": {
1463-
"end_time": "2023-12-08T10:43:15.564796Z",
1464-
"start_time": "2023-12-08T10:43:15.555319Z"
1485+
"end_time": "2023-12-08T13:51:07.186645Z",
1486+
"start_time": "2023-12-08T13:51:07.173096Z"
14651487
},
14661488
"slideshow": {
14671489
"slide_type": "skip"
14681490
}
14691491
},
1470-
"outputs": [],
1492+
"outputs": [
1493+
{
1494+
"data": {
1495+
"text/plain": [
1496+
"['Bialowieski Park Narodowy - Walking | https://bpn.com.pl/index.php?option=com_content&task=view&id=651&Itemi',\n",
1497+
" 'Białowieża National Park | https://en.wikipedia.org/wiki/Bia%C5%82owie%C5%BCa_National_Park',\n",
1498+
" 'Białowieża Forest | https://en.wikipedia.org/wiki/Bia%C5%82owie%C5%BCa_Forest',\n",
1499+
" 'Białowieża Forest | https://en.wikipedia.org/wiki/Bia%C5%82owie%C5%BCa_Forest']"
1500+
]
1501+
},
1502+
"execution_count": 27,
1503+
"metadata": {},
1504+
"output_type": "execute_result"
1505+
}
1506+
],
14711507
"source": [
14721508
"[\n",
14731509
" f\"{chunk.metadata['title'][:35]:<35} | {chunk.metadata['source'][:70]}\"\n",
@@ -1489,18 +1525,32 @@
14891525
},
14901526
{
14911527
"cell_type": "code",
1492-
"execution_count": null,
1528+
"execution_count": 28,
14931529
"id": "f13f37b8",
14941530
"metadata": {
14951531
"ExecuteTime": {
1496-
"end_time": "2023-12-08T10:43:15.578914Z",
1497-
"start_time": "2023-12-08T10:43:15.571093Z"
1532+
"end_time": "2023-12-08T13:51:07.199300Z",
1533+
"start_time": "2023-12-08T13:51:07.193409Z"
14981534
},
14991535
"slideshow": {
15001536
"slide_type": "skip"
15011537
}
15021538
},
1503-
"outputs": [],
1539+
"outputs": [
1540+
{
1541+
"data": {
1542+
"text/plain": [
1543+
"['tourists about undergrowth plants, animal trails and processes occuring in the natural forest untainted by manmade activity. Remaining trails are made available to specialised groups, on every such occasion permission from the Park’s Directorate is required.',\n",
1544+
" 'Often called the \"last untouched wilderness of Europe\", the Białowieża National Park is the only one of its kind among the 23 national parks of Poland. Its inner zone belongs to the realm of old-growth forest which has been living without much human intervention for almost 800 years. Only scientists can navigate the strictly protected area freely. Each group of tourists is limited to no more than 20 people, and the presence of an official guide is mandatory. A classic road tour leads through',\n",
1545+
" '== Nature protection ==\\n\\n\\n=== Białowieża National Park, Poland ===',\n",
1546+
" 'On the Polish side, part of the Białowieża Forest is protected as the Białowieża National Park (Polish: Białowieski Park Narodowy), with an area of about 105 km2 (41 sq mi). There is also the Białowieża Glade (Polish: Polana Białowieska), with a complex of buildings once owned by the tsars of Russia during the Partitions of Poland. At present, a hotel and restaurant with a car park is located there. Guided tours into the strictly protected areas of the park can be arranged on foot, bike or by']"
1547+
]
1548+
},
1549+
"execution_count": 28,
1550+
"metadata": {},
1551+
"output_type": "execute_result"
1552+
}
1553+
],
15041554
"source": [
15051555
"[\n",
15061556
" f\"{chunk.page_content}\"\n",

0 commit comments

Comments
 (0)