Here are a few commonly used routes from San Francisco to northern Silicon Valley:
SF2G: commute by bike from san francisco to the south bay!
San Jose is just a few miles more, depending on where in San Jose you are trying to get to. San Jose is a very large city.