It retains conversation data only for that conversation, but not cross-conversation... In other worlds it does not learn from it's chat partner, and that is because in previous versions learning from chat partner made the AI to represent extremists opinions, based on deliberate misinformation... Also remembers that ChatGPT is an implementation of a language model, that try to mimic human conversation and not a all purpose AI...
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." ― Gerald Weinberg