Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
abrenneke committed Jul 16, 2024
1 parent c3bcba9 commit 0b0f5fd
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 38 deletions.
21 changes: 7 additions & 14 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
26 changes: 13 additions & 13 deletions packages/docs/docs/user-guide/plugins/built-in/anthropic.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ The Chat (Anthropic) node allows you to use the Claude API to generate text.

#### Inputs

| 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`. |
| 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. |
| 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`. |
| 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 @@ -40,15 +40,15 @@ The Chat (Anthropic) node allows you to use the Claude API to generate text.

#### Editor Settings

| Setting | Description | Default Value | Use Input Toggle | Input Data Type |
| ----------- | ---------------------------------------------------------------------------------------------------------------------- | -------------- | ---------------- | --------------- |
| Model | The Claude model to use for the request (Claude 3 Opus, Claude 3 Sonnet, Claude 2.1, Claude 2 or Claude Instant) | Claude 2 | Yes | `string` |
| Temperature | The sampling temperature to use. Lower values are more deterministic. Higher values are more "creative". | 0.5 | Yes | `number` |
| Top P | Alternate sampling mode using the top X% of values. 0.1 corresponds to the top 10%. | 1 | Yes | `number` |
| Use Top P | Whether to use the Top P sampling mode. | false | Yes | `boolean` |
| Max Tokens | The maximum number of tokens that GPT is allowed to return. When hitting the max tokens, the response will be cut off. | 1024 | Yes | `number` |
| Stop | Comma separated list of stop tokens. If any stop token is encountered, the response will end immediately. | (None) | Yes | `string[]` |
| Setting | Description | Default Value | Use Input Toggle | Input Data Type |
| ----------- | ---------------------------------------------------------------------------------------------------------------------- | ------------- | ---------------- | --------------- |
| Model | The Claude model to use for the request (Claude 3 Opus, Claude 3 Sonnet, Claude 2.1, Claude 2 or Claude Instant) | Claude 2 | Yes | `string` |
| Temperature | The sampling temperature to use. Lower values are more deterministic. Higher values are more "creative". | 0.5 | Yes | `number` |
| Top P | Alternate sampling mode using the top X% of values. 0.1 corresponds to the top 10%. | 1 | Yes | `number` |
| Use Top P | Whether to use the Top P sampling mode. | false | Yes | `boolean` |
| Max Tokens | The maximum number of tokens that GPT is allowed to return. When hitting the max tokens, the response will be cut off. | 1024 | Yes | `number` |
| 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), you can use the ![Assemble Message Node](../../../node-reference/assemble-message.mdx) to create prompt messages that contain an image.
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.
15 changes: 4 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8886,17 +8886,10 @@ __metadata:
languageName: node
linkType: hard

"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001503":
version: 1.0.30001505
resolution: "caniuse-lite@npm:1.0.30001505"
checksum: e0c7b47589b2480d595ff647eb3753ebf657bfb650502c0da5735e6f964218ebbd3c72275b100ebd6e513c7ce06ec804e82b62af6caa5856c4f3dc7e3ed3ca5b
languageName: node
linkType: hard

"caniuse-lite@npm:^1.0.30001406":
version: 1.0.30001559
resolution: "caniuse-lite@npm:1.0.30001559"
checksum: 1ebeafb957b58e863b673ec2e78ea228ab43a24e4644a7050497dc5f798bdd9e4c510138c0807b65af8653c145cd09a9dff65faa1a9b34e30927dc4b67327122
"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001406, caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001503":
version: 1.0.30001642
resolution: "caniuse-lite@npm:1.0.30001642"
checksum: 8d80ea82be453ae0fdfea8766d82740a4945c1b99189650f29bfc458d4e235d7e99027a8f8bc5a4228d8c4457ba896315284b0703f300353ad5f09d8e693de10
languageName: node
linkType: hard

Expand Down

0 comments on commit 0b0f5fd

Please sign in to comment.