xhluca / bm25s

Fast lexical search implementing BM25 in Python using Numpy, Numba and Scipy
https://bm25s.github.io
MIT License
862 stars 35 forks source link

[`hf`] Add "library_name" metadata to avoid confusion about what the primary library is #2

Closed tomaarsen closed 4 months ago

tomaarsen commented 4 months ago

Hello!

Pull Request overview

Details

As you can see in e.g. the sentence-transformers metadata, we automatically set the library_name: a piece of metadata that prevents Hugging Face from having to guess which of the tags refers to the library. The tags solution isn't a big deal currently, but if there's ever another library called e.g. lexical, then things might get tricky. image

Related: https://github.com/huggingface/huggingface.js/pull/763#discussion_r1645659322