Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ford-at-aws authored Apr 24, 2024
1 parent ed943aa commit f1c09ee
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions gov2/bedrock-runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,30 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `gov2` fo


<!--custom.prerequisites.start-->
> ⚠ 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).
<!--custom.prerequisites.end-->
### 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
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)


<!--custom.examples.start-->
> ⚠ 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).
<!--custom.examples.end-->

## Run the examples
Expand Down Expand Up @@ -128,4 +124,4 @@ in the `gov2` folder.

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0

0 comments on commit f1c09ee

Please sign in to comment.