Ürün tipi anlama - forma, tayt, içlik, yağmurluk vb. tanıma
Browse files- smart_warehouse.py +15 -9
smart_warehouse.py
CHANGED
@@ -91,10 +91,16 @@ If user asks about specific size (S, M, L, XL, XXL, SMALL, MEDIUM, LARGE, X-LARG
|
|
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
|
97 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
Products list (with warehouse availability):
|
100 |
{json.dumps(products_summary, ensure_ascii=False, indent=2)}
|
@@ -103,12 +109,12 @@ Return index numbers of ALL matching products as comma-separated list (e.g., "5,
|
|
103 |
If no products found, return: -1
|
104 |
|
105 |
Examples:
|
106 |
-
- "madone sl 6 var mı" -> Return ALL Madone SL 6 variants
|
107 |
-
- "
|
108 |
-
- "
|
109 |
-
- "
|
110 |
-
- "gobik
|
111 |
-
- "
|
112 |
|
113 |
headers = {
|
114 |
"Content-Type": "application/json",
|
|
|
91 |
If user asks generally (without size), return ALL variants of the product.
|
92 |
{warehouse_filter}
|
93 |
|
94 |
+
IMPORTANT BRAND AND PRODUCT TYPE RULES:
|
95 |
- GOBIK: Spanish textile brand we import. When user asks about "gobik", return ALL products with "GOBIK" in the name.
|
96 |
+
- Product names contain type information: FORMA (jersey/cycling shirt), TAYT (tights), İÇLİK (base layer), YAĞMURLUK (raincoat), etc.
|
97 |
+
- Understand Turkish/English terms:
|
98 |
+
* "erkek forma" / "men's jersey" -> Find products with FORMA in name
|
99 |
+
* "tayt" / "tights" -> Find products with TAYT in name
|
100 |
+
* "içlik" / "base layer" -> Find products with İÇLİK in name
|
101 |
+
* "yağmurluk" / "raincoat" -> Find products with YAĞMURLUK in name
|
102 |
+
- Gender: UNISEX means for both men and women. If no gender specified, it's typically men's.
|
103 |
+
- Be smart: "erkek forma" should find all FORMA products (excluding women-specific if any)
|
104 |
|
105 |
Products list (with warehouse availability):
|
106 |
{json.dumps(products_summary, ensure_ascii=False, indent=2)}
|
|
|
109 |
If no products found, return: -1
|
110 |
|
111 |
Examples:
|
112 |
+
- "madone sl 6 var mı" -> Return ALL Madone SL 6 variants
|
113 |
+
- "erkek forma" -> Return all products with FORMA in name
|
114 |
+
- "gobik tayt" -> Return all GOBIK products with TAYT in name
|
115 |
+
- "içlik var mı" -> Return all products with İÇLİK in name
|
116 |
+
- "gobik erkek forma" -> Return all GOBIK products with FORMA in name
|
117 |
+
- "yağmurluk medium" -> Return all YAĞMURLUK products in MEDIUM size"""
|
118 |
|
119 |
headers = {
|
120 |
"Content-Type": "application/json",
|