Problem
A meal-kit company needs new recipes that customers like and that waste little time, food and money. A weak recipe costs customer satisfaction, time and revenue before it is fixed. Chat assistants such as ChatGPT can propose dishes, but the ideas do not follow the company's brand, ingredient assortment or style. Hosted APIs also raise questions about price, personal data and licence terms.
Example from the article: a general chatbot gave a "Teriyaki Chicken" recipe that did not match the HelloFresh brand, assortment or flavour profile and had no chef's testing behind it.
Solution in brief
Train a tiny GPT-2-style model from scratch on the company's own recipe titles. Prefix each title with control tokens for cuisine and main protein, so a prompt can fix them. Show the generated titles in a small app next to the closest existing recipes, which tells a developer how novel an idea is and how similar dishes performed.
Questions this case answers
- How to generate new catalogue items in the company's own style when a large hosted model is too costly, too generic or not allowed for the data
- How to estimate the novelty of a generated item and compare it with the performance of its closest existing items
- How to generate new product ideas in the house style of a catalogue without calling a large LLM?
- How to steer a small language model to produce items with a chosen category and key attribute?
Tools and methods
- GPT-2 decoder without positional encoding — next-token model for recipe titles. The post gives its size as about 1M parameters in one place and hundreds of thousands in another.
- Control tokens [CUI], [PROT], [SOT], [EOT] — let a prompt fix cuisine and protein.
- Embedding similarity — the model's own embeddings find the nearest existing recipes to a generated title.
- Streamlit — a quick app for prompting and viewing neighbours.
Google or a one-time email code. No password.