AFAIK, doing proper RAG is much, much more than this.
What's your technical background if you don't mind me asking?