From f1c09ee0a385ba48e79123a6cfce8a47e5e6153e Mon Sep 17 00:00:00 2001 From: ford prior <108086978+ford-at-aws@users.noreply.github.com> Date: Wed, 24 Apr 2024 08:12:57 -0400 Subject: [PATCH] Update README.md --- gov2/bedrock-runtime/README.md | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/gov2/bedrock-runtime/README.md b/gov2/bedrock-runtime/README.md index b4703c9dd3f..23036004d77 100644 --- a/gov2/bedrock-runtime/README.md +++ b/gov2/bedrock-runtime/README.md @@ -27,24 +27,13 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `gov2` fo +> ⚠ You must request access to a model before you can use it. If you try to use the model (with the API or console) before you have requested access to it, you will receive an error message. For more information, see [Model access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html). ### Get started - [Hello Amazon Bedrock](hello/hello.go#L4) (`InvokeModel`) - -### Single actions - -Code excerpts that show you how to call individual service functions. - -- [Image generation with Amazon Titan Image Generator G1](actions/invoke_model.go#L191) (`InvokeModel`) -- [Text generation with AI21 Labs Jurassic-2](actions/invoke_model.go#L83) (`InvokeModel`) -- [Text generation with Amazon Titan Text G1](actions/invoke_model.go#L261) (`InvokeModel`) -- [Text generation with Anthropic Claude 2](actions/invoke_model.go#L27) (`InvokeModel`) -- [Text generation with Anthropic Claude 2 with a response stream](actions/invoke_model_with_response_stream.go#L30) (`InvokeModelWithResponseStream`) -- [Text generation with Meta Llama 2 Chat](actions/invoke_model.go#L140) (`InvokeModel`) - ### Scenarios Code examples that show you how to accomplish a specific task by calling multiple @@ -52,9 +41,16 @@ functions within the same service. - [Invoke multiple foundation models on Amazon Bedrock](scenarios/scenario_invoke_models.go) +### Invoke model examples + +- [AI21 Labs Jurassic-2: Text generation](actions/invoke_model.go#L78) +- [Amazon Titan: Image generation](actions/invoke_model.go#L178) +- [Anthropic Claude 2: Real-time response stream processing](actions/invoke_model_with_response_stream.go#L30) +- [Anthropic Claude 2: Text generation](actions/invoke_model.go#L27) +- [Meta Llama 2: Text generation](actions/invoke_model.go#L130) + -> ⚠ You must request access to a model before you can use it. If you try to use the model (with the API or console) before you have requested access to it, you will receive an error message. For more information, see [Model access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html). ## Run the examples @@ -128,4 +124,4 @@ in the `gov2` folder. Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -SPDX-License-Identifier: Apache-2.0 \ No newline at end of file +SPDX-License-Identifier: Apache-2.0