All projects

02 / Applied AI & Research

AI-Driven Recipe Generator

Personalized recipe generation through language models and multimodal inputs.

An AI-powered recipe generation application that uses ingredient lists, image-based text extraction and user preferences to generate customized recipes. The project combines local language-model inference, OCR, dietary preference handling, multilingual generation and PDF export.

Collaborative applied AI project

  • Python
  • Ollama
  • LLaMA 3.2
  • Tesseract OCR
  • Gradio

Project at a glance

Project type
Collaborative applied AI project
Technologies
Python, Ollama, LLaMA 3.2, Tesseract OCR and Gradio
Inputs
Typed ingredients or an image of an ingredient list, plus preferences
Outputs
A generated recipe, with PDF export where supported
Related research
Published Indian patent application (not a granted patent)

Problem and objective

Conventional recipe search often requires users to manually identify suitable recipes based on available ingredients, dietary preferences, cuisine and preparation time.

This project explores a more flexible approach: a language model generates recipes from user-provided constraints, using typed ingredients or ingredient lists extracted from images.

High-level functional workflow

The steps below describe what a user can do, at a high level. They are a functional workflow and are not presented as an independently verified internal architecture.

High-level recipe workflowFIG. 01
High-level recipe workflowTyped ingredients and uploaded ingredient-list images are combined with user preferences. Images pass through Tesseract OCR first. Ingredient and preference processing feeds local LLM generation with Ollama and LLaMA 3.2. The result is a recipe output, with PDF export where supported. This is a high-level functional workflow, not a verified internal architecture.Typed ingredientsIngredient imageTESSERACT OCRUser preferencesIngredient and preference processingLocal LLM generationOLLAMA + LLAMA 3.2Recipe outputPDF exportWHERE SUPPORTED
Read diagram as text

Typed ingredients and uploaded ingredient-list images are combined with user preferences. Images pass through Tesseract OCR first. Ingredient and preference processing feeds local LLM generation with Ollama and LLaMA 3.2. The result is a recipe output, with PDF export where supported. This is a high-level functional workflow, not a verified internal architecture.

  1. 01Provide ingredients by typing them, or upload an image of an ingredient list.
  2. 02Text is extracted from uploaded images with Tesseract OCR.
  3. 03Ingredients are combined with preferences for diet, cuisine, allergies, serving size, cooking time and output language.
  4. 04A local language model, LLaMA 3.2 served by Ollama, generates the recipe.
  5. 05The recipe is displayed and, where supported, exported as a PDF.

Implemented capabilities

Typed and image-based ingredient input

Enter ingredients directly, or extract ingredient text from an uploaded image using OCR.

Preference-aware generation

Adjust requests by diet, cuisine, serving size, cooking time and listed food allergies. The application is allergy-aware in that it accepts allergies as an input; it is not medically validated.

Multilingual output

Generate recipes in different supported languages.

PDF export

Export supported generated recipes as downloadable PDF documents.

Application screenshots

These are genuine screenshots of the application. The interface’s own subtitle in these historical captures uses the phrase “Allergy-Safe”. That is the application’s wording, not a claim made by this portfolio: the project is described here as allergy-aware, for the reasons in the limitations below.

Known limitations

  • Generated recipes can contain inconsistencies. Screenshots from testing showed recipe titles that did not match the supplied ingredients and ingredients that did not suit the stated preferences.
  • Dietary and allergy preferences are inputs to a language model, not a guarantee that it will avoid unsuitable ingredients. This experimental application is not a medically validated or allergy-safety tool. Review generated recipes and verify ingredients independently before use.
  • OCR quality depends on the clarity of the input image.
  • No systematic evaluation of recipe quality is presented here.

Published patent application

Published patent application

AI-Based Dynamic Recipe Generator Using Language Models

Co-inventors and co-applicants: Dr. B. Selvapriya, B. Harini Shree, Lisha Choudhary.

Published application — not a granted patent.

Application
202641047888 A
Filed
15 April 2026
Published
1 May 2026
Publication
The Patent Office Journal, Government of India
Journal / page
18/2026 / 49714

The published application relates to this work. The publication describes the invention at a conceptual level; this case study describes only the implementation shown in the screenshots above.