Personalized search ranking now live
We’ve improved how Sourcegraph ranks results in the main search bar to deliver more relevant results tailored to each user. When you search for something like data router
, Sourcegraph now applies best-in-class ranking strategies that better understand your full query - not just keywords in isolation. In addition, we boost results from repositories you’ve recently contributed to, making it easier to find the code you care about faster.
Flexible code search queries - where you are looking for something, but don’t 100% remember the name - has been improved. Below is a before and after for the query contributors job
that highlights this improvement and our use of BM25 ranking.


Second, here is an example demonstrating the new personalized ranking. For a user who regularly contributes to sourcegraph/zoekt
, a search would often include results from low-traffic repos that they don’t contribute to.

With the new personalized ranking, the top result is now from the sourcegraph/zoekt
repository.

This improvement helps address a long-standing pain point for users in large codebases, especially new users who may otherwise get overwhelmed by results from unfamiliar or irrelevant repositories. With personalized search ranking, your search results are more likely to reflect the work that’s most relevant to you.