Skip to content

A culinary assistant application that interprets user inputs to extract ingredients from a prompt, leveraging the power of Copilot Coagents.

License

Notifications You must be signed in to change notification settings

SusheelThapa/recipeza-coagents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recipeza

Recipeza is a culinary assistant application that interprets user inputs to extract ingredients from a prompt, leveraging the power of Copilot Coagents. Depending on the requirements, it either utilizes the Spoonacular API to enhance the response or processes the query directly, serving customized culinary advice through an intelligent agent.

Table of Contents

Usage

  1. Create a virtual environment:

    python -m venv venv
  2. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Run the FastAPI server:

    uvicorn main:app --host 127.0.0.1 --port 8000 --reload

Running the UI

  1. Navigate to the UI directory:

    cd ui
  2. Install UI dependencies:

    yarn
  3. Start the development server for the UI:

    yarn run dev

Langraph Details

For an in-depth explanation of the Langraph used in Recipeza, navigate to the notebook located at:

notebooks/Recipe_gen_langraph.ipynb

This notebook provides detailed insights into how the Langraph is structured and how it powers the recipe generation logic in Recipeza.

Environmental Variables for Frontend

Ensure that the following environment variables are set in the .env file for the frontend:

OPENAI_API_KEY=your-openai-api-key
OPENAI_BASE_URL=https://api.naga.ac/v1
REMOTE_ACTION_BASE_URL=http://127.0.0.1:8000

Features

  • Ingredient Extraction: Analyzes the user's input to identify and extract key ingredients.
  • API Integration: Optionally uses the Spoonteny API for extended functionality, such as fetching recipes or nutritional information.
  • Direct Processing: Can operate without external APIs to provide immediate responses based on a built-in knowledge base.
  • User-Friendly Interface: Simple command-line interface for easy interaction.

License

Distributed under the MIT License. See LICENSE for more information.

Event

This project was developed for the Quira Quest 20 Hacktoberfest Preptember, sponsored by Copilotkit. It aims to showcase innovative uses of AI in everyday applications, promoting open-source collaboration and development.

About

A culinary assistant application that interprets user inputs to extract ingredients from a prompt, leveraging the power of Copilot Coagents.

Topics

Resources

License

Stars

Watchers

Forks