mfsadi commited on
Commit
05a73db
1 Parent(s): 481513a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -1
README.md CHANGED
@@ -9,4 +9,33 @@ language:
9
  # Product catalog generator
10
 
11
  This is a custom LLM fine tuned on LLama 2 based on [Basalam](https://basalam.com) products to infer enitty (product types) and attributes based on product data. You can use it on any similar dataset.
12
- ## Github repo: https://github.com/basalam/product-catalog-generator
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  # Product catalog generator
10
 
11
  This is a custom LLM fine tuned on LLama 2 based on [Basalam](https://basalam.com) products to infer enitty (product types) and attributes based on product data. You can use it on any similar dataset.
12
+ ## Github repo: https://github.com/basalam/product-catalog-generator
13
+
14
+
15
+
16
+ ## Sample input
17
+ ````python
18
+ prompt = """instruction': \"here is a product title from a Iranian marketplace. \n give me
19
+ the Product Entity and Attributes of this product in Persian language.\n give the output in
20
+ this json format: {'attributes': {'attribute_name' : <attribute value>, ...}, 'product_entity':
21
+ '<product entity>'}.\n Don't make assumptions about what values to plug into json. Just give
22
+ Json not a single word more.\n \nproduct title:"""
23
+ title = "": ست شابلون ژله ای دو قلو صریر 20سانتی 1 عدد
24
+ 1 عدد ست شابلون ژله ای دو قلو سریر 20سانتی متر
25
+ با کیفیت مناسب و صادراتی
26
+ شامل دو تکه شابلون ژله ای
27
+ در چهار رنگ سبز، قرمز، نارنجی و آبی موجود است.
28
+ پخش لوازم التحریر کیان""
29
+ ````
30
+ ## Model response
31
+ ````josn
32
+ {
33
+ "attributes": {
34
+ "تعداد تکه": "2",
35
+ "طول": "20 سانتی‌متر",
36
+ "رنگ‌ها": "سبز، قرمز، نارنجی، آبی",
37
+ "کیفیت": "مناسب و صادراتی"
38
+ },
39
+ "product_entity": "ست شابلون ژله ای"
40
+ }
41
+ ````