Skip to main content

An integration package connecting AWS and LangChain

Project description

langchain-aws

This package contains the LangChain integration with Bedrock

Installation

pip install -U langchain-aws

And you should configure credentials by setting the following environment variables:

  • TODO: fill this out

Chat Models

ChatBedrock class exposes chat models from Bedrock.

from langchain_aws import ChatBedrock

llm = ChatBedrock()
llm.invoke("Sing a ballad of LangChain.")

Embeddings

BedrockEmbeddings class exposes embeddings from Bedrock.

from langchain_aws import BedrockEmbeddings

embeddings = BedrockEmbeddings()
embeddings.embed_query("What is the meaning of life?")

LLMs

BedrockLLM class exposes LLMs from Bedrock.

from langchain_aws import BedrockLLM

llm = BedrockLLM()
llm.invoke("The meaning of life is")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_aws-0.1.0rc0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

langchain_aws-0.1.0rc0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file langchain_aws-0.1.0rc0.tar.gz.

File metadata

  • Download URL: langchain_aws-0.1.0rc0.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for langchain_aws-0.1.0rc0.tar.gz
Algorithm Hash digest
SHA256 2eb7e7fd64eefc23d4ba347c7893a041e640509e7af6cc425223652258f1a5a2
MD5 4d98a9e5481ab4efe80be1aa64e9c78f
BLAKE2b-256 b4558caa716a48736a232075925947652b1f704c7b9aa11f0c0f7014f09435af

See more details on using hashes here.

File details

Details for the file langchain_aws-0.1.0rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_aws-0.1.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 6633b9ddcb31bbe920d47f23f7099eb99a7b53a1df7283dc06d5d994792fdd6c
MD5 51cd311ddcf302f38d1e5b64d7d76af9
BLAKE2b-256 39917733955dcca545083ed8c85ac534f81ca12e4c6a98765282f0e1b23cf407

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page