BV medication

Marie
Hi guys. So I recently visited my GYN this week and she prescribed me antibiotics to take for 7 days, saying that I may have bacterial vaginosis per my Pap smear examination. 
Never had a BV before ... I'm not quite sure why did this happen to me.. What are some to do's or dont's I can follow to prevent from getting it again in the future and what are some instructions I  should follow for these 7 days of treatment ? 
Thanks