I built my own ChatGPT

 

ChatGPT became the fastest-growing app of all time, beating other behemoths like Spotify, Instagram, and even TikTok.

That’s why I thought, wouldn’t it be fun to build my own ChatGPT clone? To do this, we essentially need three things:

  1. First, we need the API keys from OpenAI. These keys will grant us access to all the different GPT models, which essentially perform all the magic behind ChatGPT.
  2. Then, we have to build a chat interface that will allow users to converse with the AI.
  3. Lastly, we will need a database to store all the conversations.

I’ve decided to use a Ruby on Rails and PostgreSQL stack to rapidly build the app.

And after a few weeks of research and tinkering, I was finally able to create a working prototype:

We can ask it questions, and it will respond just like ChatGPT.

We can also revisit all of our previous conversations.

Though there is still much to fine-tune to make it feel like the real ChatGPT website, but that’s a problem for another day!

This is just a promising first step, as I am trying to create an AI assistant for lenders and financial analysts.

If you’re interested, feel free to subscribe and leave a comment!

Yno Andrei Calamiong
Yno Andrei Calamiong

Just trying to build Businesses, Technologies, and Good Stories.