[ 
https://issues.apache.org/jira/browse/CAMEL-28058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-28058.
---------------------------------
    Resolution: Fixed

Merged in https://github.com/apache/camel/pull/31276 
(3fdd0ce3efdfc6c5a69bc271685f6d66048da56b) for 4.25.0.

> camel-langchain4j-embeddings: validate response cardinality against input 
> segments
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-28058
>                 URL: https://issues.apache.org/jira/browse/CAMEL-28058
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.25.0
>
>
> The batch producer publishes the result and source segments without checking 
> one embedding per segment. The single path takes the first embedding after 
> checking only that one exists. Reject invalid cardinality before publishing 
> result metadata. Cover missing, short and oversized responses with a fake 
> model.
> AI-generated by Codex on behalf of oscerd.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to