Giter Site home page Giter Site logo

langchain-aws's Introduction

๐Ÿฆœ๏ธ๐Ÿ”— LangChain ๐Ÿค Amazon Web Services (AWS)

This repository provides LangChain components for various AWS services. It aims to replace and expand upon the existing LangChain AWS components found in the langchain-community package in the LangChain repository.

Features

  • LLMs: Includes LLM classes for AWS services like Bedrock and SageMaker Endpoints, allowing you to leverage their language models within LangChain.
  • Retrievers: Supports retrievers for services like Amazon Kendra and KnowledgeBases for Amazon Bedrock, enabling efficient retrieval of relevant information in your RAG applications.
  • Graphs: Provides components for working with AWS Neptune graphs within LangChain.
  • More to come: This repository will continue to expand and offer additional components for various AWS services as development progresses.

Note: This repository will replace all AWS integrations currently present in the langchain-community package. Users are encouraged to migrate to this repository as soon as possible.

Installation

You can install the langchain-aws package from PyPI.

pip install langchain-aws

Usage

Here's a simple example of how to use the langchain-aws package.

from langchain_aws import BedrockLLM

# Initialize the Bedrock LLM
llm = BedrockLLM(
    model_id="anthropic.claude-v2:1"
)

# Invoke the llm
response = llm.invoke("Hello! How are you today?")
print(response)

For more detailed usage examples and documentation, please refer to the LangChain docs.

Contributing

We welcome contributions to this project! Please follow the contribution guide for instructions to setup the project for development and guidance on how to contribute effectively.

License

This project is licensed under the MIT License.

langchain-aws's People

Contributors

3coins avatar naptlme avatar efriis avatar fedor-intercom avatar brnaba-aws avatar ihmaws avatar bigbernnn avatar rozerarenu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.