gnodet-bot commented on code in PR #30766:
URL: https://github.com/apache/camel/pull/30766#discussion_r4711397262
##########
components/camel-ai/camel-langchain4j-embeddings/src/main/docs/langchain4j-embeddings-component.adoc:
##########
@@ -229,11 +229,15 @@ YAML::
The body is the text to embed: a `String` or a LangChain4j `TextSegment`.
Bytes, a stream and a file (such as the
body of a `file` consumer) are read as text, so a `from("file:...")` route
needs no `convertBodyTo(String.class)`.
-A non-empty `List` of them is embedded in one batch.
+So is any other value Camel converts to its text, such as a `char[]`, a
`ByteBuffer`, a Netty `ByteBuf`, a number or a
+type with its own type converter to `String`, and a `UUID`, a `URI`, a `URL`,
a `java.time` value or a `Date` is
+embedded as its `toString()`, which is its text. A non-empty `List` of them is
embedded in one batch.
Review Comment:
`and a UUID, a URI, a URL, a java.time value or a Date is embedded as its
toString()` runs on confusingly from the previous clause. The `and` connects to
the `So is` subject of the opening clause, but the predicate `is embedded as
its toString()` reads as a fresh sentence, making it unclear whether
UUID/URI/Date fall in the "real converter" group or the toString-fallback group
(they don't — they succeed precisely because their `toString()` IS their text).
The spring-ai adoc handles the same content more clearly.
```suggestion
So is any other value Camel converts to its text, such as a `char[]`, a
`ByteBuffer`, a Netty `ByteBuf`, a number, or a
type with its own type converter to `String`. A `UUID`, a `URI`, a `URL`, a
`java.time` value or a `Date` is also
embedded, as its `toString()` is its text. A non-empty `List` of them is
embedded in one batch.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]