reconstruct whole recommendation pipeline and add new rec mode one-ask-for-all

This commit is contained in:
pangkaicheng
2025-12-12 17:37:07 +08:00
parent 0e9546aa1a
commit 85390d5e6d
12 changed files with 684 additions and 565 deletions

View File

@@ -40,7 +40,7 @@
## Example in `metadata_extraction.json`
```json
"EOJ367": {
"category": "shoes",
"subcategory": "necklaces",
"gender": "female",
"applicable_occasions": [
"Casual",
@@ -60,33 +60,34 @@
## Metadata in Vector Database
```json
{
'item_id': 'EOJ128',
'category': 'sunglasses',
'gender': 'unisex',
'modality': 'image',
'brand': 'CELINE',
'color': 'BROWN',
'description': "Immerse yourself in the depth of classic style with CELINE\'s Tortoiseshell Logo Sunglasses. Featuring a rich, tortoiseshell acetate frame and adorned with the iconic CELINE logo in gold, these sunglasses are a testament to timeless elegance and luxury. Perfect for those who appreciate a sophisticated aesthetic, they offer optimal UV protection while ensuring you remain at the forefront of fashion.",
'tags': 'celine,accessories,in-stock,new,maxi,triomphe,acetate,round',
'price': 4500,
'url': 'https://www.lanecrawford.com.hk/product/celine/maxi-triomphe-acetate-round-sunglasses/_/EOJ128/product.lc?utm_medium=embed&utm_source=ai-recommended&utm_campaign=2025-christmas_lc_ai-recommended',
'batch_source': '2025_q4',
'Outdoor': 0,
'Ski / Snow / Mountain': 0,
'Festival / Concert': 0,
'Activewear': 0,
'Casual': 1,
'Cocktail / Semi-Formal': -1,
'Formal': -1,
'Party / Clubbing': 0,
'Evening': 0,
'Travel / Transit': 0,
'Beach / Swim': 0,
'Garden Party / Daytime Event': 1,
'Black Tie / White Tie': -1,
'Resort': 1,
'Athleisure': 0,
'Business / workwear': -1,
'Bridal / Wedding': -1,
"item_id": "EOJ128",
"category": "accessories",
"subcategory": "eyewear",
"gender": "unisex",
"modality": "image",
"brand": "CELINE",
"color": "BROWN",
"description": "Immerse yourself in the depth of classic style with CELINE's Tortoiseshell Logo Sunglasses. Featuring a rich, tortoiseshell acetate frame and adorned with the iconic CELINE logo in gold, these sunglasses are a testament to timeless elegance and luxury. Perfect for those who appreciate a sophisticated aesthetic, they offer optimal UV protection while ensuring you remain at the forefront of fashion.",
"tags": "celine,accessories,in-stock,new,maxi,triomphe,acetate,round",
"price": 4500,
"url": "https://www.lanecrawford.com.hk/product/celine/maxi-triomphe-acetate-round-sunglasses/_/EOJ128/product.lc?utm_medium=embed&utm_source=ai-recommended&utm_campaign=2025-christmas_lc_ai-recommended",
"batch_source": "2025_q4",
"Outdoor": 0,
"Ski / Snow / Mountain": 0,
"Festival / Concert": 0,
"Activewear": 0,
"Casual": 1,
"Cocktail / Semi-Formal": -1,
"Formal": -1,
"Party / Clubbing": 0,
"Evening": 0,
"Travel / Transit": 0,
"Beach / Swim": 0,
"Garden Party / Daytime Event": 1,
"Black Tie / White Tie": -1,
"Resort": 1,
"Athleisure": 0,
"Business / workwear": -1,
"Bridal / Wedding": -1,
}
```