|
--- |
|
license: mit |
|
datasets: |
|
- BaSalam/entity-attribute-sft-dataset-GPT-4.0-generated-v1 |
|
language: |
|
- fa |
|
- en |
|
pipeline_tag: text-generation |
|
--- |
|
# Product catalog generator (V2) |
|
This is a the version 2 of [Product catalog generator](https://huggingface.co/BaSalam/Llama2-7b-entity-attr-v1). The dataset has changed with GPT-4 generated data to produce a higer quality response. |
|
## Github repo: https://github.com/basalam/product-catalog-generator |
|
|
|
|
|
|
|
## Sample input |
|
````python |
|
prompt = """instruction': \"here is a product title from a Iranian marketplace. \n give me |
|
the Product Entity and Attributes of this product in Persian language.\n give the output in |
|
this json format: {'attributes': {'attribute_name' : <attribute value>, ...}, 'product_entity': |
|
'<product entity>'}.\n Don't make assumptions about what values to plug into json. Just give |
|
Json not a single word more.\n \nproduct title:""" |
|
title = """: ست شابلون ژله ای دو قلو صریر 20سانتی 1 عدد |
|
1 عدد ست شابلون ژله ای دو قلو سریر 20سانتی متر |
|
با کیفیت مناسب و صادراتی |
|
شامل دو تکه شابلون ژله ای |
|
در چهار رنگ سبز، قرمز، نارنجی و آبی موجود است. |
|
پخش لوازم التحریر کیان"""" |
|
```` |
|
## Model response |
|
````josn |
|
{ |
|
"attributes": { |
|
"تعداد در بسته": [ |
|
"1 عدد"], |
|
"نوع": [ |
|
"ژله ای"], |
|
"تعداد قلو": [ |
|
"دو قلو"], |
|
"اندازه": [ |
|
"20 سانتی متر"], |
|
"کیفیت": [ |
|
"مناسب", |
|
"صادراتی"], |
|
"تعداد تکه": [ |
|
"دو تکه"], |
|
"رنگ": [ |
|
"سبز", |
|
"قرمز", |
|
"نارنجی", |
|
"آبی"], |
|
"برند": [ |
|
"پخش لوازم التحریر کیان"] |
|
}, |
|
"product_entity": [ |
|
"لوازم التحریر", |
|
"لوازم هنری", |
|
"شابلون", |
|
"ست شابلون ژله ای"] |
|
} |
|
```` |