Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Tyumentsev committed Dec 16, 2023
1 parent cd864c5 commit 02a5f99
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions docs/docs/integrations/text_embedding/yandex.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# YandexGPT Embeddings\n",
"# YandexGPT\n",
"\n",
"This notebook goes over how to use Langchain with [YandexGPT](https://cloud.yandex.com/en/services/yandexgpt) embeddings models.\n",
"\n",
Expand Down Expand Up @@ -32,7 +32,9 @@
"- [API key](https://cloud.yandex.com/en/docs/iam/operations/api-key/create)\n",
" You can specify the key in a constructor parameter `api_key` or in an environment variable `YC_API_KEY`.\n",
"\n",
"Specify the model uri in the `model_uri` parameter, more details in [the documentation](https://cloud.yandex.com/en/docs/yandexgpt/concepts/models#yandexgpt-embeddings)"
"To specify the model you can use `model_uri` parameter, see [the documentation](https://cloud.yandex.com/en/docs/yandexgpt/concepts/models#yandexgpt-embeddings) for more details.\n",
"\n",
"By default, the latest version of `text-search-query` is used from the folder specified in the parameter `folder_id` or `YC_FOLDER_ID` environment variable."
]
},
{
Expand All @@ -41,7 +43,7 @@
"metadata": {},
"outputs": [],
"source": [
"from langchain.embeddings import YandexGPTEmbeddings"
"from langchain_community.embeddings import YandexGPTEmbeddings"
]
},
{
Expand All @@ -50,7 +52,7 @@
"metadata": {},
"outputs": [],
"source": [
"embeddings = YandexGPTEmbeddings(model_uri=\"emb://<folder-id>/text-search-query/latest\")"
"embeddings = YandexGPTEmbeddings()"
]
},
{
Expand Down Expand Up @@ -127,13 +129,6 @@
"source": [
"doc_result[0][:5]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -152,7 +147,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 02a5f99

Please sign in to comment.