A type of Large Language Model (LLM) that interacts with the Bedrock
service. It extends the base LLM class and implements the
BaseBedrockInput interface. The class is designed to authenticate and
interact with the Bedrock service, which is a part of Amazon Web
Services (AWS). It uses AWS credentials for authentication and can be
configured with various parameters such as the model to use, the AWS
region, and the maximum number of tokens to generate.
Example
constmodel = newBedrockChat({ model:"anthropic.claude-v2", region:"us-east-1", }); constres = awaitmodel.invoke([{ content:"Tell me a joke" }]); console.log(res);
A type of Large Language Model (LLM) that interacts with the Bedrock service. It extends the base
LLM
class and implements theBaseBedrockInput
interface. The class is designed to authenticate and interact with the Bedrock service, which is a part of Amazon Web Services (AWS). It uses AWS credentials for authentication and can be configured with various parameters such as the model to use, the AWS region, and the maximum number of tokens to generate.Example