The formation of bipolar sources in dense molecular clouds