#chat #bedrock #aws #aws-cli #cli

yanked itsuki_bedrock_assistant

An AI assistant powered by AWS Bedrock

1 unstable release

0.1.0 Aug 6, 2024

#21 in #bedrock

Custom license

38KB
756 lines

Itsuki Bedrock Assistant

A CLI assistant (chat tool) powered by AWS Bedrock Converse API with the capabilities to

  • chat
  • generate images
  • answer questions on files

Install

This tool can be installed using cargo install itsuki_bedrock_assistant.

Requirements

  • AWS Account with Bedrock enabled
    • Default region: us-east-1
  • Give model access to the models you are planning to use
    • Default Chat Model ID: anthropic.claude-3-haiku-20240307-v1:0
    • Default Image Generation Model ID: amazon.titan-image-generator-v1
  • Set up AWS CLI
    • If you use SAML for your AWS account, consider setting up using saml2aws.

Optional Set up

  • If a different chat model, image generation model, or region other than the default one need to be used, add the following environment variable to your system.
  • For Chat Model: BEDROCK_CHAT_MODEL_ID
  • For Image Generation Model: BEDROCK_IAMGE_MODEL_ID
  • For Region: BEDROCK_REGION

Usage

Example queries for image generation:

  • Generate a cute hello world image in the test folder.
  • Generate 2 mathematics image of size 1024 * 1024 in the current folder.

Example queries for questioning regarding files:

  • Summarize the content in ./test/test.pdf.

Demo

App Demo

Coming Soon

Here are some of the tools/capabilities I am currently working on.

  • Image variation
  • artifacts for content visualization
  • code interpreter

If you have any other suggestiont, leave me a cooment, I would be happy to know!

Dependencies

~18–29MB
~467K SLoC