If you want to understand the underlying technology, this video explains the concept of Reinforcement Learning from Human Feedback (RLHF) pretty well.