itsuki_bedrock_assistant

Crates.ioitsuki_bedrock_assistant
lib.rsitsuki_bedrock_assistant
version0.1.0
sourcesrc
created_at2024-08-06 03:35:59.102933
updated_at2024-08-06 03:35:59.102933
descriptionAn AI assistant powered by AWS Bedrock.
homepage
repositoryhttps://github.com/0Itsuki0/itsuki_assistant_with_bedrock
max_upload_size
id1326859
size110,483
Itsuki (0Itsuki0)

documentation

README

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!

Commit count: 0

cargo fmt