Open violenil opened 1 week ago
Great catch - yes I think we should change that as you write & a PR would be amazing but maybe we should get thoughts from @KennethEnevoldsen first?
Hmm not sure about this one. Currently, we don't expect AutoModels as input as they don't follow the interface. We instead inspect the user to load models using sentenceTransformers by default. Is there are reason why this can't be done here?
I get the following error when trying to run retrieval tasks:
Code snippet to reproduce:
Full traceback:
A quick and easy fix would be to adjust the logic in
mteb/evaluation/evaluators/model_encode.py
to the following:In other words, don't add the 'prompt_name' arg if the model does not have an attribute 'prompts' and the 'prompt_name' isn't in the model's prompts dictionary. I'm happy to make a PR if the above behaviour is expected.