As a developer
I want to refactor the logic for categorizing ingredients utilizing OpenAI
in order to minimize the number of requests to the AI
DoD:
ingredients get categorized as they are added to new recipes
the categories get saved to the DB for later reference
ingredients with known categories get automatically sorted in the shopping list
users can still manually categorize small amounts of ingredients using AI - those also get saved to the DB
Tasks:
[ ] Set up a DB collection for ingredients and their categories
[ ] Access that collection in the shopping list and sort ingredients into categories
[ ] set up logic to run unknown ingredients by the AI while creating new recipes and save the results to the db
[ ] modify existing function to categorize unknown ingredients in the shopping list to save results to DB and be limited to 10-15 items (test API response time to get the max. number of items).
As a developer I want to refactor the logic for categorizing ingredients utilizing OpenAI in order to minimize the number of requests to the AI
DoD:
Tasks: