Skip to content

Commit 4380ba5

Browse files
committed
fixed index name
1 parent 0090404 commit 4380ba5

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

supporting-blog-content/re-ranking-elasticsearch-hosted/re-ranking-elasticsearch-hosted.ipynb

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"nbformat_minor": 0,
44
"metadata": {
55
"colab": {
6-
"provenance": [],
7-
"toc_visible": true
6+
"provenance": []
87
},
98
"kernelspec": {
109
"name": "python3",
@@ -44,7 +43,7 @@
4443
},
4544
{
4645
"cell_type": "code",
47-
"execution_count": 1,
46+
"execution_count": null,
4847
"metadata": {
4948
"id": "2Xz9uWQFbNkH"
5049
},
@@ -79,7 +78,7 @@
7978
"metadata": {
8079
"id": "CsL466H0bjNX"
8180
},
82-
"execution_count": 2,
81+
"execution_count": null,
8382
"outputs": []
8483
},
8584
{
@@ -226,7 +225,7 @@
226225
},
227226
"outputId": "d58cc940-281e-4d56-d6e6-040e4881e78a"
228227
},
229-
"execution_count": 6,
228+
"execution_count": null,
230229
"outputs": [
231230
{
232231
"output_type": "execute_result",
@@ -277,7 +276,7 @@
277276
},
278277
"outputId": "d9e68225-5796-411e-964a-6db3be5541aa"
279278
},
280-
"execution_count": 7,
279+
"execution_count": null,
281280
"outputs": [
282281
{
283282
"output_type": "execute_result",
@@ -336,7 +335,7 @@
336335
"outputId": "4bc9ba0b-9be3-410a-d1d6-f1da04bbfec7",
337336
"id": "DPADF_7ytTmR"
338337
},
339-
"execution_count": 9,
338+
"execution_count": null,
340339
"outputs": [
341340
{
342341
"output_type": "stream",
@@ -361,7 +360,7 @@
361360
"cell_type": "markdown",
362361
"source": [
363362
"## Download Dataset\n",
364-
"**Note** You may get a warning *The secret `HF_TOKEN` does not exist in your Colab secrets*.\n",
363+
"**Note** You may get a warking *The secret `HF_TOKEN` does not exist in your Colab secrets*.\n",
365364
"\n",
366365
"You can safely ignore this."
367366
],
@@ -381,7 +380,7 @@
381380
"id": "IVnpj5bBoEBL",
382381
"outputId": "bc6371d9-d66f-482c-95f8-8cdb89e4f0ef"
383382
},
384-
"execution_count": 10,
383+
"execution_count": null,
385384
"outputs": [
386385
{
387386
"output_type": "stream",
@@ -434,7 +433,7 @@
434433
"metadata": {
435434
"id": "tDZ0qEbW-ozW"
436435
},
437-
"execution_count": 11,
436+
"execution_count": null,
438437
"outputs": []
439438
},
440439
{
@@ -463,7 +462,7 @@
463462
"\n",
464463
"# Query scored from score\n",
465464
"response_scored = es.search(\n",
466-
" index=\"arxiv-papers-lexical\",\n",
465+
" index=\"arxiv-papers\",\n",
467466
" body={\n",
468467
" \"size\": 10,\n",
469468
" \"retriever\": {\"standard\": {\"query\": {\"match\": {\"title\": query}}}},\n",
@@ -474,7 +473,7 @@
474473
"\n",
475474
"# Query with Semantic Reranker\n",
476475
"response_reranked = es.search(\n",
477-
" index=\"arxiv-papers-lexical\",\n",
476+
" index=\"arxiv-papers\",\n",
478477
" body={\n",
479478
" \"size\": 10,\n",
480479
" \"retriever\": {\n",
@@ -494,7 +493,7 @@
494493
"metadata": {
495494
"id": "HWXQBS35jQ3n"
496495
},
497-
"execution_count": 12,
496+
"execution_count": null,
498497
"outputs": []
499498
},
500499
{
@@ -531,12 +530,12 @@
531530
"metadata": {
532531
"colab": {
533532
"base_uri": "https://localhost:8080/",
534-
"height": 380
533+
"height": 415
535534
},
536535
"id": "yTTNYCYcBtll",
537536
"outputId": "0f0af538-13fd-4e62-e3d2-1dd185689904"
538537
},
539-
"execution_count": 17,
538+
"execution_count": null,
540539
"outputs": [
541540
{
542541
"output_type": "execute_result",
@@ -649,7 +648,7 @@
649648
},
650649
"outputId": "e83318ad-ca42-4aa7-98d4-37c4428eb70a"
651650
},
652-
"execution_count": 14,
651+
"execution_count": null,
653652
"outputs": [
654653
{
655654
"output_type": "stream",

0 commit comments

Comments
 (0)