Skip to main content

AWS

All functionality related to the Amazon AWS platform.

Chat Models

Bedrock

See a usage example.

import { BedrockChat } from "@langchain/community/chat_models/bedrock";

LLMs

Bedrock

See a usage example.

import { Bedrock } from "@langchain/community/llms/bedrock";

SageMaker Endpoint

Amazon SageMaker is a system that can build, train, and deploy machine learning (ML) models with fully managed infrastructure, tools, and workflows.

We use SageMaker to host our model and expose it as the SageMaker Endpoint.

See a usage example.

import {
SagemakerEndpoint,
SageMakerLLMContentHandler,
} from "@langchain/community/llms/sagemaker_endpoint";

Text Embedding Models

Bedrock

See a usage example.

import { BedrockEmbeddings } from "@langchain/community/embeddings/bedrock";

Document loaders

AWS S3 Directory and File

Amazon Simple Storage Service (Amazon S3) is an object storage service. AWS S3 Directory >AWS S3 Buckets

See a usage example for S3FileLoader.

npm install @aws-sdk/client-s3
import { S3Loader } from "@langchain/community/document_loaders/web/s3";

Memory

AWS DynamoDB

AWS DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability.

We have to configure the AWS CLI.

npm install @aws-sdk/client-dynamodb

See a usage example.

import { DynamoDBChatMessageHistory } from "@langchain/community/stores/message/dynamodb";

Was this page helpful?


You can leave detailed feedback on GitHub.