davsclaus commented on code in PR #30766:
URL: https://github.com/apache/camel/pull/30766#discussion_r4711798784


##########
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:
   Done in 6396d4bc29ac, with your wording. It is in the component doc and in 
its catalog copy.
   
   _Claude Code on behalf of davsclaus_



-- 
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]

Reply via email to