amazon-bedrock-metadata

module
v0.0.0-...-8795bf4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT

README

Overview

Amazon Bedrock Metadata is an open-source project that processes Amazon Bedrock model invocation logs to generate insights focusing on usage and cost. This tool consumes model invocation logs stored in an Amazon S3 bucket, redacts input prompts and completion responses, generates metadata related to usage, cost and carbon footprint, and stores the enhanced metadata in another S3 bucket. Users can leverage Amazon Athena and Quicksight for visualizing and analyzing their Amazon Bedrock model usage, facilitating better decision-making regarding cost allocation, optimizing usage and estimating environmental impact.

Features

  • Log Consumption: Automatically fetches Amazon Bedrock model invocation logs in near real-time from a designated S3 bucket.
  • Redact Prompt and Response: Strips away user prompts and completion responses to minimize the exposure risk of personally identifiable information (PII).
  • Metadata Generation: Enriches logs with metadata including per model invocation cost calculation, carbon footprint estimation, and usage tags aggregation.
  • Data Storage: Stores the processed metadata in a specified S3 bucket, ready for analysis using Amazon Athena and Quicksight.
  • Integration: Seamlessly integrates with Greenscale AI platform for richer and customizable insights and recommendations on usage and cost optimization.

Prerequisites

Amazon S3 buckets with Amazon Bedrock model invocation logs needs to be configured.

Quick Deploy

Launch Stack

Quick deploy will create resources in the us-east-1 region and can support model invocation logs for all supported Amazon Bedrock regions.

Usage

Once the setup is complete, the Amazon Bedrock Metadata will automatically process new invocation logs as they are generated. You can then use Amazon Athena to query the metadata and Amazon Quicksight for in-depth analysis and visualization.

License

This project is open-source and available under the MIT License.

Support and Contact

For support, feature requests, or bug reporting, please open an issue in the GitHub repository. For direct inquiries, contact the project maintainers via email (hello@greenscale.ai).

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL