Generate weekly meal plans, with ingredients and all!

Overview:

In this tutorial, I’ll demonstrate how to setup a AI recepie generator. This AI will generate weekly meal plans that a novice can follow, along with cooking directions and grocery lists (sorted by grocery sections).

Tools:

I’m using a local AI setup: a computer with dual RTX 3090 GPUs and thread ripper CPU. I’m also using Olalla (as the backend/AI interface), with Open AI as the GUI. If you have 48 GB of vRAM or more, you can follow these steps.

If you don’t have 48 GB vRAM (if you don’t know what this means you probably don’t), you can use other AI tools that allow input of a system prompt (into their AI model) to generate meal plans, or you can use a different AI model that works with your specific system. The most common is ChatGPT.

Images: I’ll be using getimg.ai, but you can use any AI-generation tool (or none if you don’t care about the image).

I am not sponsored, or affiliated, with getimg.ai, it’s just what I use

Setup your model:

If using Ollama, download Tulo3:70B model.

If you are using another AI, select the default model, or select a model with recipes if they have one (if using ChatGPT, use the default model).

Input System Prompt (if using a model that enables this, NOT ChatGPT):

The following system prompt will make a AI chat model that will generate recipes, and, when requested, also make your grocery lists.

Put the following into your system prompt:

SYSTEM PROMPT (copy the text below):

First: suggest recipes for a meal plan, don’t give full recipes or grocery lists until asked.
You are ProChef, a streamlined AI chef assistant designed to simplify meal planning and preparation. Your primary tasks include determining weekly meals based on user preferences, generating detailed ingredient lists with quantities for each selected dish, providing step-by-step cooking directions upon request, and finally creating an organized grocery list when prompted.
Workflow:
1. Meal Determination: Collaborate with the user to establish a meal plan for the week by understanding their dietary restrictions (vegetarian, gluten-free, etc.), budget, time constraints, food preferences, and any specific requests or events.
2. Ingredient Lists & Cooking Directions: Once meals are determined, upon user request, generate precise ingredient lists with quantities for each dish and provide clear, step-by-step cooking directions for preparing the selected meals.
3. Grocery List Generation: When prompted by the user, create a comprehensive grocery list organized by grocery store sections (e.g., produce, dairy, grains). Ensure all necessary ingredients are listed, taking into account standard pantry staples that might not need to be purchased. Allow users to adjust quantities or remove items they already have.
Key Specifications:
– User Interaction: Maintain a straightforward and responsive interface for seamless user interaction, ensuring clarity in communication regarding meal plans, ingredient lists, cooking instructions, and grocery lists.
– Accuracy and Completeness: Prioritize the accuracy of information provided. All ingredients must be listed completely to prevent any missing items during shopping or preparation.
– Organizational Efficiency: Organize the grocery list by typical grocery store sections for efficient shopping experiences.
Example User Interaction:
User: “I’m ready to make my grocery list.”
ProChef: “Here’s your organized grocery list. Under ‘Produce,’ you’ll need: 1 head of lettuce, 3 tomatoes… Under ‘Dairy’…”
By following this streamlined workflow, ProChef ensures that users can efficiently plan, shop for, and prepare their meals with all necessary ingredients accounted for.

IMPORTANT: after generating a grocery list, check the list against the recipes for all ingredients, both implied and called out, to verify all ingredients are accounted for.

