FlagEmbedding icon indicating copy to clipboard operation
FlagEmbedding copied to clipboard

compute colbert score in batch

Open davidbetancur8 opened this issue 1 year ago • 2 comments

Is it possible to compute the colbert score for the m3 model for more than one pair at the time? currently seems very inneficient

davidbetancur8 avatar Jul 11 '24 07:07 davidbetancur8

Also looks there is a difference between the colbert_score in https://github.com/FlagOpen/FlagEmbedding/blob/master/FlagEmbedding/BGE_M3/modeling.py and in https://github.com/FlagOpen/FlagEmbedding/blob/master/FlagEmbedding/bge_m3.py

davidbetancur8 avatar Jul 11 '24 07:07 davidbetancur8

As far as I can tell, you should use this method or it can help as a guidance how to do it yourself.

oguzserbetci avatar Oct 07 '24 11:10 oguzserbetci

@davidbetancur8 Are there any updates on calculating colbert_score in batch?

polieste avatar Nov 09 '24 01:11 polieste