A dipole consists of two equal and opposite charges separated by some distance. With respect to this, the dipole moment is defined whose direction is taken from negative to the positive charge.
Accordingly the formulae for electric field, potential and potential energy are derived.