Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Why is GitHub search so terrible?
3 points by d23 on April 28, 2023 | hide | past | favorite | 2 comments
It's worse than useless, since it's actively misleading.

A basic, straightforward, exact match search finds nothing: https://github.com/huggingface/transformers/search?q=TFGPT2LMHeadModel

And yet, here it is: https://github.com/huggingface/transformers/blob/4d0ea3d2692ccf2e7f091031fedb1ed8a366ddd2/src/transformers/models/gpt2/modeling_tf_gpt2.py#L814

I saw another thread where they tried to justify not indexing forks, but in this case, this is not a fork; it's one of the most-starred repositories on the entire site.



It's returning the correct results for me (or at least the line you posted is the very first search result). Who knows what's happening behind the scenes. You might want to try using Sourcegraph instead.

https://sourcegraph.com/search?q=repo%3Ahuggingface%2Ftransf...


Weird, I still get no results, even if I search incognito.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: