This is an automated email from the ASF dual-hosted git repository.
davsclaus 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 18531956f633 CAMEL-24710: docs - aws2-s3-vectors says its YAML
examples need camel-groovy
18531956f633 is described below
commit 18531956f6338e675656554af56b062556732ae2
Author: Karol Krawczyk <[email protected]>
AuthorDate: Tue Sep 15 06:55:27 2026 +0200
CAMEL-24710: docs - aws2-s3-vectors says its YAML examples need camel-groovy
Follow-up to the review note on #26397: the two YAML examples on the
aws2-s3-vectors page set the vector body with a Groovy list, which needs
camel-groovy on the classpath, but the page did not say so.
A paragraph under "Examples" now states what the body can be (a List of
numbers, a float[] or a double[]), why the YAML examples use a Groovy
expression (the YAML DSL cannot write such a list as a constant) and that
they need camel-groovy. The lists drop the `f` suffix since the producer
accepts any Number.
Closes #26448
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
---
.../org/apache/camel/catalog/docs/aws2-s3-vectors-component.adoc | 8 ++++++--
.../src/main/docs/aws2-s3-vectors-component.adoc | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-s3-vectors-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-s3-vectors-component.adoc
index bf881b9f21c5..c083b360a772 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-s3-vectors-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-s3-vectors-component.adoc
@@ -61,6 +61,10 @@ The consumer polls for vectors using similarity search. It
tracks processed vect
== Examples
+The vector in the message body is a `List` of numbers, a `float[]` or a
`double[]`.
+The YAML DSL has no way to write such a list as a constant, so the YAML
examples build it with a Groovy expression
+and need `camel-groovy` on the classpath.
+
=== Insert Vectors
[tabs]
@@ -87,7 +91,7 @@ YAML::
name: CamelAwsS3VectorsVectorId
constant: doc-001
- setBody:
- groovy: "[0.1f, 0.2f, 0.3f]"
+ groovy: "[0.1, 0.2, 0.3]"
- to:
uri: aws2-s3-vectors://my-bucket
parameters:
@@ -120,7 +124,7 @@ YAML::
uri: direct:search
steps:
- setBody:
- groovy: "[0.15f, 0.25f, 0.35f]"
+ groovy: "[0.15, 0.25, 0.35]"
- setHeader:
name: CamelAwsS3VectorsTopK
constant: 5
diff --git
a/components/camel-aws/camel-aws2-s3-vectors/src/main/docs/aws2-s3-vectors-component.adoc
b/components/camel-aws/camel-aws2-s3-vectors/src/main/docs/aws2-s3-vectors-component.adoc
index bf881b9f21c5..c083b360a772 100644
---
a/components/camel-aws/camel-aws2-s3-vectors/src/main/docs/aws2-s3-vectors-component.adoc
+++
b/components/camel-aws/camel-aws2-s3-vectors/src/main/docs/aws2-s3-vectors-component.adoc
@@ -61,6 +61,10 @@ The consumer polls for vectors using similarity search. It
tracks processed vect
== Examples
+The vector in the message body is a `List` of numbers, a `float[]` or a
`double[]`.
+The YAML DSL has no way to write such a list as a constant, so the YAML
examples build it with a Groovy expression
+and need `camel-groovy` on the classpath.
+
=== Insert Vectors
[tabs]
@@ -87,7 +91,7 @@ YAML::
name: CamelAwsS3VectorsVectorId
constant: doc-001
- setBody:
- groovy: "[0.1f, 0.2f, 0.3f]"
+ groovy: "[0.1, 0.2, 0.3]"
- to:
uri: aws2-s3-vectors://my-bucket
parameters:
@@ -120,7 +124,7 @@ YAML::
uri: direct:search
steps:
- setBody:
- groovy: "[0.15f, 0.25f, 0.35f]"
+ groovy: "[0.15, 0.25, 0.35]"
- setHeader:
name: CamelAwsS3VectorsTopK
constant: 5