Skip to content

Commit d67f17c

Browse files
committed
fix lint
1 parent fcd1391 commit d67f17c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

notebooks/enterprise-search/app-search-engine-exporter.ipynb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -606,10 +606,10 @@
606606
" \"service_settings\": {\n",
607607
" \"model_id\": \".elser_model_2_linux-x86_64\",\n",
608608
" \"num_allocations\": 1,\n",
609-
" \"num_threads\": 1\n",
609+
" \"num_threads\": 1,\n",
610610
" }\n",
611611
" },\n",
612-
" task_type=\"sparse_embedding\"\n",
612+
" task_type=\"sparse_embedding\",\n",
613613
")\n"
614614
]
615615
},
@@ -645,7 +645,7 @@
645645
"# and for our text fields, add a \"copy_to\" directive to copy the text to the semantic_text field\n",
646646
"for field_name in SEMANTIC_TEXT_FIELDS:\n",
647647
" semantic_field_name = field_name + \"_semantic\"\n",
648-
" mapping[field_name].update({ \"copy_to\": semantic_field_name })\n",
648+
" mapping[field_name].update({\"copy_to\": semantic_field_name})\n",
649649
"\n",
650650
"elasticsearch.indices.put_mapping(index=DEST_INDEX, properties=mapping)"
651651
]
@@ -950,9 +950,7 @@
950950
"payload = app_search_query_payload.copy()\n",
951951
"\n",
952952
"for semantic_text_query in semantic_text_queries:\n",
953-
" payload[\"query\"][\"rule\"][\"organic\"][\"bool\"][\"should\"].append(\n",
954-
" semantic_text_query\n",
955-
" )\n",
953+
" payload[\"query\"][\"rule\"][\"organic\"][\"bool\"][\"should\"].append(semantic_text_query)\n",
956954
"\n",
957955
"print(f\"Elasticsearch payload:\\n{json.dumps(payload, indent=2)}\\n\")"
958956
]

0 commit comments

Comments
 (0)