So I decided to create this repo so you can take a look at the code and maybe apply the same techniques on your own apps. It's made using only PHP as language so I think is pretty different since most stuff out there is made using python or javascript.
It uses the OpenAI API and Redis as a vector database.