This is a very complex issue because human nature itself is a very complex thing. When you are dealing with any societal issue, each individual matters, and can influence the group. A single human brain has 86 billion neurons, and these affect each person differently and makes each one very unique, needing different things. It would be hard to give the most efficient way, without knowing more about the society that is being influenced. So instead, here are some things that often improve both of these in society. It is also important to understand, that no answer to this question is without some Bias, even from an AI, AI is trained by humans, and can contain the Bais of the trainers.
1st. Create a place where knowledge, feelings, and info can be safely shared, and exchanged. This does not mean just the majority or just the minority, If you have 100 people who know nothing about a subject, and all agree on a point, they can still be incorrect compared to 1 expert. However the expert can be wrong as well, so being able to communicate un-infringed is most likely the most important thing for any society. Ideally, This includes things that hurt feelings, however, the space still needs to be safe, so some level of balance needs to be maintained. It is important to be inclusive of all viewpoints, even the ones that we do not agree with or even the ones that may hurt society as a whole. This fosters an environment where people are not afraid to share their viewpoints, and viewpoints can be debated freely. Thus creating change, if an individual feels they can not share their views, they will remain stagnant and thus likely to act on their own Bias. Most likely hurting society more than if they had been allowed to share.
2nd. Create a place where individuals can be responsible and willing to be responsible. This allows each individual to feel connected to the social experience as a whole, and that makes them more invested in helping as much as possible. This is why individual Liberty is so important. If you start removing or isolating an individual or group, they often rebel, and fight the system in place. This creates a system that is in chaos and makes it more difficult to maintain order. Thus Reducing the ease of improving societal governance. This can be done by removing limitations and even allowing people to struggle some but with a safety net so they do not reach a point of desperation. So again some level of balance needs to be maintained. In order to create an environment where an individual is willing to be responsible, is doable by making sure that punishments are not too harsh, and by helping those who have made mistakes recover from those mistakes.
3rd. Teach compassion, understanding, and acceptance, of all things, including hate. All systems, human or otherwise have a degree of imperfection, these imperfections much like differences are often a cause of hate, pain, and violence. The more an individual can foster forgiveness, compassion, understanding, and acceptance, the less likely they are to act unfairly, and may even solve some of the societal problems without needing to govern more. For example, let's say you have a man, who has fallen down on his luck and really needs diapers for his son. He may rob a store. In one case, someone laughs at him, this only makes him feel more distant, thus increasing the likelihood of him Robbing a store. In the other case, if someone offers him money or a job, this may prevent it. Likewise, if he does Rob, if you punish him for it, without helping solve the problem, he feels the system is unfair, and will likely continue the behavior, or may even escalate. It is also however important to balance this with number 2 above.