AWSBedrockRuntime

AWSBedrockRuntime (ODC)

Stable version 1.2.5 (Compatible with ODC)
Uploaded on 29 Jan by valantic LCS
AWSBedrockRuntime

AWSBedrockRuntime (ODC)

Documentation
1.2.5

Amazon Bedrock is a fully managed service that offers a choice of high-performing foundation models (FMs) from leading AI companies like AI21 Labs, Anthropic, Cohere, Meta, Mistral AI, Stability AI, and Amazon through a single API, along with a broad set of capabilities you need to build generative AI applications with security, privacy, and responsible AI. Using Amazon Bedrock, you can easily experiment with and evaluate top FMs for your use case, privately customize them with your data using techniques such as fine-tuning and Retrieval Augmented Generation (RAG), and build agents that execute tasks using your enterprise systems and data sources. Since Amazon Bedrock is serverless, you don't have to manage any infrastructure, and you can securely integrate and deploy generative AI capabilities into your applications using the AWS services you are already familiar with.

This library wraps the the InvokeModel operation of the official .NET SDK for Amazon Bedrock and exposes actions for each model type to ODC for easy usage.


Actions

The library exposes the following actions


AnthropicClaude3Text

Invoke an Anthropic Claude 3 Text Model


Input parameters

  • credentials - AWS IAM credentials. You can either use IAM user credentials (Access Key and Secret Access Key) or an IAM role (Access Key, Secret Access Key and Session Token)
  • region - The AWS region system name (e.g. us-east-1). Make sure to specify a region where you have access to the models you want to use.
  • modelId - The language model identifier you want to use. See model table.
  • request - Anthropic Claude 3 model specific request structure.

Result

  • response - Response structure
AmazonTitanText

Invoke an Amazon Titan Text Model

Input parameters

  • credentials - AWS IAM credentials. You can either use IAM user credentials (Access Key and Secret Access Key) or an IAM role (Access Key, Secret Access Key and Session Token)
  • region - The AWS region system name (e.g. us-east-1). Make sure to specify a region where you have access to the models you want to use.
  • modelId - The language model identifier you want to use. See model table.
  • request - Amazon Titan model specific request structure.

Result

  • response - Response structure
MistralText

Invoke a Mistral Instruct Model

Input parameters

  • credentials - AWS IAM credentials. You can either use IAM user credentials (Access Key and Secret Access Key) or an IAM role (Access Key, Secret Access Key and Session Token)
  • region - The AWS region system name (e.g. us-east-1). Make sure to specify a region where you have access to the models you want to use.
  • modelId - The language model identifier you want to use. See model table.
  • request - Mistral Instruct model specific request structure.

Result

  • response - Response structure
CohereCommandText

Invoke a Cohere Command Model

Input parameters

  • credentials - AWS IAM credentials. You can either use IAM user credentials (Access Key and Secret Access Key) or an IAM role (Access Key, Secret Access Key and Session Token)
  • region - The AWS region system name (e.g. us-east-1). Make sure to specify a region where you have access to the models you want to use.
  • modelId - The language model identifier you want to use. See model table.
  • request - Cohere Command model specific request structure.

Result

  • response - Response structure
MetaLlamaText

Invoke a Meta Llama Model

Input parameters

  • credentials - AWS IAM credentials. You can either use IAM user credentials (Access Key and Secret Access Key) or an IAM role (Access Key, Secret Access Key and Session Token)
  • region - The AWS region system name (e.g. us-east-1). Make sure to specify a region where you have access to the models you want to use.
  • modelId - The language model identifier you want to use. See model table.
  • request - Meta Llama model specific request structure.

Result

  • response - Response structure
AmazonTitanEmbeddings

Convert text to embeddings using Amazon Titan Embeddings model

Input parameters

  • credentials - AWS IAM credentials. You can either use IAM user credentials (Access Key and Secret Access Key) or an IAM role (Access Key, Secret Access Key and Session Token)
  • region - The AWS region system name (e.g. us-east-1). Make sure to specify a region where you have access to the models you want to use.
  • request - Amazon Titan Embeddings specific request structure.

Result

  • response - Response structure
CohereEmbeddings

Convert text to embeddings using Cohere Embed

Input parameters

  • credentials - AWS IAM credentials. You can either use IAM user credentials (Access Key and Secret Access Key) or an IAM role (Access Key, Secret Access Key and Session Token)
  • region - The AWS region system name (e.g. us-east-1). Make sure to specify a region where you have access to the models you want to use.
  • modelId - The language model identifier you want to use. See model table.
  • request - Amazon Titan Embeddings specific request structure.

Result

  • response - Response structure
StabilityDiffusionTextToImage

Create Images with Stability Diffusion SDXL 1.0

Input parameters

  • credentials - AWS IAM credentials. You can either use IAM user credentials (Access Key and Secret Access Key) or an IAM role (Access Key, Secret Access Key and Session Token)
  • region - The AWS region system name (e.g. us-east-1). Make sure to specify a region where you have access to the models you want to use.
  • request - Stability Diffusion specific request structure.

Result

  • response - Response structure
Converse

You can use the Amazon Bedrock Converse API to create conversational applications that send and receive messages to and from an Amazon Bedrock model. For example, you can create a chat bot that maintains a conversation over many turns and uses a persona or tone customization that is unique to your needs, such as a helpful technical support assistant


Input parameters

  • credentials - AWS IAM credentials. You can either use IAM user credentials (Access Key and Secret Access Key) or an IAM role (Access Key, Secret Access Key and Session Token)
  • region - The AWS region system name (e.g. us-east-1). Make sure to specify a region where you have access to the models you want to use.
  • request - Comverse request structure.

Result

  • response - Response structure


Model values
ActionModel IdentifierModel
AnthropicClaude3Textanthropic.claude-3-sonnet-20240229-v1:0Claude 3 Sonnet

anthropic.claude-3-haiku-20240307-v1:0Claude 3 Haiku
AmazonTitanTextamazon.titan-text-lite-v1Titan Text G1 Lite

amazon.titan-text-express-v1Titan Text G1 Express
MistralTextmistral.mistral-7b-instruct-v0:2Mistral 7B Instruct

mistral.mixtral-8x7b-instruct-v0:1Mistral 8x7B Instruct

mistral.mistral-large-2402-v1:0Mistral Large
CohereCommandTextcohere.command-text-v14Command

cohere.command-light-text-v14Command Light
MetaLlamaTextmeta.llama3-8b-instruct-v1:0Llama 3 8B Instruct

meta.llama3-70b-instruct-v1:0Llama 3 70B Instruct

meta.llama2-13b-chat-v1Llama 2 Chat 13B

meta.llama2-70b-chat-v1Llama 2 Chat 70B
CohereEmbeddingscohere.embed-english-v3Embed English

cohere.embed-multilingual-v3Embed Multilingual


Source code of connector library stefan-d-p/odc-awsbedrock-library: OutSystems Developer Cloud External Logic library for Amazon Bedrock Runtime SDK (github.com)