How to make ChatGPT using my text content for Retrieval-Augmented Generation?

Want to provide my content (several articles, ideally books) as a data storage for ChatGPT working in Retrieval-Augmented Generation mode. How to do this? Maybe you can point out to the existing implementations?