mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-09 19:35:20 +03:00
Updated `integrations/embeddings`: fixed titles; added links, descriptions Updated `integrations/providers`.
2.4 KiB
2.4 KiB
In [ ]:
%pip install boto3In [5]:
from langchain.embeddings import BedrockEmbeddings
embeddings = BedrockEmbeddings(
credentials_profile_name="bedrock-admin", region_name="us-east-1"
)In [ ]:
embeddings.embed_query("This is a content of the document")In [ ]:
embeddings.embed_documents(["This is a content of the document", "This is another document"])In [ ]:
# async embed query
await embeddings.aembed_query("This is a content of the document")In [ ]:
# async embed documents
await embeddings.aembed_documents(["This is a content of the document", "This is another document"])