feat(backend): recipe enrichment with side dishes & detailed instructions

- Add SideDish/SideDishIngredient schemas and recipe.side_dishes JSONB column
- Add recipe_enrichment.py service using Ollama LLM to:
  - Rewrite vague instructions with specific temps, quantities, timing, sauce breakdowns
  - Suggest 1-2 complementary side dishes with ingredients & prep notes
- Wire enrichment into recipe_ingestion.py discovery pipeline
- Add admin trigger endpoint /api/recipes/{id}/enrich for on-demand enrichment
- Migration 0014: Add side_dishes JSONB to recipe table
- Fix schemas/__init__.py imports: restore RecipeBase/Create/Read exports, add datetime/date for PydanticOptional compatibility
- Deployed to docker-willester and migrated to alembic 0014
This commit is contained in:
2026-05-28 06:42:46 -07:00
parent de51e2e8d3
commit c364b8b222
7 changed files with 243 additions and 1 deletions
+1
View File
@@ -178,6 +178,7 @@ class Recipe(Base):
spice_level = Column(Integer)
calories_per_serving = Column(Integer)
ingredients = Column(JSONB, nullable=False)
side_dishes = Column(JSONB, default=list)
instructions = Column(ARRAY(Text), nullable=False)
source_url = Column(Text)
scraped_at = Column(DateTime(timezone=True))