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

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

commit 33149100633bd687ac585f2ef84f9d89a0c3675b
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Feb 27 14:16:11 2024 +0100

    Camel-AWS-Bedrock: Documentation and json schema for supported model
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../src/main/docs/aws-bedrock-component.adoc       | 52 ++++++++++++++++++++++
 1 file changed, 52 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 2033537c15e..66a82bf1c1e 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
@@ -81,6 +81,58 @@ For more information about this you can look at 
https://docs.aws.amazon.com/sdk-
 include::partial$component-endpoint-headers.adoc[]
 // component headers: END
 
+=== Supported AWS Bedrock Models
+
+- Titan Text Express V1 with id `amazon.titan-text-express-v1`
+Express is a large language model for text generation. It is useful for a wide 
range of advanced, general language tasks such as open-ended text generation 
and conversational chat, as well as support within Retrieval Augmented 
Generation (RAG).
+
+Json schema for request
+
+[source,json]
+--------------------------------------------------------------------------------
+{
+  "$schema": "http://json-schema.org/draft-04/schema#";,
+  "type": "object",
+  "properties": {
+    "inputText": {
+      "type": "string"
+    },
+    "textGenerationConfig": {
+      "type": "object",
+      "properties": {
+        "maxTokenCount": {
+          "type": "integer"
+        },
+        "stopSequences": {
+          "type": "array",
+          "items": [
+            {
+              "type": "string"
+            }
+          ]
+        },
+        "temperature": {
+          "type": "integer"
+        },
+        "topP": {
+          "type": "integer"
+        }
+      },
+      "required": [
+        "maxTokenCount",
+        "stopSequences",
+        "temperature",
+        "topP"
+      ]
+    }
+  },
+  "required": [
+    "inputText",
+    "textGenerationConfig"
+  ]
+}
+--------------------------------------------------------------------------------
+
 === Bedrock Producer operations
 
 Camel-AWS Bedrock component provides the following operation on the producer 
side:

Reply via email to