Skip to content
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

Ranking: increase contribution of repo rank #546

Merged
merged 2 commits into from
Feb 27, 2023
Merged

Conversation

jtibshirani
Copy link
Member

@jtibshirani jtibshirani commented Feb 25, 2023

The file score includes a "repo rank" signal, which is based on the repository's number of stars. Previously, we were aggressively normalizing the number of stars, which made the repo ranks small and close together. This PR changes the normalization to spread it out better over the full range. This increases its contribution to the score.

This would address a couple complaints we got about ranking. Here's an example where the llvm/llvm-project should be the first result:
Screenshot 2023-02-24 at 7 24 58 PM

Now, llvm/llvm-project will have repo rank 15.68, pushing it above the first result with repo rank 0.82.

@jtibshirani
Copy link
Member Author

Thanks for the quick reviews!

@jtibshirani jtibshirani merged commit 5f25b30 into main Feb 27, 2023
@jtibshirani jtibshirani deleted the jtibs/repo-rank branch February 27, 2023 00:13
@jtibshirani
Copy link
Member Author

CC @varungandhi-src we deployed the fix to sourcegraph.com and your example is looking better:

Screenshot 2023-02-28 at 9 05 50 AM

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.

2 participants