mirror of
https://github.com/aljazceru/ElasticDocs_GPT.git
synced 2025-12-17 05:44: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": [
|
||||
"# Set the model name from Hugging Face and task type\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",
|
||||
"#set the modelID as it is named in Elasticsearch\n",
|
||||
"es_model_id = tm.elasticsearch_model_id()\n",
|
||||
|
||||
Reference in New Issue
Block a user