File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 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 ]
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 ]
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 {
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 {
You can’t perform that action at this time.
0 commit comments