Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yav-ai/amazon-bedrock-node-js-samples
This repository contains Node.js examples to get started with the Amazon Bedrock service.
https://github.com/yav-ai/amazon-bedrock-node-js-samples
amazon-bedrock amazon-titan aws aws-bedrock aws-lambda-node aws-sdk aws-sdk-javascript claude claude-3 claude-api cohere jurassic-ultra language-model llama2 llm-inference mistral mixtral-8x7b-instruct nodejs nodejsexamples stable-diffusion
Last synced: about 1 month ago
JSON representation
This repository contains Node.js examples to get started with the Amazon Bedrock service.
- Host: GitHub
- URL: https://github.com/yav-ai/amazon-bedrock-node-js-samples
- Owner: YAV-AI
- License: mit
- Created: 2023-10-25T04:57:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-17T11:22:13.000Z (6 months ago)
- Last Synced: 2024-10-10T05:38:41.234Z (about 1 month ago)
- Topics: amazon-bedrock, amazon-titan, aws, aws-bedrock, aws-lambda-node, aws-sdk, aws-sdk-javascript, claude, claude-3, claude-api, cohere, jurassic-ultra, language-model, llama2, llm-inference, mistral, mixtral-8x7b-instruct, nodejs, nodejsexamples, stable-diffusion
- Language: JavaScript
- Homepage:
- Size: 4.92 MB
- Stars: 15
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Amazon Bedrock Node.js Samples
This repository contains Node.js examples to get started with the Amazon Bedrock service.
## Installation
```bash
yarn
```or
```bash
npm install
```## Configuration
Ensure you have properly configured your AWS credentials and region to use the AWS SDK for JavaScript. You can do this using various methods, such as:
### AWS CLI:
Use the `aws configure` command to set up your AWS credentials.
### Setting Credentials in Node.js:
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html
### IAM Roles:
If your application is running on an AWS resource with an associated IAM role, it will inherit permissions and credentials from that role.
## Run an example
```bash
node text/claude.mjs
``````bash
node image/stable-diffusion-simple.mjs
```## Further reading
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/