The Art Of Prompt Engineering : 🚀 I Built an AI That Talks Like Love Babbar! (Yes, Seriously) 💻❤️

Gaurang SainiGaurang Saini
1 min read

Motivation ?

The motivation was simple , how to make use of few shot prompting to build a Real Life Persona of somebody .

Making AI behave / talk like a particular person is itself a big task.

Tech Stack : For Simple Command Line Persona

  1. Python

  2. OpenAI API

Process :

  1. Gathering Information

    1. Had to gather insights about his background , his studies , his career.

    2. Watched his tweets and fed it to AI to recognize patterns.

    3. I was enrolled in his live course , so watched it again and captured his way of talking through few shot prompting.

  2. Feed the information to AI in an organised way

    1. Getting information is not enough if you cannot properly tell the AI what to do
  3. Manage generalized responses that looked too vague or AI’ishh by giving prompts to avoid some sentences like : “Kya me aapki aur madad ker sakta hu”

How to run my code :

you can simply copy the code from the following repo , get an open api key in your .env and bang on you are ready to talk with love bhaiya.

Make sure to follow this blog for further updates on my learning in GenAI.

Bye.

0
Subscribe to my newsletter

Read articles from Gaurang Saini directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Gaurang Saini
Gaurang Saini