This is the example application that shows you how to apply AI to your very sepcific feature set.
In this application, we follow the workflow below to extract structured data from Jamie Oliver's recipes:
- Fetch HTML markup from recipe URL.
- Define
Pydantic
recipe schema. - Define model output parser
- Define chat prompt template
- Use OpenAI
gpt-3.5-turbo-16k
model to run the query - Parse the output to JSON data
https://amazing-jo-recipe.streamlit.app/
You need to pass the following parameters to parse a JO recipe:
- OpenAI API Key
- JO recipe URL, for example: https://www.jamieoliver.com/recipes/liver-recipes/liver-bacon-onions/
Now, please click Parse Recipe
button to expect structured recipe data output.