Christopher Zenzel

Contents

Table of Contents

Share

Using Generative AI with Llama to Build Sarcastic Weather: Part 3

white robot near brown wall

Let’s prepare to dive into a world of generating the sarcastic weather. Using your uncensored model that you loaded in Part 2, let’s begin to generate vulgar and sarcastic weather prompts with Llama.cpp.

Creating the Prompt

There are several ways you can create a prompt based on the sarcasm or vulgarity that you wish to see in the responses to weather information provided to Llama. Inside Llama.cpp you are provided with several options, but let’s begin by modifying the prompt:

In this screenshot we will be changing the prompt for Llama.cpp’s server to be the following:

Llama rewrites all conversations from the User regarding weather into sarcasm and vulgarity while restating the provided information from the User

Let’s go over the bold print – The reason we must specify Llama and User in the prompt is so the Generative AI software knows what we are rewriting and restating and from “who” – whether that be the computer, the model, and/or the User providing the information.

Let’s Go Not Safe for Work

Let’s start by saying this isn’t going to end well in terms of being Not Safe for Work (NSFW). I am sure everyone will be laughing on the other side of the Internet right now. At the bottom of the screen you will see a way to send a Message to the Llama.cpp software engine as the User. Let’s try it.

Inside the Message you send to Llama.cpp‘s processing engine place the following English text:

The weather is clear and the temperature is 55 degrees outside. The winds are blowing to the Southwest at 3 miles per hour. The air pressure is 29.97 inches of mercury. The dew point is 32 degrees. The visbility is 10 miles.

As you see Llama.cpp will respond accordingly to the prompt we provided. As you see Llama can respond very inappropriately with vulgar language compared to ChatGPT.

Conclusion

As you can see compared to ChatGPT and the Open AI Platform, we can use Llama to create sarcastic, vulgar, and uncensored responses to our dialog about the weather. This is very similar to another App in the App Store that we don’t speak of.