For how long do i need to take probiotics?

I'm taking a probiotic for women for my yeast infections, so I'm wondering for how long should i take it? I don't wsnt to take it like forever..

How long did you stick to taking yours?