baysalt.devblogprojectscontact

Rizz AI

Thu Jun 01 2023

Rizz AI image

Rizz AI

Rizz AI is a solution to the illness we all suffer from: lovesickness. With the power of today's latest AI technology, Rizz AI will diagnose and cure any friend zones, situationships, or unrequited loves you may encounter in the future.

A Side Note

In all seriousness, this is a goofy project I made with my friends for AP Computer Science A. I offhandedly mentioned the idea and somehow we all loved it (pun intended). We definitely put a lot of heart and soul into this project, but don't expect it to solve any of your problems. Plus, the website's not functional. I'm not setting it up again. Cheers.

How It Works

For the Chat Bot (which I worked on):

  1. Pass the user input in an API call to the backend.
  2. Backend modifies the prompt to better suit ChatGPT.
  3. Backend passes the modified prompt to the ChatGPT API.
  4. Backend serves ChatGPT's answer back to the frontend.

I'm only going to talk about the interesting stuff.

Step 2

In order to not seem like a blatant rip-off of ChatGPT, we decided that our "Chat Bot" would take on the persona of a high-school jock or a popular girl because we thought ~~it was funny~~ users (who would likely still be in school) would better relate to someone like them.

To achieve this, we just concatenated something like "Act like a jock and answer the following love advice: " with the user input before calling the ChatGPT API. So I guess I can call myself a "prompt engineer".

Step 3

Since we didn't have time to make an AI from scratch (which would involve scraping data, training the model, and linking the model to the backend), we ultimately decided to call ChatGPT's API to provide the answers. Surprisingly, the hard part wasn't calling the API. The hard part was storing the key securely. Although I know you're supposed to use something like GitHub secrets (it's been two years since I made this project), we couldn't get it to work for some reason. So our workaround was to push a separate file with the ChatGPT key onto the AWS server and create a progrma that would read from that file to get the key (note that I did not do any of this). It's a very ugly workaround, but it worked nonetheless.

Closing Remarks

This is a silly website for a silly purpose. But it was a good project, the culmination of my time in AP Computer Science A. One day, when I have dozens upon dozens of projects to talk about, Rizz AI will fade away from both this portfolio and my memory. But, just like all the other abandoned projects on the internet, it meant something when it was created.