Add Dagster orchestration and reduce active brands in backend

This commit is contained in:
sriram
2026-08-20 16:39:54 +05:30
parent fbb1356e47
commit 7bf8dc6922
66 changed files with 2664 additions and 21 deletions

View File

View File

@@ -0,0 +1,24 @@
# Archived seed catalogs
These brands are **not deleted** - they are inactive.
The application works on the brands listed in `ACTIVE_BRANDS` (see
`backend/.env` and `app/services/active_brands.py`). Catalogs for every other
brand live here so the boot auto-seed does not parse ~19MB of JSON and does not
create a `brand_*` table for a brand nobody is developing against.
`brand_sync.seed_catalog_paths()` reads this directory too, so **re-activating a
brand needs only a config change** - the file does not have to be moved back:
```
ACTIVE_BRANDS=Amul,Cadbury,Hindustan Unilever,Nestle
```
...then restart the API (or `POST /api/system/init`) and Nestle is seeded and
served again.
Their `brand_*` tables and embeddings were never dropped; they are still in
Postgres, just filtered out of discovery.
Moving a file back into the parent directory is optional tidiness, not a
requirement.

View File

@@ -0,0 +1,66 @@
{
"brand": "lion dates",
"search_query": "Lion Dates products catalog",
"generation_timestamp": "C:\\Brand_Catalog_LLM\\RAG_Model_Nutrition_Intelligence\\RAG_Model_Full_Implement\\backend\\app\\api\\routers\\user_products.py",
"total_products": 1,
"total_images": 10,
"products": [
{
"image_id": "lion_dates_lion_dates_450g",
"product_name": "Lion Dates 450g",
"title": "Lion Dates 450g",
"brand": "Lion Dates",
"brand_name": "Lion Dates",
"category": "Health Foods",
"description": "Introducing Lion Dates 450g from the trusted Lion Dates brand. A premium quality product offering superior taste, authentic ingredients, and reliable value. Backed by Lion Dates's reputation for quality and consistency.",
"price_range": "₹160-220",
"size_variants": [
"450g"
],
"providers": [
"Amazon",
"Flipkart",
"BigBasket"
],
"highlights": [
"lion dates Brand - Trusted Quality",
"Food - Spreads Category",
"Affordable at ₹9-11",
"Available in 10g",
"Premium Quality",
"Available on 3 platforms"
],
"nutrients": [
"Vitamin E - Antioxidant protection",
"Omega-3 - Heart health",
"Dietary Fiber - Digestive health",
"Protein - Muscle building",
"Magnesium - Muscle function",
"Carbohydrates - Quick energy",
"Healthy Fats - Heart health"
],
"fssai_license": "10012042000244",
"product_sku": "LION-LION_D-001",
"sku_source": "User Upload",
"hsn_code": "2008",
"final_selling_price": 185.0,
"selling_price": 185.0,
"barcode": "20086040",
"barcode_type": "GTIN-13",
"image_url": "https://liondates.com/cdn/shop/files/1.Datesinhoney_productfocus.png?v=1773383963&width=1445",
"image_urls": [
"https://liondates.com/cdn/shop/files/1.Datesinhoney_productfocus.png?v=1773383963&width=1445",
"https://liondates.com/cdn/shop/files/dateshoney_1.jpg?v=1739704587&width=1080",
"https://liondates.com/cdn/shop/files/Lion-Fig-in-Honey-Lion-Dates-95545533.jpg?v=1716380700&width=720",
"https://liondates.com/cdn/shop/files/Lion-Fig-in-Honey-Lion-Dates-95545649.jpg?v=1739705462&width=1080",
"http://liondates.com/cdn/shop/files/Lion-Mixed-Nuts-in-Honey-Lion-Dates-95787173.jpg?v=1716438485",
"http://liondates.com/cdn/shop/files/Lion-Amla-in-Honey-Lion-Dates-95589650.jpg?v=1716381007",
"https://liondates.com/cdn/shop/files/2.Datesinhoney_benefits.png?v=1773383963&width=390",
"https://liondates.com/cdn/shop/files/Arabian_dates_500g_front.png?v=1739617157&width=1838",
"https://liondates.com/cdn/shop/files/Sukkari_dates_front.png?v=1739615376&width=2048",
"https://5.imimg.com/data5/SELLER/Default/2023/6/312791417/NH/RZ/CD/180805796/lion-honey-dates-250x250.webp"
],
"search_query": "Lion Dates Lion Dates 450g Health Foods Introducing Lion Dates 450g from the trusted Lion Dates brand. A premium quality product offering superior taste, authentic ingredients, and reliable value. Backed by Lion Dates's reputation for quality and consistency. ₹160-220"
}
]
}