Bedrock Embeddings
%pip install boto3
from langchain.embeddings import BedrockEmbeddings
embeddings = BedrockEmbeddings(
credentials_profile_name="bedrock-admin", endpoint_url="custom_endpoint_url"
)
API Reference:
- BedrockEmbeddings from
langchain.embeddings
embeddings.embed_query("This is a content of the document")
embeddings.embed_documents(["This is a content of the document"])