A demo GenAI-style pipeline for segmenting, extracting, and analyzing recipes using OpenAI API and prompt files.
- Clone this repo.
- Create a
.envfile in the root folder and add your OpenAI API key:OPENAI\_API\_KEY=sk-xxxxxx - (Recommended) Create a virtual environment and activate it:
python -m venv venv venv\Scripts\activate - Install dependencies:
pip install -r requirements.txt
```
python main.py
```
```
python -m pytest tests/
```
All LLM prompts are stored in the /prompts folder as Jinja2 templates.
- Do NOT commit your
.envor API keys to GitHub!
openai
jinja2
python-dotenv
pytest