AWS
All functionality related to Amazon AWS platform
LLMs
Bedrock
See a usage example.
import { Bedrock } from "langchain/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/llms/sagemaker_endpoint";
Text Embedding Models
Bedrock
See a usage example.
import { BedrockEmbeddings } from "langchain/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
- Yarn
- pnpm
npm install @aws-sdk/client-s3
yarn add @aws-sdk/client-s3
pnpm add @aws-sdk/client-s3
import { S3Loader } from "langchain/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
- Yarn
- pnpm
npm install @aws-sdk/client-dynamodb
yarn add @aws-sdk/client-dynamodb
pnpm add @aws-sdk/client-dynamodb
See a usage example.
import { DynamoDBChatMessageHistory } from "@langchain/community/stores/message/dynamodb";