Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- search
|
| 9 |
+
- intent-classification
|
| 10 |
+
- ecommerce
|
| 11 |
+
- query-parsing
|
| 12 |
+
- json-generation
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Search Query Parser (JSON Intent Model)
|
| 16 |
+
|
| 17 |
+
## Overview
|
| 18 |
+
|
| 19 |
+
This model converts raw e-commerce search text into structured JSON intent.
|
| 20 |
+
|
| 21 |
+
Example:
|
| 22 |
+
|
| 23 |
+
Input:
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
Output:
|
| 27 |
+
```json
|
| 28 |
+
{
|
| 29 |
+
"query": "nike sneakers",
|
| 30 |
+
"filters": {
|
| 31 |
+
"brand": ["Nike"],
|
| 32 |
+
"category": ["sneakers"],
|
| 33 |
+
"color": ["black"],
|
| 34 |
+
"size_eu": [42],
|
| 35 |
+
"price_max": 120,
|
| 36 |
+
"shipping": ["free"]
|
| 37 |
+
},
|
| 38 |
+
"sort": "relevance",
|
| 39 |
+
"page": 1,
|
| 40 |
+
"limit": 24
|
| 41 |
+
}
|