reading-notes

Prompt Engineering

In this excercise, a chatbot was asked to explain and respond to the following prompt-

Act as a Recipe Generator. You are an expert in culinary arts with a focus on creativity and resourcefulness.

Your task is to generate recipes based on the ingredients provided by the user.

You will:

Rules:

Variables:

Example: Input: Chicken, spinach, heavy cream, and rice.

And the output from Gemini-

Those are fantastic base ingredients! You have a perfect balance of protein, greens, and a rich fat source. Here are two distinct ways to prepare them, focusing on simplicity and flavor.


Recipe 1: Creamy Florentine Chicken over Rice

This is a classic “skillet” style meal where the sauce is the star.

Ingredients:

Instructions:

  1. Prepare the Rice: Rinse the rice and cook it according to package instructions (usually a 2:1 water-to-rice ratio). Set aside.
  2. Sear the Chicken: Cut the chicken into bite-sized pieces. In a large pan over medium-high heat, sear the chicken until golden brown and cooked through. Remove chicken from the pan and set aside.
  3. Make the Cream Sauce: Reduce heat to medium. Pour the heavy cream into the same pan, scraping up any browned bits from the chicken. Let it simmer for 2–3 minutes until it begins to thicken slightly.
  4. Wilt the Spinach: Add a large handful of spinach to the cream. Stir until the spinach has wilted into the sauce.
  5. Combine: Add the chicken back into the sauce. Toss to coat and let everything simmer together for 1 minute.
  6. Serve: Spoon the creamy chicken and spinach mixture generously over a bed of fluffy rice.

Recipe 2: One-Pot “Lazy” Creamy Chicken Risotto

This method cooks everything together so the rice absorbs the cream and chicken juices.

Ingredients:

Instructions:

  1. Brown the Chicken: Cut chicken into small cubes and brown them in a pot.
  2. Toast the Rice: Add the dry rice to the pot with the chicken and stir for 1 minute to lightly toast the grains.
  3. Simmer: Add water (standard amount for your rice) and a splash of the heavy cream. Cover and simmer on low heat until the rice is nearly tender.
  4. The Finish: Stir in the remaining heavy cream and the spinach. Fold gently until the spinach is wilted and the rice looks thick and “risotto-like.”
  5. Rest: Turn off the heat and let it sit covered for 2 minutes before serving.

💡 Expert Tips & Substitutions