Skip to content

Yashashree-Joshi/Recipe-Recommendation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍽️ AI Recipe Assistant (Ollama + Google Search)

A command-line recipe assistant that:

  • Generates recipes using a local AI model (Ollama)
  • Searches real recipes using Google Custom Search
  • Uses keyword-based input with smart preprocessing

This project works fully offline for AI generation and online for Google search.


✨ Features

  • 🧠 Local AI recipe generation (no OpenAI API needed)
  • 🔍 Google recipe search option
  • 🧺 Ingredient & taste preference detection
  • ⚠️ Warnings for unclear inputs
  • 🔐 Secure API key handling using .env
  • 🖥️ Interactive CLI with exit support

🛠 Requirements

  • Python 3.9+
  • Ollama installed and running
  • llama3 model pulled
  • Google Custom Search API (for search mode)

🚀 Setup Instructions

1️⃣ Clone or download the repository

(If downloading from GitHub website, extract the files)

2️⃣ Install Python dependencies

3️⃣ Setup Google API (Required for Search Option)

4️⃣ Setup Ollama

ollama pull llama3


🧑‍🍳 How to Use

Option 1: Generate Recipe (AI)

Choose option 1

Enter at least 5 ingredients (comma-separated)

Add optional taste preferences like sweet, tangy, spicy

Wait while the recipe is generated

Option 2: Search Recipe (Google)

Choose option 2

Enter ingredients

View real recipe links from Google


Sample Output

image image

🛑 Exit

Type bye anytime to exit the program

About

Recipe Assistant is a command-line application that helps users generate or search for recipes using simple ingredient keywords. It supports local recipe generation via Ollama and real recipe search using Google Custom Search, with smart keyword preprocessing, taste preference detection, and secure API key management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages