Skip to content

Commit eadbb90

Browse files
docs: Updated text embedding model for IBM provider (#31554)
Thank you for contributing to LangChain! Description: Updated text embedding (`WatsonxEmbeddings`) model for IBM provider
1 parent b0f100a commit eadbb90

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/docs/integrations/text_embedding/ibm_watsonx.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@
135135
},
136136
{
137137
"cell_type": "code",
138-
"execution_count": 3,
138+
"execution_count": null,
139139
"metadata": {},
140140
"outputs": [],
141141
"source": [
142142
"from langchain_ibm import WatsonxEmbeddings\n",
143143
"\n",
144144
"watsonx_embedding = WatsonxEmbeddings(\n",
145-
" model_id=\"ibm/slate-125m-english-rtrvr\",\n",
145+
" model_id=\"ibm/granite-embedding-107m-multilingual\",\n",
146146
" url=\"https://us-south.ml.cloud.ibm.com\",\n",
147147
" project_id=\"PASTE YOUR PROJECT_ID HERE\",\n",
148148
" params=embed_params,\n",
@@ -163,7 +163,7 @@
163163
"outputs": [],
164164
"source": [
165165
"watsonx_embedding = WatsonxEmbeddings(\n",
166-
" model_id=\"ibm/slate-125m-english-rtrvr\",\n",
166+
" model_id=\"ibm/granite-embedding-107m-multilingual\",\n",
167167
" url=\"PASTE YOUR URL HERE\",\n",
168168
" username=\"PASTE YOUR USERNAME HERE\",\n",
169169
" password=\"PASTE YOUR PASSWORD HERE\",\n",
@@ -192,7 +192,7 @@
192192
"api_client = APIClient(...)\n",
193193
"\n",
194194
"watsonx_embedding = WatsonxEmbeddings(\n",
195-
" model_id=\"ibm/slate-125m-english-rtrvr\",\n",
195+
" model_id=\"ibm/granite-embedding-107m-multilingual\",\n",
196196
" watsonx_client=api_client,\n",
197197
")"
198198
]
@@ -341,7 +341,7 @@
341341
"name": "python",
342342
"nbconvert_exporter": "python",
343343
"pygments_lexer": "ipython3",
344-
"version": "3.10.14"
344+
"version": "3.11.12"
345345
}
346346
},
347347
"nbformat": 4,

0 commit comments

Comments
 (0)