Skip to content

Commit 1ee9682

Browse files
authored
issue found #421 (#428)
1 parent 0ce41a3 commit 1ee9682

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

supporting-blog-content/unifying-elastic-vector-database-and-llms-for-intelligent-query/Unifying_Elastic_Vector_Database_and_LLMs_for_Intelligent_Query.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,9 @@
539539
" print(f\"Error deleting template '{template_id}': {e}\")\n",
540540
"\n",
541541
"\n",
542-
"def create_search_template(template_id, template_content):\n",
542+
"def create_search_template(\n",
543+
" template_id=TEMPLATE_ID, template_content=search_template_content\n",
544+
"):\n",
543545
" \"\"\"Creates a new search template\"\"\"\n",
544546
" try:\n",
545547
" es.put_script(id=template_id, body=template_content)\n",
@@ -1007,7 +1009,9 @@
10071009
"print(\"Creating hotels index...\")\n",
10081010
"create_index()\n",
10091011
"print(\"Ingesting hotels data...\")\n",
1010-
"ingest_data()"
1012+
"ingest_data()\n",
1013+
"print(\"Creating Search Template...\")\n",
1014+
"create_search_template()"
10111015
]
10121016
},
10131017
{

0 commit comments

Comments
 (0)