I’d say the biggest bases, such as the theft of the female lead’s identity by her childhood friend and the intense love triangle between the female lead, her kind friend and his unloved, hard cousin, are the same
But they changed the details around, yes : the nang rai seems more… intelligent...