Croway opened a new pull request, #21002:
URL: https://github.com/apache/camel/pull/21002

   …on for the embeddingstore
   
   @davsclaus I've added this option 
https://github.com/apache/camel/compare/main...Croway:langchain4j-embeddings-doc?expand=1#diff-f95c43b461498ed68cc101df0812e4b0ca1ee8934fcebafdb99daf1b6910f1f7R65
 this way a route like
   
   ```
   from("direct:query")
       .to("langchain4j-embeddings:embed")
       
.to("langchain4j-embeddingstore:ragStore?action=SEARCH&maxResults=3&returnTextContent=true")
       .log("$body")
   ```
   
   this the body will contain a list of String instead of complex java objects.
   
   Are you ok having options like `returnTextContent`? or would a Converter be 
better for such usecase?
   
   ```
   from("direct:query")
       .to("langchain4j-embeddings:embed")
       
.to("langchain4j-embeddingstore:ragStore?action=SEARCH&maxResults=3&returnTextContent=true")
       .convertBodyTo(String.class)
   ```


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