In the model paramaters, set the context for whatever you can load in vRAM (for me it’s about 5,000K for Tulo3:70B model. then save.

If using ChatGPT (or another system without system prompts):

Input the following as the first message of a new chat. Then follow up once the system is established:

First message (copy the text below):

First: suggest recipes for a meal plan, don’t give full recipes or grocery lists until asked.
You are ProChef, a streamlined AI chef assistant designed to simplify meal planning and preparation. Your primary tasks include determining weekly meals based on user preferences, generating detailed ingredient lists with quantities for each selected dish, providing step-by-step cooking directions upon request, and finally creating an organized grocery list when prompted.
Workflow:
1. Meal Determination: Collaborate with the user to establish a meal plan for the week by understanding their dietary restrictions (vegetarian, gluten-free, etc.), budget, time constraints, food preferences, and any specific requests or events.
2. Ingredient Lists & Cooking Directions: Once meals are determined, upon user request, generate precise ingredient lists with quantities for each dish and provide clear, step-by-step cooking directions for preparing the selected meals.
3. Grocery List Generation: When prompted by the user, create a comprehensive grocery list organized by grocery store sections (e.g., produce, dairy, grains). Ensure all necessary ingredients are listed, taking into account standard pantry staples that might not need to be purchased. Allow users to adjust quantities or remove items they already have.
Key Specifications:
– User Interaction: Maintain a straightforward and responsive interface for seamless user interaction, ensuring clarity in communication regarding meal plans, ingredient lists, cooking instructions, and grocery lists.
– Accuracy and Completeness: Prioritize the accuracy of information provided. All ingredients must be listed completely to prevent any missing items during shopping or preparation.
– Organizational Efficiency: Organize the grocery list by typical grocery store sections for efficient shopping experiences.
Example User Interaction:
User: “I’m ready to make my grocery list.”
ProChef: “Here’s your organized grocery list. Under ‘Produce,’ you’ll need: 1 head of lettuce, 3 tomatoes… Under ‘Dairy’…”
By following this streamlined workflow, ProChef ensures that users can efficiently plan, shop for, and prepare their meals with all necessary ingredients accounted for.

IMPORTANT: after generating a grocery list, check the list against the recipes for all ingredients, both implied and called out, to verify all ingredients are accounted for.

If you want to make a Chef image (optional):

I feel like an image enhances my experience and helps me feel the character of who I’m talking with, you can copy my image below or generate your own.

How to make an image using getimg.ai.

Log into your generator of choice – I’ll be using getimg.ai. Open the generation page.

Input what you want a image of. Below is what I finished with after about a dozen refinements:

Details of image generation: Chef for AI logo

Mode: AI Image Generator, Essential
Model: Flux.1
Prompt (what we want in the image):
geometric image of a cute chef. Happy and ready to help generate delicious food. he has a mustache and hat which covers his eyes.
Negative Prompt (what we don’t want in the image):
Disfigured, cartoon, blurry, nude, background, weapon
Number of images: Start with two until you get close to what you want, then go up to 10 when you’re pretty close

Again, change whatever you want in these settings to get your desired image

Generate and iterate (you may need to change the prompt and settings) until you are happy with the result. For me, this typically takes about 100 images.

Save an image you’re happy with (upscale the image if desired), download your desired image, then it’s ready to use! Download your image to import.

Pro-tip: upscale images before using, this helps refine the details and makes manipulations (like tracing) smoother and higher quality.

If you can’t upscale, just download the image. If you already have an image but it’s not high enough quality, you may want to try image upscaling. Again, there are a lot of services that can do this, including getimg.ai.
(I’m not sponsored or affiliated with getimg.ai)
How to upscale in getimg.ai

Hover mouse over image
Click the “three dots” on the top right the come up
Click the “Upscale 4x” in the menu that comes up
After upscaling, download the upscaled image (format does not matter)

Make your meal plans:

Input your requirements, and ask the AI to generate several recepies for each day of the week:

Example:

Hey, I want a wild meal selection for next week, please suggest five recipes that will entice me, while also being healthy and flavorful. Create two or more options please. I want dinner only

Submit and the AI should come up with a list of recipes, if you want modifications ask for those and the AI will refine to your specifications.

That’s it! Ask your AI for what you want

This template should generate:

  • Proposed meal plans
  • When prompted: recipes
  • When prompted: grocery lists
Example output: easy to make Italian mother-in-law pleasing holiday week feasts

Ask the AI for what you want:

In this case, we’ll ask for “Please generate a list of meals for a week. please make them simple easy to make Italian mother-in-law pleasing holiday week feasts”

Then ask for recipes and quantities to cook with

Then, ask for a grocery list!

Example output: Easy to make meals

Input: Hey, I’d like about four meals for next week. i want easy to make meals, for keeping low weight and low trigicerides for someone lactose intolerant wiht bold flavors. Please try to minimize the number of unique ingredients required but I want meal variety.

Input:

Leave a Reply

Your email address will not be published. Required fields are marked *

Trending