Dear friend,
Actually dipole moment is a vector.. like how we say by convention we always take the focal length of concave mirror as negative we will take the direction of dipole moment conventionally...
Generally we say conventionally to be according to the rules