The idea of "recreating" historical personas in sci-fi is very old, and the issue with accuracy has also been raised early. One that comes to my mind in particular is this one from 1950s, although the artificial personality is technically not an AI (it's hosted in a human brain):
https://en.wikipedia.org/wiki/A_Work_of_Art