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.
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the FastAPI server:
uvicorn main:app --host 127.0.0.1 --port 8000 --reload
-
Navigate to the UI directory:
cd ui
-
Install UI dependencies:
yarn
-
Start the development server for the UI:
yarn run dev
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.
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
- 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.
Distributed under the MIT License. See LICENSE
for more information.
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.