Farm Fresh Prompts

Farm Fresh Prompts

I am blessed to live in one of the best agricultural regions in the world, with an amazing weekly farmer's market. Even though I love to cook, I often find myself drawing a blank on what to make out of the abundance of options in front of me. What do you do with Chinese long beans? Garlic scapes? Or something I can only name by looking at the label next to it? I struggled with this until I discovered the power of Generative AI.

In this article, I'll walk you through how to build a prompt to give you fresh ideas for using more local, in-season produce every week. I'll introduce some concepts for prompt engineering without diving into too many details. Don’t worry if some concepts seem confusing at first; I’ll be publishing a series of articles to cover each topic in depth.

Every good experiment starts with a question:

What can I make for dinner this week that uses local and in season produce?

Needs and Boundaries

As any good relationship counselor will tell you, clearly stating your needs and boundaries is crucial. AI works best when it knows the details of what you want. Without constraints, you will get unpredictable results that may not meet your needs and provide little useful information. For instance, a vague question like the one above might give you dinner ideas with minimal detail.

Imagine you have a couple of friends coming over for dinner. What questions would you ask to prepare the menu? Here are some examples:

  • Are there any dietary restrictions? If one of your guests has high blood pressure, you might want to ask it to keep that in mind.
  • Does anyone have food allergies? I know I do and fun fact: they suck.
  • Does anyone prefer sweet, savory, spicy, or salty? I live up to my stereotype so I ask it to avoid spicy foods.
  • What is your budget? Sometimes you may want to splurge for a special kind of dinner.
  • What kitchen equipment is available? As I write this, it is Summer and I am under no circumstances turning on my oven.
  • What is the skill level of the cook and time constraints? You don't want AI suggesting a meal only a trained chef can make.

If you are going to put that much detail into a prompt, it's better to list it all out. It makes it easier for everyone (including the machine) to understand the requirements. Let's build up our prompt just a bit more:

What can I make for dinner this week? I have the following constraints for menu options:
- I'm allergic to wheat, sesame, peanuts, and chickpeas. Do not include those ingredients.
- Meat is fine but optional
- Avoid anything spicy
- The only equipment I have for cooking is the stovetop, a sous vide machine, and a BBQ.
- Dinner should only take 30 minutes of prep time or less.
- Use produce local to Chico, CA and is in season        

Let's Role Play

One technique to use to build up better output is to guide it through who the ideal author and reader are of the output. These are called personas. I'll give a high level overview here and give you more detail in a later article. For our specific example, the ideal author would be a cookbook author who trained as a restaurant chef. Yes, you can state it just that plainly and have it comprehend what you want. You can also give it a lot more background detail for further refinement but that will be enough. The ideal reader is of course yourself but also who is helping to cook and who is going to be doing all the eating.

Add this to the start of your prompt to get going:

You are a cookbook author with a background as a trained restaurant chef. The audience for your response is a family of two adults. One of them will be cooking and they are an intermediate level home cook.        


Formatting for the Foodie

Now comes the time for formatting, after all you don't want an unintelligible list of ingredients? ChatGPT does a fairly good job of formatting to begin with but we can help it with some suggestions. Add this to the bottom of your prompt:

At the top of the output, list out all ingredients from the provided recipes that can be found at a local farmer's market that week.        

This will give you your shopping list for all of the recipes it comes up with. Note that it is important to include "from the provided recipes." I made the mistake of skipping that and it spat out a list of a few dozen things that might be available regardless of what I was cooking. With that said, you use that overly broad list figure out what ingredients you might like (if I'm coming for dinner, please include peaches).

I also add "include one side dish recommended for this recipe" since dinner is rarely made up of a single dish.

From there, play with the prompt to get the style you want. You can tell it to only output two recipes or ten. If you tell it to give you more than enough recipes in a numbered list, you can use follow up prompts to remove some of those recipes and tailor your shopping list.

Refine & Dine

Now that you have your prompt written up, run it. The best part about using ChatGPT is to see it output a long response. It still feels like magic to me. Even more magical though is the follow up questions. In my case I saw it included a recipe with bell peppers. Can't have that. I just tell it "Remove recipe 5 from that list and don't replace it." Voila, no more bell peppers.

Some other follow up prompts you can use:

  • Convert that output into a PDF. Now you can an easy to print and physical list to bring with you to the market. Plus, it might even be a conversation starter about how you came up with the recipes.
  • "I'd like to BBQ, change some but not all of the recipes to those that can be cooked on the BBQ." This will make sure you get to use that BBQ but not every day of the week.
  • "Add to each recipe a cocktail, mocktail, or wine that would pair well with the dish." This adds a nice drink to go with your dinner and even gives suggestions like a non-alcoholic "Lemon Basil Mocktail."
  • "I have a cup of crumbled feta cheese, make sure that is included in one of the recipes." Use this style of follow-up to really clean out your fridge.

Continuing Your Journey

There are so many directions you can take this basic prompt but I'll save those for future articles. Explore on your own how to tweak it to the ingredients you like or how to get it to give you recipes you can meal prep with. In future articles, we'll also explore how to peer into the inner workings of ChatGPT so you can better see how it came up with its answers. Techniques like this are how I learned how to make the most of this magical tool and I hope to share this knowledge.

All images generated by me using Dall-E.


Zachiariah Zaricor

Man-of-Integrity, Go-Giver, Life-Long Learner.

9 个月

I like to cook but struggle with the question I ask my spouse every night:”what are you hungry for?” Curious to try these prompts in ChatGPT as we meal plan before the as start of the week. We will report back how it goes.

要查看或添加评论,请登录

Sean Todd ??????的更多文章

  • Leveled Up TTX: A Rogues' Gallery

    Leveled Up TTX: A Rogues' Gallery

    You and your IR team have just been notified that a critical infrastructure provider has been breached. The attackers…

  • Leveled Up TTX: Personality Quirks

    Leveled Up TTX: Personality Quirks

    Imagine you’re leading a high-pressure incident response simulation. You’re on the phone with a vendor, and their…

    5 条评论
  • Leveled Up TTX: Table Settings

    Leveled Up TTX: Table Settings

    Incident response teams know the drill: a vendor breach, an attacker with unclear motives, and the rush to contain the…

  • A Tale of Three Breaches

    A Tale of Three Breaches

    In the world of information security, breaches have shifted from being rare, shocking events to an all-too-common…

    4 条评论
  • Whodunnit: Unforgettable IRP Training with AI

    Whodunnit: Unforgettable IRP Training with AI

    Let us all just admit it upfront, no one (not even security pros) likes security trainings. I would contend though that…

  • Leveling Up Policy Management

    Leveling Up Policy Management

    In the previous article, we discussed how to setup a new policy set but that is only a small part of a policy…

    1 条评论
  • Love Your Policies Again

    Love Your Policies Again

    In years past, I've built security programs from scratch with a ton of manual work including policy writing. I'm sure…

  • Jet-Setting with Prompts

    Jet-Setting with Prompts

    Early this year I was planning on taking my nephew on his first international trip. I knew this would be a trip of a…

  • Omphaloskepsis, or how to make the most of ChatGPT

    Omphaloskepsis, or how to make the most of ChatGPT

    Introduction We are well into the next revolution in the world of information. Generative AI is on the lips of everyone…

    2 条评论
  • Celebrating Governance in CSF

    Celebrating Governance in CSF

    The NIST Cybersecurity Framework version 2.0 has finally landed! I'm really excited about the new Govern function that…

社区洞察

其他会员也浏览了