You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/03/14 10:13:03 UTC

(camel) 06/07: Camel-AWS-Bedrock: Add documentation for Anthropic Claude 2.1

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch bedrock-docs
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6b706f2e6255a64106c2e7813911899afc388459
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 14 11:00:19 2024 +0100

    Camel-AWS-Bedrock: Add documentation for Anthropic Claude 2.1
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../src/main/docs/aws-bedrock-component.adoc       | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/components/camel-aws/camel-aws-bedrock/src/main/docs/aws-bedrock-component.adoc b/components/camel-aws/camel-aws-bedrock/src/main/docs/aws-bedrock-component.adoc
index 077509317af..2ccd3eb465a 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/docs/aws-bedrock-component.adoc
+++ b/components/camel-aws/camel-aws-bedrock/src/main/docs/aws-bedrock-component.adoc
@@ -505,7 +505,55 @@ Json schema for request
 }
 --------------------------------------------------------------------------------
 
+- Claude 2.1 with id `anthropic.claude-v2:1`
+An update to Claude 2 that features double the context window, plus improvements across reliability, hallucination rates, and evidence-based accuracy in long document and RAG contexts.
 
+Json schema for request
+
+[source,json]
+--------------------------------------------------------------------------------
+{
+  "$schema": "http://json-schema.org/draft-04/schema#",
+  "type": "object",
+  "properties": {
+    "prompt": {
+      "type": "string"
+    },
+    "max_tokens_to_sample": {
+      "type": "integer"
+    },
+    "stop_sequences": {
+      "type": "array",
+      "items": [
+        {
+          "type": "string"
+        }
+      ]
+    },
+    "temperature": {
+      "type": "number"
+    },
+    "top_p": {
+      "type": "integer"
+    },
+    "top_k": {
+      "type": "integer"
+    },
+    "anthropic_version": {
+      "type": "string"
+    }
+  },
+  "required": [
+    "prompt",
+    "max_tokens_to_sample",
+    "stop_sequences",
+    "temperature",
+    "top_p",
+    "top_k",
+    "anthropic_version"
+  ]
+}
+--------------------------------------------------------------------------------
 
 === Bedrock Producer operations