Skip to content

Commit 1b0a423

Browse files
committed
Remove workaround for rrf pip install
1 parent 2f9618b commit 1b0a423

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

notebooks/search/02-hybrid-search.ipynb

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@
7979
},
8080
"outputs": [],
8181
"source": [
82-
"!git clone https://github.com/elastic/elasticsearch-py.git\n",
83-
"%cd elasticsearch-py\n",
84-
"!git checkout v8.8.2\n",
85-
"!{sys.executable} -m pip install .\n",
82+
"!pip install elasticsearch\n",
8683
"!pip install sentence_transformers\n",
8784
"!pip install torch\n"
8885
]
@@ -94,7 +91,6 @@
9491
"id": "gEzq2Z1wBs3M"
9592
},
9693
"source": [
97-
"[TODO: Update]\n",
9894
"Next we need to import the `elasticsearch` module and the `getpass` module.\n",
9995
"`getpass` is part of the Python standard library and is used to securely prompt for credentials."
10096
]
@@ -465,7 +461,7 @@
465461
"\n",
466462
"response = client.search(index=\"rrf_book_index\", body=body)\n",
467463
"\n",
468-
"print(response)"
464+
"pretty_response(response)"
469465
]
470466
},
471467
{
@@ -615,7 +611,8 @@
615611
" }\n",
616612
"}\n",
617613
"\n",
618-
"response = client.search(index=\"example-index\", body=body)"
614+
"response = client.search(index=\"example-index\", body=body)\n",
615+
"pretty_response(response)"
619616
]
620617
},
621618
{

0 commit comments

Comments
 (0)