Curious whether the file upload feature in the ChatGPT is the same as the RAG?

Hello, I am a beginner researcher in the LLM field.
I am currently researching a prompting method where I provide a problem-solving approach as a few-shot concept prompt, and then check if GPT can solve similar application problems.
As a next step, I am considering using GPT for RAG.
As you know, on ChatGPT, there is a feature that allows attaching files and using them to engage in conversations (the clip icon). I would like to know if uploading a txt file that I have written and querying it would be equivalent to applying RAG.
Also, I am wondering if simply attaching files like txt, pdf, or word is not significantly different from entering the same content into the prompt window. If so, could you explain how RAG can be implemented using GPT-4?
Thank you so much!