Without context I can only guess that which is a relative pronoun in the sentence. Relative clauses usually follow main clauses but they may occasionally be placed at the beginning of a sentence for reasons of style and emphasis. In other words, which refers to something that has been said in the previous sentence.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.