Folic acid dose

I went to 1 obgyn and she gave me a dose of 1000 micrograms of folic acid. However, when I went to another doctor, she gave me only 400 micrograms. This confused me. Which one is recommended?