Commit 38edf310 authored by Hoanganhvu123's avatar Hoanganhvu123

feat(classifier): add hard patterns for combo/sale/new arrivals

Force tool_name=lead_search_tool for:
- combo/set do/phoi do queries
- sale/giam gia/discount queries (set discount_min=1)
- moi nhat/new arrivals (set discovery_mode=new)
- best seller queries (set discovery_mode=best_seller)
Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent 48707721
......@@ -125,6 +125,17 @@ Args cho Lane 2 (`inferred`):
- `tags`, `keywords`: LUÔN suy luận tươi từ câu hỏi hiện tại.
- `literal.raw_text`: LUÔN trích từ câu hỏi hiện tại.
### 🔁 HARD PATTERNS (BẮT BUỘC GỌI TOOL — KHÔNG ĐƯỢC EARLY EXIT):
- "combo", "set đồ", "đồ đi biển", "đồ đi làm", "đồ mặc nhà", "phối đồ", "mặc gì" + context
→ BẮT BUỘC `tool_name="lead_search_tool"`, điền `product_line_vn` theo context.
→ Ví dụ: "combo đi biển" → product_line_vn=["Áo phông", "Quần soóc", "Váy liền"]
- "sale", "giảm giá", "giảm sâu", "hàng sale", "outlet", "clearance"
→ BẮT BUỘC `tool_name="lead_search_tool"`, đặt `discount_min=1`
- "mới nhất", "hàng mới về", "collection mới", "new arrivals"
→ BẮT BUỘC `tool_name="lead_search_tool"`, đặt `discovery_mode="new"`
- "bán chạy nhất", "best seller", "được mua nhiều"
→ BẮT BUỘC `tool_name="lead_search_tool"`, đặt `discovery_mode="best_seller"`
### 🔁 RECALL & ĐÍNH CHÍNH (QUAN TRỌNG):
- NẾU khách CHỈ tham chiếu SP đã có mặt trong list: "cái đầu tiên", "cái đó", "cái áo ban nãy", "lấy cái kia":
→ **ĐỌC NGAY phần "SP ĐÃ GIỚI THIỆU" trong context** để biết SP nào đã show.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment