mirror of
https://github.com/aljazceru/ElasticDocs_GPT.git
synced 2025-12-17 13:54:20 +01:00
updated TransformerModel init
tm = TransformerModel(model_id=hf_model_id, task_type="text_embedding")
This commit is contained in:
@@ -166,7 +166,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# Set the model name from Hugging Face and task type\n",
|
"# Set the model name from Hugging Face and task type\n",
|
||||||
"hf_model_id='sentence-transformers/all-distilroberta-v1'\n",
|
"hf_model_id='sentence-transformers/all-distilroberta-v1'\n",
|
||||||
"tm = TransformerModel(hf_model_id, \"text_embedding\")\n",
|
"tm = TransformerModel(model_id=hf_model_id, task_type="text_embedding")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"#set the modelID as it is named in Elasticsearch\n",
|
"#set the modelID as it is named in Elasticsearch\n",
|
||||||
"es_model_id = tm.elasticsearch_model_id()\n",
|
"es_model_id = tm.elasticsearch_model_id()\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user