SamiKoen commited on
Commit
bdfbcee
·
1 Parent(s): b430085

GOBIK ürün desteği - İspanyol tekstil markası için özel mantık

Browse files
Files changed (1) hide show
  1. smart_warehouse.py +10 -2
smart_warehouse.py CHANGED
@@ -87,10 +87,15 @@ def get_warehouse_stock_smart(user_message, previous_result=None):
87
  smart_prompt = f"""User is asking: "{user_message}"
88
 
89
  Find ALL products that match this query from the list below.
90
- If user asks about specific size (S, M, L, XL), return only that size.
91
  If user asks generally (without size), return ALL variants of the product.
92
  {warehouse_filter}
93
 
 
 
 
 
 
94
  Products list (with warehouse availability):
95
  {json.dumps(products_summary, ensure_ascii=False, indent=2)}
96
 
@@ -100,7 +105,10 @@ If no products found, return: -1
100
  Examples:
101
  - "madone sl 6 var mı" -> Return ALL Madone SL 6 variants (all sizes)
102
  - "madone sl 6 S beden" -> Return only S size variant
103
- - "alsancak şubede hangi boy var" -> Return only products available in ALSANCAK warehouse"""
 
 
 
104
 
105
  headers = {
106
  "Content-Type": "application/json",
 
87
  smart_prompt = f"""User is asking: "{user_message}"
88
 
89
  Find ALL products that match this query from the list below.
90
+ If user asks about specific size (S, M, L, XL, XXL, SMALL, MEDIUM, LARGE, X-LARGE), return only that size.
91
  If user asks generally (without size), return ALL variants of the product.
92
  {warehouse_filter}
93
 
94
+ IMPORTANT BRAND RULES:
95
+ - GOBIK: Spanish textile brand we import. When user asks about "gobik", return ALL products with "GOBIK" in the name.
96
+ - Product names may contain brand + model + color + type (e.g., "GOBIK SELKIE UNISEX OATMEAL YAĞMURLUK")
97
+ - Match partial names: "gobik yağmurluk" should find all GOBIK raincoats, "gobik selkie" should find all SELKIE models
98
+
99
  Products list (with warehouse availability):
100
  {json.dumps(products_summary, ensure_ascii=False, indent=2)}
101
 
 
105
  Examples:
106
  - "madone sl 6 var mı" -> Return ALL Madone SL 6 variants (all sizes)
107
  - "madone sl 6 S beden" -> Return only S size variant
108
+ - "alsancak şubede hangi boy var" -> Return only products available in ALSANCAK warehouse
109
+ - "gobik ürünleri" -> Return ALL products with GOBIK in name
110
+ - "gobik yağmurluk" -> Return all GOBIK products that are raincoats (YAĞMURLUK)
111
+ - "gobik large" -> Return all GOBIK products in LARGE/L/X-LARGE size"""
112
 
113
  headers = {
114
  "Content-Type": "application/json",