erlexec icon indicating copy to clipboard operation
erlexec copied to clipboard

Add `.combine_embeddings()` method do DocumentArray

Open JohannesMessner opened this issue 3 years ago • 0 comments

Right now it is painful to combine embeddings from different nesting levels and set them at the top level, especially until root_id is solved.

So this should do the following: It takes an access path (or list of access paths?) (e.g. @.[image, main_text]), and combines the embeddings in those docs using one of 'sum', 'mean', 'concat', or a provided model.

JohannesMessner avatar Aug 30 '22 14:08 JohannesMessner