langchain/docs
Philipp Schmid 064be93edf
[Embeddings] Add SageMaker Endpoint Embedding class (#1859)
# What does this PR do? 

This PR adds similar to `llms` a SageMaker-powered `embeddings` class.
This is helpful if you want to leverage Hugging Face models on SageMaker
for creating your indexes.

I added a example into the
[docs/modules/indexes/examples/embeddings.ipynb](https://github.com/hwchase17/langchain/compare/master...philschmid:add-sm-embeddings?expand=1#diff-e82629e2894974ec87856aedd769d4bdfe400314b03734f32bee5990bc7e8062)
document. The example currently includes some `_### TEMPORARY: Showing
how to deploy a SageMaker Endpoint from a Hugging Face model ###_ ` code
showing how you can deploy a sentence-transformers to SageMaker and then
run the methods of the embeddings class.

@hwchase17 please let me know if/when i should remove the `_###
TEMPORARY: Showing how to deploy a SageMaker Endpoint from a Hugging
Face model ###_` in the description i linked to a detail blog on how to
deploy a Sentence Transformers so i think we don't need to include those
steps here.

I also reused the `ContentHandlerBase` from
`langchain.llms.sagemaker_endpoint` and changed the output type to `any`
since it is depending on the implementation.
2023-03-21 21:51:48 -07:00
..
_static docs: increase width (#1049) 2023-02-15 23:07:01 -08:00
ecosystem remove key (#1863) 2023-03-21 12:43:41 -07:00
getting_started [Docs] Add missing word from prompt docs (#1406) 2023-03-02 16:02:54 -08:00
modules [Embeddings] Add SageMaker Endpoint Embedding class (#1859) 2023-03-21 21:51:48 -07:00
reference Harrison/deeplake (#1316) 2023-02-26 22:35:04 -08:00
tracing Harrison/callbacks (#1587) 2023-03-10 12:53:09 -08:00
use_cases Harrison/llm math (#1808) 2023-03-20 07:53:26 -07:00
conf.py Corrects copyright year (#1762) 2023-03-18 19:55:05 -07:00
deployments.md add docs for steamship deployment (#949) 2023-02-08 16:01:19 -08:00
ecosystem.rst Docs refactor (#480) 2023-01-02 08:24:09 -08:00
gallery.rst Added Mynd URL to gallery (#1684) 2023-03-15 07:59:59 -07:00
glossary.md Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
index.rst querying tabular data (#1758) 2023-03-18 11:12:18 -07:00
make.bat initial commit 2022-10-24 14:51:15 -07:00
Makefile Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
reference.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
requirements.txt docs req (#1647) 2023-03-13 16:03:32 -07:00
tracing.md Harrison/tracing docs (#806) 2023-01-29 20:49:35 -08:00