This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ffc1fa02d1a Camel-AWS-Bedrock: Documentation and json schema for
supported model (#13327)
ffc1fa02d1a is described below
commit ffc1fa02d1a39fc7b8048e8bc4a0f41e392d209f
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Feb 27 14:32:05 2024 +0100
Camel-AWS-Bedrock: Documentation and json schema for supported model
(#13327)
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: