Skip to content

Commit

Permalink
Update SageMaker Endpoint Embeddings docs to be up to date with curre…
Browse files Browse the repository at this point in the history
…nt requirements (langchain-ai#8103)

- **Description:** Simple change of the Class that ContentHandler
inherits from. To create an object of type SagemakerEndpointEmbeddings,
the property content_handler must be of type EmbeddingsContentHandler
not ContentHandlerBase anymore,
  - **Twitter handle:** @Juanjo_Torres11

Co-authored-by: Bagatur <[email protected]>
  • Loading branch information
JuanJTorres11 and baskaryan authored Jul 24, 2023
1 parent 7cbe28b commit 1cc7d4c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"source": [
"from typing import Dict, List\n",
"from langchain.embeddings import SagemakerEndpointEmbeddings\n",
"from langchain.llms.sagemaker_endpoint import ContentHandlerBase\n",
"from langchain.embeddings.sagemaker_endpoint import EmbeddingsContentHandler\n",
"import json\n",
"\n",
"\n",
"class ContentHandler(ContentHandlerBase):\n",
"class ContentHandler(EmbeddingsContentHandler):\n",
" content_type = \"application/json\"\n",
" accepts = \"application/json\"\n",
"\n",
Expand Down

0 comments on commit 1cc7d4c

Please sign in to comment.