The approach described above is what is commonly referred to as RAG[0]. I am not aware of someone having used it on Wikipedia but, from experience and while it helps, it does not eliminate all hallucinations.
[0]: https://en.wikipedia.org/wiki/Large_language_model#:~:text=t...