You can not leave the country until you have passed the interview...!!
Without wanting to pee on anyone's bonfire here, that's not correct. You can apply for "Advance Parole" which will allow you to exit and re-enter the US numerous times, while waiting for your Green Card interview. It's what I did while I waited the 2 years for my interview.