Crates.io | bedrock_assistant |
lib.rs | bedrock_assistant |
version | 0.4.1 |
source | src |
created_at | 2024-08-10 10:19:02.036023 |
updated_at | 2024-08-16 23:11:08.189636 |
description | An AI assistant powered by AWS Bedrock. |
homepage | |
repository | https://github.com/0Itsuki0/itsuki_assistant_with_bedrock |
max_upload_size | |
id | 1332231 |
size | 133,043 |
A CLI assistant (chat tool) written in Rust powered by AWS Bedrock Converse API with the following capabilities.
Capability | Description | Status |
---|---|---|
Chat | Chat with Claude | Available |
Image Generation | Generate image from prompt | Available |
Code Interpreter | Running python code to accomplish data analysis and math tasks | Available |
Image variation | Generate image variation based on existing images | Coming Soon |
Web Search | Retrieve data from Web | Coming Soon |
Artifact | Content and App Visualization | Coming Soon |
This tool can be installed using cargo install bedrock_assistant
.
For further details, please refer to cargo crate.io.
us-east-1
anthropic.claude-3-haiku-20240307-v1:0
amazon.titan-image-generator-v1
saml2aws
.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
bedrock_assistant
in the terminal.
--non-stream
argument.enter
or return
.ESC
or Ctrl+C
.Example queries for image generation:
Available configuration for the image to generate:
For more details on the parameters, check out Bedrock official document.
This app uses python3.11
by default for data analysis, data exploration, math, and etc.
Either add python3.11
to your path, or you can configure the executable python path using the environment variable BEDROCK_ASSISTANT_PYTHON
.
For example, if you want to use python3.12
at a specific path.
export BEDROCK_ASSISTANT_PYTHON="/opt/homebrew/bin/python3.12"
Do NOT use alias
as it will not be recognized by rust.
Example queries for code interpreting:
The code and any aritifacts/files generated by the code will be save to the current working directory by default, but you can also specify where you want those to be saved like following.
Other libraries may also be used.
Example queries for questioning regarding files:
Summarize the content in ./test/test.pdf.
Here are some of the tools/capabilities I am currently working on.
If you have any other suggestiont, leave me a cooment, I would be happy to know!