Anthropic Claude on AWS Chat Completions
Overview
You can use this Snap to generate chat completions with the specified Anthropic Claude model and model parameters.
- Transform-type Snap
- Works in Ultra Pipelines
Prerequisites
None.
Limitations and known issues
None.
Snap views
View | Description | Examples of upstream and downstream Snaps |
---|---|---|
Input | This Snap supports a maximum of one binary or document input view. When the input type is a document, you must provide a field to specify the path to the input prompt. The Snap requires a prompt, which can be generated either by the Amazon Bedrock Prompt Generator or any user-desired prompt intended for submission to the Anthropic Claude Text Completions API. | Mapper |
Output | This Snap has at the most one document output view. The Snap provides the result generated by the Anthropic Claude Text Completions API. | Mapper |
Error |
Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:
Learn more about Error handling in Pipelines. |
Snap settings
- Suggestion icon (): Indicates a list that is dynamically populated based on the configuration.
- Expression icon (): Indicates whether the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.
- Add icon (): Indicates that you can add fields in the field set.
- Remove icon (): Indicates that you can remove fields from the field set.
Field / Field set | Type | Description |
---|---|---|
Label | String |
Required. Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline. Default value: Anthropic Claude on AWS Chat Completions Example: Create customer support chatbots |
Model name | String/Expression/Suggestion |
Required. Specify the model name to use for the chat completion. Learn more about the list of Anthropic Claude models from AWS Bedrock that are compatible with the Text Completions API. Default value: N/A Example: anthropic.claude-v2 |
Prompt | String/Expression |
Appears when you select Document as the Input type. Required. Specify the prompt to send to the chat completions endpoint as the user message. Default value: N/A Example: $msg |
Model parameters | Configure the parameters to tune the model runtime. | |
Maximum tokens | Integer/Expression |
Required. Specify the maximum number of tokens to generate in the chat completion. Default value: 200 Example: 100 |
Temperature | Decimal/Expression |
Specify the sampling temperature to use a decimal value between 0 and 1. If left blank, the endpoint uses its default value set to 0.5. Default value: N/A Example: 0.2 |
Top P | Decimal/Expression |
Specify the nucleus sampling value, a decimal value between 0 and 1. If left blank, the endpoint uses its default value set to 1. Default value: N/A Example: 0.2 |
Top K | Integer/Expression |
Specify a value to limit the number of high-probability tokens considered for each generation step to control the randomness of the output. If left blank, the endpoint uses its default value set to 250. Minimum value: 0 Maximum value: 500 Default value: N/A Example: 300 |
Snap execution | Dropdown list |
Select one of the three modes in which the Snap executes.
Available options are:
Default value: Validate & Execute Example: Execute only |