Skip to content

Commit

Permalink
Updates documentation a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
gogwilt committed Mar 20, 2024
1 parent 9db4acb commit 39cc6f3
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions packages/docs/docs/user-guide/plugins/built-in/anthropic.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ The Chat (Anthropic) node allows you to use the Claude API to generate text.
| Title | Data Type | Description | Default Value | Notes |
| ------ | ------------------------------------------------------------ | ------------------------------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Prompt | `string` or `string[]` or `chat-message` or `chat-message[]` | The messages to send to Claude to get a response. | (Required) | Claude Instant and Claude 2.0 does not support a system prompt like GPT does, so you may have to get inventive to place words into Claude's mouth using Prompt nodes set to `AI`. |
| Image | `image` | An image to send to Claude for analysis. | (Optional) | This input is only available when using a Claude 3 model (Claude 3 Opus or Claude 3 Sonnet). |
| System | `string` | A system prompt to provide context and instructions to Claude. This input is only available when using a Claude 3 model. | (Optional) | Use the system prompt to specify a particular goal or role for Claude. See the [guide to system prompts](https://docs.anthropic.com) for more information. |
| System | `string` | A system prompt to provide context and instructions to Claude. This input is only available when using a Claude 3 model. | (Optional) | Use the system prompt to specify a particular goal or role for Claude. You can instead include a `system`-type `chat-message` in the Prompt input. If there are multiple `system`-type messages, only the first one will be used. See the [guide to system prompts](https://docs.anthropic.com) for more information. |

#### Outputs

Expand All @@ -51,11 +50,5 @@ The Chat (Anthropic) node allows you to use the Claude API to generate text.
| Stop | Comma separated list of stop tokens. If any stop token is encountered, the response will end immediately. | (None) | Yes | `string[]` |

#### Using Vision with Claude 3 Models
When using a Claude 3 model (Claude 3 Opus or Claude 3 Sonnet), an additional `Image` input becomes available in the Chat (Anthropic) node. This input allows you to send an image to Claude for analysis alongside the text prompt.
To use Vision with Claude 3 models:
1. Select a Claude 3 model (Claude 3 Opus or Claude 3 Sonnet) in the node settings.
2. Connect an image to the `Image` input of the Chat (Anthropic) node.
3. Provide a text prompt that instructs Claude on how to analyze the image.
4. Optionally, provide a system prompt to set the context and instructions for Claude.
5. Execute the node to receive Claude's response based on the provided image, text prompt, and system prompt.
Note that the `Image` and `System` inputs are only available when using a Claude 3 model. If you select a different model (Claude 2.1, Claude 2, or Claude Instant), these inputs will not be visible.

When using a Claude 3 model (Claude 3 Opus or Claude 3 Sonnet), you can use the ![Assemble Message Node](../../../node-reference/assemble-message.mdx) to create prompt messages that contain an image.

0 comments on commit 39cc6f3

Please sign in to comment.