8000 fix: raise error when model not found by KennethEnevoldsen · Pull Request #2737 · embeddings-benchmark/mteb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: raise error when model not found #2737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

KennethEnevoldsen
Copy link
Contributor
@KennethEnevoldsen KennethEnevoldsen commented May 29, 2025
  1. Raise an error when model not found using get_model_meta instead of returning empty model_meta
  2. Added more helpful error messages
import mteb

meta = mteb.get_model_meta("BAAI/bge-m3")
# Before fix: returns empty model meta and raises a warning that it was not found on HF
# expected behaviour: Raise an error

# After fix: Raises the following error:
# KeyError: "Model 'BAI/bge-m3' not found in MTEB registry nor on the Huggingface Hub. Did you mean: 'BAAI/bge-m3' or BAAI/bge-small-zh?"

This is technically a breaking change, I can move it to v2?

@x-tabdeveloping was initially developed by you as a part of the leaderboard. I couldn't find a place in the leaderboard where it is called, but I want to double check with you.

Checklist

  • I did not add a dataset, or if I did, I added the dataset checklist to the PR and completed it.
  • I did not add a model, or if I did, I added the model checklist to the PR and completed it.

1) Raise an error when model not found using get_model_meta instead of returning empty model_meta
2) Added more helpful error messages

```py
import mteb

meta = mteb.get_model_meta("BAAI/bge-m3")
# Before fix: returns empty model meta and raises a warning that it was not found on HF
# expected behaviour: Raise an error

# After fix: Raises the following error:
# KeyError: "Model 'BAI/bge-m3' not found in MTEB registry nor on the Huggingface Hub. Did you mean: 'BAAI/bge-m3' or BAAI/bge-small-zh?"
```

This is technically a breaking change, I can move it to v2?

@x-tabdeveloping was initially developed by you as a part of the leaderboard. I couldn't find a place in the leaderboard where it is called, but I want to double check with you.
@x-tabdeveloping
Copy link
Collaborator

Seems like a reasonable idea to me. If it works and doesn't break anything then go ahead. I might stick to v2 though

@KennethEnevoldsen KennethEnevoldsen requested a review from Samoed June 2, 2025 07:23
@Samoed
Copy link
Member
Samoed commented Jun 2, 2025

Yes, I think this is breaking. Even our tests can't handle it correctly

@KennethEnevoldsen
Copy link
Contributor Author

Will move it to v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0