File size: 5,695 Bytes
e6062fe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397120f
e6062fe
397120f
 
e6062fe
397120f
 
 
 
 
 
 
 
 
e6062fe
 
397120f
 
 
e6062fe
397120f
e6062fe
 
 
397120f
 
 
 
e6062fe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397120f
e6062fe
397120f
 
e6062fe
 
 
 
 
1e13908
 
 
 
 
 
 
 
 
 
e6062fe
cc4b05d
 
 
66dbe74
1e13908
cc4b05d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1e13908
 
cc4b05d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1e13908
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
---
dataset_info:
  features:
  - name: main_category
    dtype: string
  - name: title
    dtype: string
  - name: average_rating
    dtype: float64
  - name: rating_number
    dtype: int64
  - name: features
    sequence: string
  - name: description
    sequence: string
  - name: price
    dtype: string
  - name: images
    struct:
    - name: hi_res
      sequence: string
    - name: large
      sequence: string
    - name: thumb
      sequence: string
    - name: variant
      sequence: string
  - name: videos
    struct:
    - name: title
      sequence: string
    - name: url
      sequence: string
    - name: user_id
      sequence: string
  - name: store
    dtype: string
  - name: categories
    sequence: string
  - name: details
    dtype: string
  - name: parent_asin
    dtype: string
  - name: bought_together
    dtype: 'null'
  - name: subtitle
    dtype: string
  - name: author
    dtype: string
  - name: reviews
    list:
    - name: asin
      dtype: string
    - name: helpful_vote
      dtype: int64
    - name: images
      list:
      - name: attachment_type
        dtype: string
      - name: large_image_url
        dtype: string
      - name: medium_image_url
        dtype: string
      - name: small_image_url
        dtype: string
    - name: parent_asin
      dtype: string
    - name: rating
      dtype: float64
    - name: text
      dtype: string
    - name: timestamp
      dtype: int64
    - name: title
      dtype: string
    - name: user_id
      dtype: string
    - name: verified_purchase
      dtype: bool
  - name: qa_pairs
    list:
    - name: answers
      list:
      - name: answer
        dtype: string
      - name: candidate
        dtype: string
      - name: label
        dtype: int64
    - name: question
      dtype: string
  - name: asin
    dtype: string
  splits:
  - name: train
    num_bytes: 596400838
    num_examples: 2980
  download_size: 317160149
  dataset_size: 596400838
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
task_categories:
- text-generation
- text2text-generation
- question-answering
language:
- en
tags:
- qa
size_categories:
- 1K<n<10K
---

# Amazon Combined Dataset

E-commerce dataset that combines metadata, reviews, and sample question/answer pairs. `combined.json` contains the dataset and `user2asin.json` contains a file that maps user_id from reviews to an ASIN for capturing user preferences.

## Data Fields

| Field | Type |  Explanation |
| ----- | ---- | ----------- |
| main_category | str | Main category (i.e., domain) of the product. |
| title | str | Name of the product. |
| average_rating | float | Rating of the product shown on the product page. |
| rating_number | int | Number of ratings in the product. |
| features | list | Bullet-point format features of the product. |
| description | list | Description of the product. |
| price  | float | Price in US dollars (at time of crawling). |
| images | list |  Images of the product. Each image has different sizes (thumb, large, hi_res). The “variant” field shows the position of image. |
| videos | list | Videos of the product including title and url. |
| store | str | Store name of the product. |
| categories | list | Hierarchical categories of the product. |
| details | dict | Product details, including materials, brand, sizes, etc. |
| asin | str | ID of the product. |
| parent_asin | str | Parent ID of the product (should be same as ASIN) |
| bought_together | list | Recommended bundles from the websites. |
| reviews | list[[Review](#for-user-reviews)] | List of User Reviews, see below. |
| qa_pairs | list[str, list[[Answers](#for-answers)]] | List with question text and list of Answers, see below. |

### For User Reviews

| Field | Type |  Explanation |
| ----- | ---- | ----------- |
| rating | float | Rating of the product (from 1.0 to 5.0). |
| title  | str | Title of the user review. |
| text   | str | Text body of the user review. |
| images | list | Images that users post after they have received the product. Each image has different sizes (small, medium, large), represented by the small_image_url, medium_image_url, and large_image_url respectively. |
| asin  | str | ID of the product. |
| parent_asin | str | Parent ID of the product. Note: Products with different colors, styles, sizes usually belong to the same parent ID. The “asin” in previous Amazon datasets is actually parent ID. <b>Please use parent ID to find product meta.</b> |
| user_id | str | ID of the reviewer |
| timestamp | int | Time of the review (unix time) |
| verified_purchase | bool | User purchase verification |
| helpful_vote | int | Helpful votes of the review |

### For Answers

| Field | Type |  Explanation |
| ----- | ---- | ----------- |
| answer | str | manually written natural-sounding answer if label >= 1 |
| candidate | str | Text used to justify answer |
| label | int | 2 means fully answering, 1 means helpful but not fully answering, 0 means irrelevant |

## Datasets Used

[Amazon Reviews 2023](https://huggingface.co/datasets/McAuley-Lab/Amazon-Reviews-2023)
```
@article{hou2024bridging,
  title={Bridging Language and Items for Retrieval and Recommendation},
  author={Hou, Yupeng and Li, Jiacheng and He, Zhankui and Yan, An and Chen, Xiusi and McAuley, Julian},
  journal={arXiv preprint arXiv:2403.03952},
  year={2024}
}
```
[ePQA](https://github.com/amazon-science/contextual-product-qa)
```
@article{shen2023xpqa,
  title={xPQA: Cross-Lingual Product Question Answering across 12 Languages},
  author={Shen, Xiaoyu and Asai, Akari and Byrne, Bill and de Gispert, Adri{\`a}},
  journal={arXiv preprint arXiv:2305.09249},
  year={2023}
}
```