teenaxta commited on
Commit
7baafc3
·
verified ·
1 Parent(s): a2d4a76

Upload 15 files

Browse files
README.md CHANGED
@@ -1,13 +1,78 @@
1
  ---
2
  title: Otoz Smart Search
3
- emoji: 📚
4
- colorFrom: green
5
  colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 4.43.0
8
  app_file: app.py
9
  pinned: false
10
- license: cc-by-4.0
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  title: Otoz Smart Search
3
+ emoji: 👁
4
+ colorFrom: pink
5
  colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 4.43.0
8
  app_file: app.py
9
  pinned: false
10
+ license: cc-by-nc-2.0
11
  ---
12
 
13
+ # Smart Search
14
+
15
+ This project implements a Mini GPT model using FastAPI, Langchain, and Docker.
16
+
17
+ ## Prerequisites
18
+
19
+ - Docker
20
+ - Docker Compose
21
+
22
+ ## Setup
23
+
24
+ 1. Clone the repository:
25
+ ```
26
+ git clone https://github.com/netsol-research/smart-search
27
+ cd smart-search
28
+ ```
29
+
30
+ 2. Create a `.env` file in the project root and add your environment variables:
31
+ ```
32
+ AWS_ACCESS_KEY_ID=your_aws_access_key
33
+ AWS_SECRET_ACCESS_KEY=your_aws_secret_key
34
+ AWS_DEFAULT_REGION=your_aws_region
35
+ OPENAI_API_KEY=your_openai_api_key
36
+ PINECONE_API_KEY=your_pinecone_api_key
37
+ ```
38
+
39
+ 3. Copy the `.env` file to the `docker` folder:
40
+ ```
41
+ cp .env docker/.env
42
+ ```
43
+
44
+ 4. Create a virtual environment (optional but recommended):
45
+ ```
46
+ python -m venv env
47
+ source env/bin/activate # On Windows, use `env\Scripts\activate`
48
+ ```
49
+
50
+ 5. Install the required packages:
51
+ ```
52
+ pip install -r requirements.txt
53
+ ```
54
+
55
+ ## Running the Application
56
+
57
+ To build and run the Docker container:
58
+
59
+ 1. Navigate to the project root directory:
60
+ ```
61
+ cd smart-search
62
+ ```
63
+
64
+ 2. Build and start the Docker containers:
65
+ ```
66
+ docker-compose up --build
67
+ ```
68
+
69
+ This command will build the Docker image and start the containers defined in the `docker-compose.yml` file.
70
+
71
+ 3. Once the containers are running, you can access the API at `http://localhost:8000`
72
+
73
+ To stop the containers, use:
74
+ ```
75
+ docker-compose down
76
+ ```
77
+
78
+ This will stop and remove the containers, networks, and volumes created by the `docker-compose.yml` file.
dataset/car_specs.py ADDED
@@ -0,0 +1,1529 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ inventory = {
2
+ 0: {
3
+ "make": "mini",
4
+ "model": "COUNTRYMAN S ALL4",
5
+ "year": 2025,
6
+ "base_price":38900,
7
+ "variants": {
8
+ "SIGNATURE PLUS": {
9
+ "features": [
10
+ "Choice of 18” Wheels",
11
+ "Panoramic Moonroof",
12
+ "MINI Navigation",
13
+ "MINI Head Up Display",
14
+ "Heated Front Seats",
15
+ "Heated Steering Wheel",
16
+ "Parking Assistant",
17
+ "Wireless Charging",
18
+ "Alarm System",
19
+ "Remote Engine Start",
20
+ "Comfort Package",
21
+ "Choice of Classic or Favoured Style",
22
+ ],
23
+ "price": 38900,
24
+ },
25
+ "ICONIC": {
26
+ "features": [
27
+ "Panoramic Moonroof",
28
+ "MINI Navigation",
29
+ "MINI Head Up Display",
30
+ "Heated Front Seats",
31
+ "Heated Steering Wheel",
32
+ "Parking Assistant",
33
+ "Wireless Charging",
34
+ "Alarm System",
35
+ "Remote Engine Start",
36
+ "Comfort Package",
37
+ "Choice of Classic or Favoured Style",
38
+ "Choice of 18” or 19” Wheels",
39
+ "Power Front Seats",
40
+ "Interior Camera",
41
+ "harman / kardon Premium Sound System",
42
+ "Navigation with Augmented Reality",
43
+ "Driving Assistant Plus",
44
+ "Parking Assistant Plus",
45
+ "Comfort Package Plus",
46
+ "Choice of Classic or Favoured Style",
47
+ ],
48
+ "price": 42100,
49
+ },
50
+ },
51
+ "add_ons": {
52
+ "COMFORT PACKAGE PLUS": {
53
+ "pric e": 1500,
54
+ "features": [
55
+ "Auto-dimming rearview mirror",
56
+ "Parking Assistant Plus",
57
+ "Auto-dimming interior and exterior mirrors",
58
+ "MINI Navigation AR",
59
+ "Wireless Device Charging",
60
+ ],
61
+ },
62
+ "Comfort Package Max": {
63
+ "price": 2400,
64
+ "features": [
65
+ "Auto-dimming rearview mirror",
66
+ "Parking Assistant Plus",
67
+ "Auto-dimming interior and exterior mirrors",
68
+ "MINI Navigation AR",
69
+ "Wireless Device Charging",
70
+ "Active Driving Assistant Pro",
71
+ ],
72
+ },
73
+ },
74
+ "description": "Compared to Mini's more petite models, the Countryman SUV looks downright plus-sized. While it's the brand's biggest model, it's still considered a small SUV even if the new 2025 Countryman features a more spacious interior than before. The new Countryman stays true to Mini's traditional styling cues but its freshened styling is updated for the modern era. The interior is more modern too, with sustainable materials, a fabric-trimmed dashboard, a circular infotainment display, and simplified controls. The 2025 Countryman rides on the same platform as the BMW X1, and it shares that SUV's 241-hp turbocharged 2.0-liter inline-four engine; all-wheel drive—which Mini calls All4—is standard. Mini also sells an EV model as well as a high-performance John Cooper Works variant, both of which we review separately.",
75
+ "specifications": {
76
+ "Model": "2025 Mini Countryman S All4",
77
+ "Vehicle Type": "front-engine, all-wheel-drive, 5-passenger, 4-door wagon",
78
+ "Engine": {
79
+ "Type": "turbocharged and intercooled DOHC 16-valve inline-4",
80
+ "Material": "aluminum block and head",
81
+ "Fuel Injection": "direct",
82
+ "Displacement": {"in3": 122, "cm3": 1998},
83
+ "Power": "241 hp @ 4500 rpm",
84
+ "Torque": "295 lb-ft @ 1500 rpm",
85
+ },
86
+ "Transmission": {"Type": "7-speed dual-clutch automatic"},
87
+ "Dimensions": {
88
+ "Wheelbase": "106.0 in",
89
+ "Length": "175.0 in",
90
+ "Width": "72.6 in",
91
+ "Height": "65.2 in",
92
+ "Passenger Volume": {"Front": "53 ft3", "Rear": "44 ft3"},
93
+ "Cargo Volume": {"Behind Front": "56 ft3", "Behind Rear": "25 ft3"},
94
+ "Curb Weight (C/D est)": "3800 lb",
95
+ },
96
+ "Performance (C/D est)": {
97
+ "0-60 mph": "6.0 sec",
98
+ "1/4-Mile": "14.4 sec",
99
+ "Top Speed": "130-150 mph",
100
+ },
101
+ "EPA Fuel Economy": {
102
+ "Combined": "27 mpg",
103
+ "City": "24 mpg",
104
+ "Highway": "32 mpg",
105
+ },
106
+ },
107
+ "info": """
108
+ The 2025 MINI Countryman S has undergone significant changes, making it a noteworthy entry in the small SUV market. Here’s a detailed review based on recent insights.
109
+ Performance and Powertrain
110
+ The Countryman S is equipped with a 2.0-liter turbocharged inline-four engine, producing 241 horsepower and 295 lb-ft of torque. This marks a substantial increase in power compared to its predecessor, enhancing its performance capabilities. The engine is paired with a seven-speed dual-clutch transmission, which is a significant upgrade over the previous model's eight-speed automatic, providing smoother and more responsive shifting
111
+ 3
112
+ .
113
+ Design and Interior
114
+ The 2025 model features a more boxy and upright design compared to the previous generation's rounder aesthetics. This change not only gives it a modern look but also contributes to a more spacious interior. The Countryman has grown in size, now measuring about 5 inches longer, which enhances passenger comfort and cargo capacity
115
+ 3
116
+ .
117
+ Inside, the Countryman S boasts a 9.4-inch OLED touchscreen display, integrating the latest iDrive 9 system with Google’s embedded operating system. This system centralizes all vehicle information, including speed and fuel levels, and supports both Apple CarPlay and Android Auto
118
+ 3
119
+ . The cabin is designed with premium materials, and options like massaging seats and augmented reality navigation add to the luxurious feel.
120
+ Driving Experience
121
+ While the increased power and size are commendable, some reviews suggest that the driving experience may feel less engaging than previous models. The recalibrated suspension offers better fluidity, but the overall handling has been described as less "go-kart-like," which is a hallmark of the MINI brand. Enthusiasts may find the driving dynamics somewhat muted, especially in comparison to earlier iterations.
122
+ Technology and Features
123
+ The Countryman S comes equipped with advanced technology, including Level 2 autonomous driving capabilities, which allow for hands-free driving under certain conditions. Safety features have also been enhanced, making it a more modern and tech-savvy option in the small SUV segment.
124
+ Pricing and Market Position
125
+ Starting at $38,900 for the base all-wheel-drive model, the Countryman S is positioned competitively within its class. However, with the addition of options and packages, the price can escalate significantly, making it a premium offering compared to other small SUVs.
126
+ Conclusion
127
+ The 2025 MINI Countryman S represents a blend of power, technology, and modern design, appealing to a broader audience. While it may not fully satisfy traditional MINI enthusiasts seeking a spirited driving experience, its enhancements in comfort, technology, and performance are likely to attract new buyers looking for a stylish and functional small SUV. Overall, it stands out as a solid choice in its category, albeit with a shift in focus from pure driving pleasure to a more refined and comfortable experience
128
+ """,
129
+ },
130
+ 1: {
131
+ "make": "mini",
132
+ "model": "HARDTOP 4 DOOR Cooper",
133
+ "year": 2025,
134
+ "base_price":26800,
135
+ "variants": {
136
+ "Classic": {
137
+ "features": [
138
+ "Choice of 3 exterior colors",
139
+ "Carbon Black Leatherette interior",
140
+ "15” Heli Spoke Wheels",
141
+ "6 Speed Manual transmission",
142
+ "Touchscreen media display",
143
+ "Apple CarPlay compatible",
144
+ "Active driving assistant",
145
+ "LED Headlights",
146
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
147
+ ],
148
+ "price": 26800,
149
+ },
150
+ "Signature": {
151
+ "features": [
152
+ "Choice of 3 exterior colors",
153
+ "Carbon Black Leatherette interior",
154
+ "6 Speed Manual transmission",
155
+ "Touchscreen media display",
156
+ "Apple CarPlay compatible",
157
+ "Active driving assistant",
158
+ "LED Headlights",
159
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
160
+ "Choice of multiple exterior and roof/mirror colors",
161
+ "16” Wheels in Grey or Black",
162
+ "All-season runflat tires",
163
+ "6 Speed Manual or 7-Speed Dual-Clutch transmission",
164
+ "Comfort Access Keyless Entry",
165
+ "MINI Navigation",
166
+ "Panoramic moonroof",
167
+ "Heated front seats",
168
+ "Dual zone climate control",
169
+ ],
170
+ "price": 31800,
171
+ },
172
+ "Iconic": {
173
+ "features": [
174
+ "Choice of 3 exterior colors",
175
+ "Carbon Black Leatherette interior",
176
+ "6 Speed Manual transmission",
177
+ "Touchscreen media display",
178
+ "Apple CarPlay compatible",
179
+ "Active driving assistant",
180
+ "LED Headlights",
181
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
182
+ "Choice of multiple exterior and roof/mirror colors",
183
+ "All-season runflat tires",
184
+ "6 Speed Manual or 7-Speed Dual-Clutch transmission",
185
+ "Comfort Access Keyless Entry",
186
+ "MINI Navigation",
187
+ "Panoramic moonroof",
188
+ "Heated front seats",
189
+ "Dual zone climate control",
190
+ "Additional paint and roof/mirror color options",
191
+ "Choice of premium/leather interior upholstery",
192
+ "Choice of 17” wheels",
193
+ "Nappa Leather Steering Wheel",
194
+ "Anthracite Headliner",
195
+ "Universal Garage Door Opener",
196
+ "Wireless charging",
197
+ ],
198
+ "price": 34200,
199
+ },
200
+ },
201
+ "add_ons": {
202
+ "Signature Upholstery": {
203
+ "features": """Fine-tune this package to include the features you want. Choose from the available options below, then click "Add To Build" to continue. Option images may represent an alternate vehicle than the one being configured.""",
204
+ "price": 1750,
205
+ }
206
+ },
207
+ "description": """The Mini Cooper is not just a car or a statement; it's a commitment to fun. And the four-door Hardtop is a commitment to sharing that fun with more people. For an idea of how many personalization options Mini offers on the four-door Cooper Hardtop, consider this: Buyers can choose from three British flag motifs just for the side mirrors. There's a full-color Union Jack, a grayscale version, and a blacked-out version Mini calls the Night Jack. The roof can be body color, white, silver, black, or three different gradients that fade either from blue, white or red above the windshield to black at the rear of the car. If you want to stand out, there's no reason you can't in the Cooper Hardtop 4 Door.""",
208
+ "specifications": {
209
+ "Overview": {
210
+ "Engine Type": "Gas",
211
+ "Transmission": "6-speed manual",
212
+ "Drive Type": "Front wheel drive",
213
+ "Cylinders": "Inline 3",
214
+ "Total Seating": 5,
215
+ "Basic Warranty": "4 yr./ 50,000 mi.",
216
+ },
217
+ "Fuel & MPG": {
218
+ "Fuel Type": "Premium unleaded (recommended)",
219
+ "EPA City MPG": 27,
220
+ "EPA Highway MPG": 38,
221
+ "EPA Combined MPG": 31,
222
+ "Range in Miles": {"City": 313.2, "Highway": 440.8},
223
+ "Fuel Tank Capacity": "11.6 gal.",
224
+ },
225
+ "Engine": {
226
+ "Base Engine Size": "1.5 L",
227
+ "Cylinders": "Inline 3",
228
+ "Base Engine Type": "Gas",
229
+ "Horsepower": "134 hp @ 4,500 rpm",
230
+ "Torque": "162 lb-ft @ 1,480 rpm",
231
+ "Valves": 12,
232
+ "Cam Type": "Double overhead cam (DOHC)",
233
+ "Valve Timing": "Variable",
234
+ "Direct Injection": "Standard",
235
+ },
236
+ "Towing & Hauling": {"Max Payload Capacity": "838 lbs."},
237
+ "Drivetrain": {
238
+ "Transmission": "6-speed manual",
239
+ "Drive Type": "Front wheel drive",
240
+ },
241
+ "Suspension": {
242
+ "Four-Wheel Independent Suspension": "Standard",
243
+ "Front and Rear Stabilizer Bar": "Standard",
244
+ },
245
+ },
246
+ "info": """
247
+ 2024 MINI HARDTOP 4 DOOR REVIEW
248
+ 2024 MINI Hardtop 4 Door Interior
249
+ INTERIOR FEATURES
250
+
251
+ The 2024 MINI Hardtop 4 Door showcases an interior defined by charming quirkiness, though this distinctive character sometimes comes at the expense of straightforward usability. Hardtop models, however, compensate with increased practicality within their hatchback designs, making them more versatile. As a standard offering, all Mini Cooper models include an 8.8-inch infotainment display and a digital gauge cluster, underscoring their commitment to modern technology integration. SiriusXM satellite radio enhances the entertainment experience, ensuring a wide range of options for onboard enjoyment. While the standard features are generous, it's noteworthy that specific amenities like Apple CarPlay, in-dash navigation, or wireless phone charging are available as optional upgrades.
252
+
253
+ EXTERIOR FEATURES
254
+
255
+ The 2024 MINI Hardtop 4 Door showcases a distinct and captivating exterior design that captures attention from all angles. Bold features, including the classic circular headlights and upright grille, complement its iconic compact proportions. The smooth lines and playful curves convey a sense of youthful energy and dynamic movement, making it a standout in urban settings. The vibrant colors and contrasting roof options allow for personalization, ensuring each MINI Hardtop 4 Door reflects its owner's style. This iteration maintains the MINI's timeless appeal while incorporating modern touches, such as LED lighting elements. The overall design pays homage to its heritage and establishes a contemporary presence, perfectly blending aesthetics with functionality for a distinctive and memorable look.
256
+
257
+ Contact UsView Inventory
258
+ The 2024 MINI Cooper Countryman Exterior
259
+ PERFORMANCE
260
+
261
+ The 2024 MINI Cooper Countryman Performance
262
+ The 2024 MINI Hardtop 4 Door offers spirited performance with its standard 134-hp turbocharged 1.5-liter three-cylinder engine. This powertrain, tailored for the vehicle's small size and lightweight build, delivers an impressive balance of agility and responsiveness. With its front-wheel-drive configuration, the MINI Hardtop 4 Door offers nimble handling, making urban driving a breeze and winding roads a joy. The engine's 134 horsepower provides ample pep, ensuring a dynamic driving experience that matches its iconic design. This combination of compact power and lightweight design results in a vehicle that effortlessly maneuvers through various scenarios, making it well-suited for city commuting and spirited weekend drives.
263
+
264
+ TECHNOLOGY FEATURES
265
+
266
+ Apple CarPlay
267
+ APPLE CARPLAY
268
+
269
+ The 2024 MINI Cooper Hardtop 4 Door offers Apple CarPlay compatibility, seamlessly integrating your iPhone into the infotainment system and granting access to apps, navigation, and communication for a connected driving experience. 8.8 Inch Touchscreen Display
270
+ 8.8-INCH TOUCHSCREEN DISPLAY
271
+
272
+ The 2024 MINI Cooper Hardtop 4 Door integrates an 8.8" Touchscreen Display, providing an intuitive interface for infotainment and connectivity, enhancing the driving experience with modern technology at your fingertips. Digital Instrumental Cluster
273
+ DYNAMIC DIGITAL INSTRUMENT CLUSTER
274
+
275
+ The 2024 MINI Cooper Hardtop 4 Door boasts a Dynamic Digital Instrument Cluster, a high-tech interface presenting vital driving information with customizable displays, enhancing the driver's engagement and experience.
276
+ """,
277
+ "img_path":"data/images/hardtop_4_door_cooper.jpg",
278
+ },
279
+ 2: {
280
+ "make": "mini",
281
+ "model": "COOPER SE",
282
+ "year": 2025,
283
+ "base_price":30900,
284
+ "variants": {
285
+ "Classic": {
286
+ "features": [
287
+ "Choice of 3 exterior colors",
288
+ "Carbon Black Leatherette interior",
289
+ "16” Revolite Spoke Grey Wheels",
290
+ "Performance Summer tires",
291
+ "Single Speed Automatic transmission",
292
+ "Comfort Access Keyless Entry",
293
+ "Apple CarPlay compatible",
294
+ "Active driving assistant",
295
+ "LED Headlights",
296
+ "MINI Navigation",
297
+ "Advanced real-time traffic",
298
+ "Dual zone climate control",
299
+ "Heated front seats",
300
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
301
+ ],
302
+ "price": 30900,
303
+ },
304
+ "Signature": {
305
+ "features": [
306
+ "Choice of 3 exterior colors",
307
+ "Carbon Black Leatherette interior",
308
+ "Performance Summer tires",
309
+ "Single Speed Automatic transmission",
310
+ "Comfort Access Keyless Entry",
311
+ "Apple CarPlay compatible",
312
+ "Active driving assistant",
313
+ "LED Headlights",
314
+ "MINI Navigation",
315
+ "Advanced real-time traffic",
316
+ "Dual zone climate control",
317
+ "Heated front seats",
318
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
319
+ "Choice of multiple exterior and roof colors",
320
+ "Choice of 16” or 17” wheels",
321
+ "Performance Summer tires",
322
+ "Panoramic moonroof",
323
+ "Auto dimming / power folding mirrors",
324
+ "Choice of interior surface",
325
+ ],
326
+ "price": 34225,
327
+ },
328
+ "Iconic": {
329
+ "features": [
330
+ "Choice of 3 exterior colors",
331
+ "Carbon Black Leatherette interior",
332
+ "Performance Summer tires",
333
+ "Single Speed Automatic transmission",
334
+ "Comfort Access Keyless Entry",
335
+ "Apple CarPlay compatible",
336
+ "Active driving assistant",
337
+ "LED Headlights",
338
+ "MINI Navigation",
339
+ "Advanced real-time traffic",
340
+ "Dual zone climate control",
341
+ "Heated front seats",
342
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
343
+ "Choice of multiple exterior and roof colors",
344
+ "Choice of 16” or 17” wheels",
345
+ "Performance Summer tires",
346
+ "Panoramic moonroof",
347
+ "Auto dimming / power folding mirrors",
348
+ "Choice of interior surface",
349
+ "Additional paint and roof color options",
350
+ "Choice of premium/leather interior upholstery",
351
+ "Choice of 16” or 17” wheels",
352
+ "Performance Summer tires",
353
+ "Piano Black exterior trim",
354
+ "Nappa Leather Steering Wheel",
355
+ "Active cruise control",
356
+ "Universal garage door opener",
357
+ "Head-Up display",
358
+ "Parking Assistant",
359
+ ],
360
+ "price": 36700,
361
+ },
362
+ },
363
+ "add_ons": {
364
+ "Signature Upholstery": {
365
+ "features": """Fine-tune this package to include the features you want. Choose from the available options below, then click "Add To Build" to continue. Option images may represent an alternate vehicle than the one being configured.""",
366
+ "price": 1750,
367
+ }
368
+ },
369
+ "description": """With a spunky driving character, an attractive exterior design, and an affordable price tag, the quirky and charming Mini Cooper Electric certainly has some advantages over rival electric cars. Unfortunately, its paltry driving range isn't one of them, as the Cooper Electric can only go about half as far per charge as other low-cost options such as the Chevrolet Bolt EV and the Nissan Leaf. It's more fun to drive than those offerings, however, and its acceleration times are about the same as the gasoline-powered Mini models. Plenty of creature comforts are included as standard, and the Cooper Electric comes with plenty of driver-assistance tech, too. If it weren't for its relatively short driving range, the Cooper Electric could be a winning choice for drivers looking to switch to an EV, but it simply doesn't have what it takes to compete with what the leaders in the electric car category have to offer.""",
370
+ "info": """
371
+ This latest Mini Cooper Electric isn’t just a new small electric car on the scene – it’s the embodiment of a change in tack for the Munich Oxford-based manufacturer. Since the turn of the century, the brand has regularly dipped into its past to market its stock, with chrome aplenty across the range and retro interior trims to match. But this latest model has the look and feel of a wholly modern car – one that’s dismissed the rear-view mirror in favour of a contemporary touch.
372
+
373
+ A few subtle nods to the past still linger around the interior, including a circular infotainment screen in the middle of the dash to stir memories of the old speedo, but this latest Cooper E has been the subject of a overhaul. The interior and exterior have both been heavily updated, while the model now comes with a choice of battery packs to address the previous edition’s biggest flaw, its fairly pitiful range.
374
+
375
+
376
+ Read on for our 2024 Mini Cooper Electric review to see how it fares.
377
+
378
+ At a glance
379
+
380
+ Pros: Handling, keenly priced, improved range
381
+ Cons: Some questionable interior plastics, tiny boot, old car felt plusher inside
382
+
383
+
384
+ What’s new?
385
+
386
+ Pretty much everything. Although it’s within a few millimetres of the old Mini Electric, it rides on a new platform rather than hacked-about ICE combustion hardware. That means you don’t get a practicality penalty for going electric, although you wouldn’t call the Cooper Electric spacious.
387
+
388
+ The interior trades the soft plastics and chrome trim of the old car for fabric coverings for the top of the dash and the doors. If that wasn’t different enough, there’s a projector hiding behind the 24cm diameter touchscreen that shines patterns onto the fabric depending on your drive mode, at least in higher-spec models. It’s quite the impressive light show at nighttime.
389
+
390
+ Your drive mode can also change the style of the display and you easily flick between settings using a toggle switch next to the gear selector. It’s all a big departure from previous Minis, but like the Countryman SUV, it looks appreciably modern yet clearly a Mini inside and out.
391
+
392
+ What are the specs?
393
+
394
+ The entry-level Cooper E gets a 40.7kWh battery that’s good for 190 miles of range in official tests. You can rapid charge at up to 75kW for a 28-minute 10-80% time, while a slower 11kW wallbox charge takes four and a quarter hours. Expect a longer wait on a normal residential 7.4kW wallbox.
395
+
396
+ Mini Cooper S E (2024) rear driving
397
+ Go for the Cooper SE and battery capacity increases to 54.2kWh for a range of up to 250 miles. Rapid charging rates are increased to 95kW to counter the larger battery, giving a 10-80% time of 30 minutes, with an 11kW charger taking five and a quarter hours. Again, you’ll need to add some time for a regular wallbox.
398
+
399
+ As for performance, the Cooper E gets 187bhp for a 0-62mph time of 7.3 seconds. That’s less than half a second behind the Abarth 500e, a car with a significantly shorter 158-mile range despite costing slightly more. The Cooper SE’s 215bhp is good for 0-62mph in an Abarth-beating 6.7 seconds.
400
+
401
+ What about the interior?
402
+
403
+ Classic and Sport trims get a predominantly black dashboard, with Exclusive getting a more interesting Houndstooth knit for the dash and majority of the door cards. It looks great, but parents will no doubt wonder how easy it’ll be to clean up after their kids have got their grubby mitts all over it.
404
+
405
+ Mini Cooper S E (2024) interior
406
+ Mini’s quality feel leans heavily on the fabric wrapping and a solid feel to regular touchpoints. Move away from these and the plastics look a bit cheaper than on the old car, although everything feels put together well enough.
407
+
408
+ Unless you have the Level 1 option pack that’s standard on the SE, you’ll need to rely on that central screen to see your speed. Cars with the pack get a head-up display that makes checking your speed less distracting. At least all the driving info is located at the top, with content in the middle band and shortcut icons along the bottom. Heater controls are in the bottom corners and are a faff to use when on the move.
409
+
410
+ Space is as tight as you’d expect, but better than the old Mini Electric with its raised rear bench needed to fit the battery pack. It’s now much the same size as this car’s predecessor, meaning lots of space up front, enough for kids and shorter trips in the back and a tiny 211-litre boot.
411
+
412
+ Mini Cooper S E (2024) interior
413
+ A false floor to separate your cables is handy, assuming you’ve not got a full boot.
414
+
415
+ How does it drive?
416
+
417
+ If you’ve driven a 21st century Mini, this will feel pleasingly familiar. As for ride quality, both the Cooper SE and Cooper E walk a fine line between relaying information about the road and being fidgety. Though there’s very little to split the two in terms of chassis set up, the suspension is softer in the former to accommodate the weight of the bigger battery pack without compromising ride quality.
418
+
419
+ Mini says it gave the SE a softer set up to engineer a consistent ride across both models, but in reality, the more powerful and heavier car (around 70kg splits the two depending on spec) has become the more comfortable of the two. Well-judged damping with good body control mean it’s a pleasant thing to spend time in, even after you’ve been driving for a couple of hours.
420
+
421
+ Those optional 18s are 20mm wider than standard. The Cooper SE puts its power down cleaner than an Abarth 500e, although some might wish it had you a little more poke off the line. The steering is well weighted and there’s even a bit of feel, giving you the confidence to press on.
422
+
423
+ Mini Cooper S E (2024) front driving
424
+ There’s plenty of front-end bite and not a lot of lean, giving an agile feel lacking in so many modern EVs. In other words, it’s far closer to an electric hot hatch than the Abarth 500e or MG4 XPower.
425
+
426
+ Before you buy
427
+
428
+ Once you’ve decided on either the Cooper E or SE, there are three trims to pick from. Base Classic still gets niceties like two-zone climate control, 16-inch alloys, parking sensors and a rear camera, it’s just a bit plain with a body-colour roof.
429
+
430
+ Exclusive is a more luxurious twist and gets 17-inch wheels as standard, silver rather than black accents on the exterior, piping for the seats, the knitted dashboard and doors and the choice of a black or white roof.
431
+
432
+ Sport gets more aggressive front and rear bumpers, lower side skirts, 18-inch wheels and a rear spoiler. Inside is trimmed in black with red accents and there’s a perforated sports steering wheel, too. You also get the option of red for the roof and/or body, and black or red stripes.
433
+
434
+ Mini Cooper S E (2024) infotainment display
435
+ SE cars get a Level 1 pack as standard that’s optional on the E. This gives you adaptive headlights, keyless entry, folding auto-dimming door mirrors, an auto-dimming rear-view mirror, heated front seats, a useful head-up display and wireless smartphone charging.
436
+
437
+ Level 2 adds more advanced driver assistance tech, a Harman Kardon stereo, a panoramic roof and tinted windows. Level 3 is only available on Sport or an SE Exclusive and includes ventilated electric memory seats with massage, an interior camera accessible via an app, augmented-reality sat-nav shown on the touchscreen, a 360-degree camera and 5G capability.
438
+
439
+ Verdict: Mini Cooper E and SE
440
+
441
+ Considering the second-generation electric MINI costs about the same as its predecessor yet has significantly more range, it’s a far easier thing to recommend. Yes, it’s small inside and more doors would lend extra practicality, but it’s all part of the Cooper experience.
442
+
443
+ So too is the performance and handling. It might not be as fast as a single-motor Volvo EX30, let alone an MG4 XPower, but the Cooper SE is fast enough and corners far more tidily.
444
+
445
+ """,
446
+ "specifications": {
447
+ "Vehicle Type": "front-motor, front-wheel-drive, 4-passenger, 2-door hatchback",
448
+ "Price As Tested": {"Base Price": "$30,750", "Tested Price": "$37,750"},
449
+ "Motor Type": {
450
+ "Type": "permanent-magnet synchronous AC",
451
+ "Power": "181 hp",
452
+ "Torque": "199 lb-ft",
453
+ "Battery": "28.9-kWh lithium-ion battery pack",
454
+ },
455
+ "Transmission": "single-speed direct-drive",
456
+ "Chassis": {
457
+ "Suspension": "struts/multilink (F/R)",
458
+ "Brakes": {"Front": "11.1-in vented disc", "Rear": "11.0-in disc"},
459
+ "Tires": "Goodyear Eagle F1 Asymmetric 3, 205/45R-17 88W ★",
460
+ },
461
+ "Dimensions": {
462
+ "Wheelbase": "98.2 in",
463
+ "Length": "151.4 in",
464
+ "Width": "68.0 in",
465
+ "Height": "56.4 in",
466
+ "Passenger Volume": "80 ft3",
467
+ "Cargo Volume": "9 ft3",
468
+ "Curb Weight": "3099 lb",
469
+ },
470
+ "C/D Test Results": {
471
+ "60 mph": "6.1 sec",
472
+ "Rolling Start 5–60 mph": "6.2 sec",
473
+ "Top Gear 30–50 mph": "2.3 sec",
474
+ "Top Gear 50–70 mph": "3.4 sec",
475
+ "1/4 Mile": "14.8 sec @ 91 mph",
476
+ "Top Speed (Governor Limited)": "93 mph",
477
+ "Braking 70–0 mph": "169 ft",
478
+ "Roadholding 300-ft-dia Skidpad": "0.85 g",
479
+ "Standing-Start Accel Times": "omit 1-ft rollout of 0.3 sec",
480
+ },
481
+ "EPA Fuel Economy": {
482
+ "Combined": "108 MPGe",
483
+ "City": "115 MPGe",
484
+ "Highway": "100 MPGe",
485
+ "Range": "110 miles",
486
+ },
487
+ },
488
+ "img_path":"data/images/cooper_se.jpg",
489
+ },
490
+ 3: {
491
+ "make": "mini",
492
+ "model": "COOPER HARDTOP 2 DOOR",
493
+ "year": 2025,
494
+ "base_price":28900,
495
+ "variants": {
496
+ "Signature": {
497
+ "features": [
498
+ "Choice of 4 paint colors",
499
+ "Roof/Mirrors in Body Color",
500
+ "17“ Wheels",
501
+ "Heated Steering Wheel",
502
+ "Heated Front Seats",
503
+ "MINI Navigation",
504
+ "MINI Head Up Display",
505
+ "Panoramic Moonroof",
506
+ "LED Headlights",
507
+ "Parking Assistant",
508
+ "Classic Style only",
509
+ ],
510
+ "price": 28900,
511
+ },
512
+ "Signature Plus": {
513
+ "features": [
514
+ "Choice of 4 paint colors",
515
+ "Roof/Mirrors in Body Color",
516
+ "Choice of 6 paint colors",
517
+ "Choice of Contrast Roof/Mirrors",
518
+ "Choice of 17” or 18” wheels",
519
+ "Comfort Package",
520
+ "Active Driving Assistant",
521
+ "Classic or Favoured Style",
522
+ "Heated Steering Wheel",
523
+ "Heated Front Seats",
524
+ "MINI Navigation",
525
+ "MINI Head Up Display",
526
+ "Panoramic Moonroof",
527
+ "LED Headlights",
528
+ "Parking Assistant",
529
+ "Classic Style only",
530
+ ],
531
+ "price": 31350,
532
+ },
533
+ "Iconic": {
534
+ "features": [
535
+ "Choice of 4 paint colors",
536
+ "Roof/Mirrors in Body Color",
537
+ "Choice of 6 paint colors",
538
+ "Choice of Contrast Roof/Mirrors",
539
+ "Choice of 17” or 18” wheels",
540
+ "Comfort Package",
541
+ "Active Driving Assistant",
542
+ "Classic or Favoured Style",
543
+ "Heated Steering Wheel",
544
+ "Heated Front Seats",
545
+ "MINI Navigation",
546
+ "MINI Head Up Display",
547
+ "Panoramic Moonroof",
548
+ "LED Headlights",
549
+ "Parking Assistant",
550
+ "Classic Style only",
551
+ "Choice of 6 paint colors",
552
+ "Choice of Contrast Roof/Mirrors",
553
+ "Choice of 17” or 18” wheels",
554
+ "Comfort Package Plus",
555
+ "Navigation with Augmented Reality",
556
+ "Power Front Seats",
557
+ "Interior Camera",
558
+ "harman / kardon Premium Sound System",
559
+ "Classic or Favoured Style",
560
+ ],
561
+ "price": 34050,
562
+ },
563
+ },
564
+ "add_ons": {
565
+ "Comfort Package Plus": {
566
+ "features": """Fine-tune this package to include the features you want. Choose from the available options below, then click "Add To Build" to continue. Option images may represent an alternate vehicle than the one being configured.""",
567
+ "price": 1500,
568
+ },
569
+ "Comfort Package": {
570
+ "features": """General quality of life improvements""",
571
+ "price": 900,
572
+ },
573
+ },
574
+ "description": """The 2024 Mini Cooper Hardtop 2 Door is the smallest vehicle in Mini's lineup, but that's really not saying much as the largest vehicle the company makes is a subcompact SUV. This spritely little hatchback packs a lot of personality, due in no small part to its heritage as an economical and sporty British runabout. Many decades later, it's owned and built by BMW and benefits greatly from improved reliability and technology. It's been 10 years since this third-generation Mini debuted and a fully redesigned model is due next year.""",
575
+ "info": """
576
+ Edmunds spotlight: Personality and performance
577
+ No matter which Mini Cooper model you choose, you're guaranteed to have a good time behind the wheel. This is partially due to its tiny size that makes it one of the more nimble and maneuverable vehicles on the road. The base model may not be all that powerful, but it can still get your blood pumping, as pointed out in our test team's Expert Rating below. For the full effect, we suggest stepping up to the more potent Cooper S version. It also allows for some more customization choices.
578
+
579
+ Competitors to consider
580
+ There are a few other small hatchbacks worth checking out. The Mazda 3 comes in a four-door hatchback version with sleek styling and a near-luxury interior. The available turbocharged engine is a legitimate performer. The roomier Honda Civic is a bit more traditional, though the higher-performing Si and Type R models rival the sportiest Mini variants. Finally, there's the zippy Volkswagen GTI and all-wheel-drive Golf R that are sure to please with their strong build quality and refinement.
581
+
582
+ What’s it like to live with?
583
+ To get a more complete ownership experience, Edmunds added a 2023 Mini Cooper S Hardtop 2 Door to its long-term test fleet. Over the course of a year, we're covering everything you need to know about the Mini, including performance, comfort, convenience, and any bright spots or drawbacks. Check out the latest impressions here.
584
+
585
+ Edmunds Expert Rating
586
+
587
+ Our VerdictThe Edmunds Vehicle Testing Team evaluates a fresh batch of vehicles every week, pairing objective assessments at our test track with real-world driving on city streets, freeways and winding roads. The data we gather results in our Expert Ratings. They’re based on 30-plus scores that cover every aspect of the automotive experience.
588
+ Average
589
+ 7.4
590
+ out of 10
591
+ edmunds TESTED
592
+ The Mini Cooper maintains a lot of what made the original Mini so popular. It's fun to drive and has easy-to-reach limits, and its diminutive size makes it a great city car. But the drawbacks include a serious lack of storage, lackluster fuel economy and a convoluted infotainment system.
593
+ Rated for you by America's best test team.
594
+ Performance
595
+ 7.5/10
596
+ How does the Hardtop 2 Door drive? The Mini presents like it might have more style than substance, but in fact the opposite is true in the handling department. It is its own small bundle of fun, even if it is less powerful than almost any of its competitors. Our test Mini Cooper S, equipped with the quick-shifting automatic transmission, scooted from 0 to 60 mph in 6.4 seconds. That's a full half-second slower than the Volkswagen Golf GTI with its dual-clutch automatic but bests the manual-shift-only Honda Civic Si.
597
+
598
+ When hauling yourself down from speed, the Cooper S is lacking compared to rivals. It took us 120 feet to stop from 60 mph. The Golf GTI needed just 103 feet and the Civic Si 106 feet. The brake pedal feel is too soft and far from communicative — simply put, the brakes are the Mini's biggest dynamic fault. Its steering and handling, on the other hand, are twitchy and alive and give the Mini a stout handling character that almost reminds us of the Minis of old. Its performance is both easy to access and fun to dig into, and we like that about this generation of Mini.
599
+ Comfort
600
+ 7/10
601
+ How comfortable is the Hardtop 2 Door? Minis have always been known for their harsh ride, and the Hardtop doesn't change that. Even the smallest road imperfections incessantly make their way into the cabin. Our test car produced lots of road and wind noise too. The Mini does claw some comfort points back, however. The front seats are very comfortable and fit a range of body sizes. There's also enough headroom for drivers who are above average height to fit in easily.
602
+ Interior
603
+ 7.5/10
604
+ How’s the interior? Everything inside the Mini is easy to reach. The doors are long and the openings are large enough to make getting into the front seats a breeze and the back only a small hassle. We also like the Mini's driving position, which feels low down and in the heart of the car.
605
+
606
+ Visibility is also surprisingly good. The Mini's roof pillars are thin enough that they don't obstruct a driver's view and there are practically no blind spots to speak of. It also has a surprisingly airy cabin for such a small car and never feels cramped inside even with other passengers on board.
607
+ Continue reading Edmunds Expert Rating below
608
+ Find savings on the Hardtop 2 Door for sale near you
609
+ Oops, we can’t seem to locate you.
610
+ Enter a U.S. ZIP code to see pricing.
611
+ ZIP Code
612
+
613
+ Technology
614
+ 7/10
615
+ How’s the tech? Because Mini is owned by BMW, a lot of the Cooper's interface is based on an older version of BMW's entertainment interface. That means there's a rotary control flanked by shortcut buttons and a touchscreen. The circular element that the screen sits inside means a very wide, almost letterbox-shaped screen that's compromised. We know the central speedometer is a classic Mini touch, but it might be time to move on from that design motif.
616
+
617
+ Aside from that, the infotainment is relatively easy to get used to. The shortcut buttons work well, and it has wired and wireless Apple CarPlay but lacks Android Auto. Driver aids are pretty limited too.
618
+ Storage
619
+ 6.5/10
620
+ How’s the storage? As you might have guessed, storage is minimal. The cargo area behind the rear seats is just 8.7 cubic feet, which simply pales in comparison to something like a Volkswagen Golf GTI. If you fold the seats down, you get enough storage for bigger items like a set of golf bags, but the seats don't fold flat and the parcel shelf is a pain to remove. The entire process of making the Mini's rear hatch area a usable storage space can only be described as a burden.
621
+
622
+ There are two cupholders up front, but they're small. That in tandem with a tiny center console and minuscule door pockets means small-item storage is also far from ideal. Fitting a car seat isn't exactly simple either, and having to squeeze one between the rear pillar and a folded front seat is an exercise in extreme patience. All in all, don't expect the Mini to match the practicality of a bigger hatch like the Golf or a sedan like the Honda Civic Si or Hyundai Elantra N.
623
+ Continue reading Edmunds Expert Rating below
624
+ Range and Efficiency
625
+ 7.5/10
626
+ How are the range and efficiency? The EPA estimates the Cooper S, which is what we tested, gets 31 mpg combined, which is pretty good for a sporty car. Unfortunately, we've found it difficult to match that number in real-world driving.
627
+ Value
628
+ 7.5/10
629
+ Is the Hardtop 2 Door a good value? The Mini Hardtop has solid build quality and an upscale cabin. Its performance numbers are worse than its rivals, but in the real world it would be hard to notice the difference. Mini's warranty coverage is generally on par with other small-hatch manufacturers. Mini also offers three years/36,000 miles of free maintenance, which helps elevate its ownership experience over other brands that compete in this space.
630
+ Wildcard
631
+ 9/10
632
+ There's something permanently fun about a Mini. It's like nothing else on the road. Add to that a lengthy list of customization options and you end up with a car that has significantly more personality than most cars. It's also fun to drive and has easy-to-approach limits, and with a manual transmission, we think it would make an excellent first car for any budding enthusiast.
633
+ Which Hardtop 2 Door does Edmunds recommend?
634
+ We suggest checking out the Cooper S in the lineup. This midrange model packs a more powerful punch than the base model without punishing you with the stiff ride quality you'd get in the top John Cooper Works Edition. We'd also stick with the entry-level Classic trim since the Signature trim's added features don't quite justify the out-of-pocket premium.
635
+
636
+ Compare 2024 MINI Hardtop 2 Door trim levels
637
+ Helpful trims summary and side-by-side comparison chart
638
+ MINI Hardtop 2 Door models
639
+ The 2024 Mini Hardtop 2 Door comes in three main trim levels. The gas-powered Minis include the Cooper, Cooper S and John Cooper Works (JCW). Mini also offers the all-electric Cooper SE. From there, you can pick from Classic, Signature and Iconic subtrim packages. Smaller packages can also be added, allowing you to customize your Hardtop in both appearance and features.
640
+
641
+ """,
642
+ "specifications": {
643
+ "ENGINE": {
644
+ "Liters/type": "TwinPower Turbo, 2.0-liter, 4-cylinder direct-injection engine with double VANOS",
645
+ "Displacement (cc)": 1998,
646
+ "Horsepower (bhp @ rpm)": "161 @ 5000 - 6500",
647
+ "Torque (lb-ft @ rpm)": "184 @ 1450 - 4500",
648
+ },
649
+ "TRANSMISSION": {"Type": "7-Speed Dual Clutch Transmission"},
650
+ "PERFORMANCE": {"Acceleration 0-60 MPH (sec)": 7.4, "Top Speed (mph)": 130},
651
+ "FUEL CONSUMPTION": {
652
+ "Automatic Combined (mpg)": "TBA",
653
+ "Automatic City / Highway (mpg)": "TBA",
654
+ "Fuel Tank Capacity (gallons)": 11.6,
655
+ },
656
+ "WHEELS AND TIRES": {
657
+ "Tire / Type": "All-season non run-flat tires",
658
+ "Wheel Dimensions (in)": "17 x 7 front | 17 x 7 rear",
659
+ "Tire Dimensions (mm)": "215/45 front | 215/45 rear",
660
+ },
661
+ "EXTERIOR DIMENSIONS": {
662
+ "Length / Width / Height (in)": "152.6 / 68.7 / 56.4",
663
+ "Width including mirrors (in)": 77.6,
664
+ "Curb Weight (lbs)": 3014,
665
+ "Payload (lbs)": 785,
666
+ },
667
+ "INTERIOR DIMENSIONS": {
668
+ "Headroom, Front/rear (in)": "40.3 / 36.9",
669
+ "Legroom, Front/rear (in)": "41.4 / 30.8",
670
+ "Shoulder Room, Front/rear (in)": "51.2 / 49.1",
671
+ "Cargo Capacity (cu Ft)": "8.9 - 34.4",
672
+ },
673
+ },
674
+ "img_path":"data/images/hardtop_2_door.jpg",
675
+ },
676
+ 4: {
677
+ "make": "mini",
678
+ "model": "Cooper S CONVERTIBLE",
679
+ "year": 2025,
680
+ "base_price":38990,
681
+ "variants": {
682
+ "Signature Plus": {
683
+ "features": [
684
+ "Choice of multiple exterior and mirror colors",
685
+ "Carbon Black Leatherette interior",
686
+ "Choice of 17” wheels",
687
+ "Runflat tires",
688
+ "6 Speed Manual or 7-Speed Dual-Clutch transmission",
689
+ "Comfort Access Keyless Entry",
690
+ "MINI Navigation",
691
+ "3-in-1 Convertible Roof",
692
+ "Heated front seats",
693
+ "Apple CarPlay compatible",
694
+ "Active driving assistant",
695
+ "LED Headlights",
696
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
697
+ "Dual zone climate control",
698
+ "Nappa Leather Steering Wheel",
699
+ ],
700
+ "price": 38990,
701
+ },
702
+ "Iconic": {
703
+ "features": [
704
+ "Choice of multiple exterior and mirror colors",
705
+ "Carbon Black Leatherette interior",
706
+ "Choice of 17” wheels",
707
+ "Runflat tires",
708
+ "6 Speed Manual or 7-Speed Dual-Clutch transmission",
709
+ "Comfort Access Keyless Entry",
710
+ "MINI Navigation",
711
+ "3-in-1 Convertible Roof",
712
+ "Heated front seats",
713
+ "Apple CarPlay compatible",
714
+ "Active driving assistant",
715
+ "LED Headlights",
716
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
717
+ "Dual zone climate control",
718
+ "Nappa Leather Steering Wheel",
719
+ "Additional paint and roof/mirror color options",
720
+ "Choice of premium/leather interior upholstery",
721
+ "Choice of 17” or 18” wheels",
722
+ "Piano Black exterior trim",
723
+ "harman/kardon premium sound system",
724
+ "Universal Garage Door Opener",
725
+ "Wireless charging",
726
+ "Head-Up display",
727
+ "Parking Assistant",
728
+ ],
729
+ "price": 42000,
730
+ },
731
+ },
732
+ "add_ons": {
733
+ "Comfort Package Plus": {
734
+ "features": """Fine-tune this package to include the features you want. Choose from the available options below, then click "Add To Build" to continue. Option images may represent an alternate vehicle than the one being configured.""",
735
+ "price": 1500,
736
+ },
737
+ "Comfort Package": {
738
+ "features": """General quality of life improvements""",
739
+ "price": 900,
740
+ },
741
+ },
742
+ "description": """Few other new cars on the market do small and fun to drive like the Mini Cooper. Its fit-anywhere dimensions, tight steering and responsive engine options can spice up any commute. The Mini Convertible model adds another layer of enjoyment with a power-retractable soft top for open-air motoring. Of course, since it's a Mini, space for luggage and passengers is at a premium. There are also some quirky ergonomic and design elements that you'll either love or hate. It's not for everyone, but if a Mini Convertible does work for your lifestyle, your drive will rarely be boring.""",
743
+ "info": """
744
+ Few other new cars on the market do small and fun to drive like the Mini Cooper. Its fit-anywhere dimensions, tight steering and responsive engine options can spice up any commute. The Mini Convertible model adds another layer of enjoyment with a power-retractable soft top for open-air motoring. Of course, since it's a Mini, space for luggage and passengers is at a premium. There are also some quirky ergonomic and design elements that you'll either love or hate. It's not for everyone, but if a Mini Convertible does work for your lifestyle, your drive will rarely be boring.
745
+
746
+ Cost to DriveCost to drive estimates for the 2024 MINI Convertible Cooper 2dr Convertible (1.5L 3cyl Turbo 6M) and comparison vehicles are based on 15,000 miles per year (with a mix of 55% city and 45% highway driving) and energy estimates of $4.20 per gallon for premium unleaded in North Dakota.
747
+ Monthly estimates based on costs in North Dakota
748
+ $164/mo for Convertible Cooper
749
+ Convertible Cooper
750
+
751
+ vs
752
+ $171/mo
753
+ Avg. Compact Car
754
+ Calculate my fuel costs
755
+ Edmunds spotlight: Interior and tech
756
+ Step inside a Mini and you'll know instantly that this is a car designed for drivers who like to go against the grain. The round AC vents, door handles and infotainment screen bezel are striking and help the interior stand out in an era in which streamlined dashboard and door panel designs dominate. That bezel around the standard 8.8-inch touchscreen display can also serve as a visual tachometer, illuminating in step with engine revs. For instrumentation, there's a freestanding circular screen. Another quirky feature is the toggle switches for engine start, traction control and other functions. The infotainment system supports Apple CarPlay integration, but Android Auto compatibility is curiously missing. See our test team's Expert Rating below for a full breakdown of the Mini convertible's cabin and tech features.
757
+
758
+ Competitors to consider
759
+ As a small convertible, the Mini enjoys minimal competition. The Mazda Miata might be fundamentally different as a rear-wheel-drive sports car, but it's also a compact convertible starting around $30,000, which makes it the closest competitor to the drop-top Mini. If you're looking at the top-trim Mini convertible John Cooper Works, you might cross-shop it with the similarly priced and much more powerful Ford Mustang convertible, which starts at just over $41,000 for the EcoBoost four-cylinder model.
760
+
761
+ Edmunds Expert Rating
762
+
763
+ Our VerdictThe Edmunds Vehicle Testing Team evaluates a fresh batch of vehicles every week, pairing objective assessments at our test track with real-world driving on city streets, freeways and winding roads. The data we gather results in our Expert Ratings. They’re based on 30-plus scores that cover every aspect of the automotive experience.
764
+ Average
765
+ 7.2
766
+ out of 10
767
+ edmunds TESTED
768
+ The Mini Convertible is nearly as much fun to drive as its Mini Hardtop sibling. It also offers a high-quality and stylish interior and distinctive styling with plenty of options for customization. The John Cooper Works version is somewhat of a disappointment, however.
769
+ Rated for you by America's best test team.
770
+ Performance
771
+ 8/10
772
+ How does the Convertible drive? We tested the Mini Convertible in the John Cooper Works (JCW) trim. The JCW should be the top of the heap, but it doesn't feel much more special than the S trim. Acceleration from 0 to 60 mph took 6 seconds in our test car, which is quick for a convertible in this class. The Mini's turbocharged engine makes plenty of torque but lacks the fun, high-revving character of the Mazda Miata's engine.
773
+
774
+ Panic braking from 60 mph yielded a best result of 119 feet, which is an average distance; we expected better. Most of the blame falls on the Mini JCW's somewhat narrow tires, which also limit its outright handling ability. We love its nimbleness, but less expensive Mini Convertible trims give you that as well.
775
+ Comfort
776
+ 7/10
777
+ How comfortable is the Convertible? The expected stiff and sporty ride of a Mini is certainly present with the John Cooper Works version. While it's never unduly harsh, it can be jittery over less than smooth pavement. Our test car came with optional adaptive dampers, but we didn't feel there was enough of a difference between the Normal and Sport modes to warrant the extra expense. The front seats are supportive and comfortable, but rear passengers will likely complain about the vertical seatbacks and lack of shoulder room.
778
+
779
+ The Mini's top looks and feels well constructed, but it lets in a lot of ambient noise and road noise when you're driving at highway speeds. In fact, when we tested interior noise levels, we found it's barely louder with the top down than when it's up. The JCW's center exhaust produces some nice burbles and pops but can drone over extended periods of driving at a constant speed.
780
+ Interior
781
+ 7.5/10
782
+ How’s the interior? The somewhat long doors have a nice weight and provide ample access to the front seats but don't make it any easier to get into the back seats. If adults can squeeze in back there — it's somewhat easier with the top down — they'll likely be touching shoulders. The driver and passenger will have plenty of shoulder room and a surplus of headroom, making the compact Mini feel reasonably spacious. The Mini Convertible's controls are fairly easy to understand and use.
783
+
784
+ The well-constructed folding cloth top sits more or less on the back of the Mini and, when down, blocks your rear visibility quite a bit. When it's up, there's decent visibility to the sides thanks to the tall windows and large outside mirrors. Visibility out of the front is compromised because the rearview mirror takes up a lot of space on the narrow windshield.
785
+ Continue reading Edmunds Expert Rating below
786
+ Find savings on the Convertible for sale near you
787
+ Oops, we can’t seem to locate you.
788
+ Enter a U.S. ZIP code to see pricing.
789
+ ZIP Code
790
+
791
+ Technology
792
+ 7.5/10
793
+ How’s the tech? A lot of the Mini Convertible's tech is lifted straight from parent company BMW. This isn't a bad thing as the infotainment system is basically BMW's with a colorful Mini-themed interface. It's easy to navigate and looks a bit more premium than some rivals. Navigation and voice controls work well and proved genuinely helpful in certain situations. Wireless Apple CarPlay smartphone integration is standard, but the lack of Android Auto is surprising given it's in most of the Mini's rivals. Our test car's Harman Kardon audio system was strong enough to deliver good-quality sound over the elevated levels of interior noise.
794
+
795
+ The adaptive cruise control works well and maintains tight gaps in traffic. We experienced no false alarms or overreactions from any of the other systems. But we were somewhat disappointed with the conservative tuning of the electronic stability control, especially on a car that's supposed to be fun to drive. Thankfully, you can disable it.
796
+ Storage
797
+ 5.5/10
798
+ How’s the storage? It should come as no surprise that the Mini Convertible is not the most practical car. Its 7.6-cubic-foot trunk is small and not easily accessible. Ironically, the Mazda Miata's smaller trunk (4.6 cubic feet) is more practical and easier to use.
799
+
800
+ Interior storage is slightly better, and there's enough space for one person's small items in the cubby in front of the cupholders and the cupholders themselves. If you spring for the wireless charging, you will lose most of your center armrest storage. Child seat anchors are provided in the back seat, but only the smallest booster seats are likely to fit without a lot of fuss.
801
+
802
+
803
+
804
+ """,
805
+ "specifications": {
806
+ "Engine and Performance": {
807
+ "Engine Type": "2.0L I-4 turbocharged",
808
+ "Horsepower": "228 hp @ 5,000 rpm",
809
+ "Torque": "235 lb-ft @ 1,350 rpm",
810
+ "Transmission": "8-speed automatic",
811
+ "0-60 mph": "6.3 seconds",
812
+ "Top Speed": "149 mph",
813
+ },
814
+ "Dimensions and Weight": {
815
+ "Curb Weight": "3,018 lbs",
816
+ "Length": "152.8 inches",
817
+ "Width": "68.0 inches",
818
+ "Height": "55.7 inches",
819
+ "Wheelbase": "98.2 inches",
820
+ "Turning Radius": "17.7 inches",
821
+ },
822
+ "Interior and Cargo": {
823
+ "Seating Capacity": 4,
824
+ "Front Leg Room": "41.4 inches",
825
+ "Rear Leg Room": "30.9 inches",
826
+ "Luggage Capacity": "5.7 cu ft (up to 7.6 cu ft with seats down)",
827
+ },
828
+ "Fuel Efficiency": {
829
+ "Fuel Tank Capacity": "11.6 gallons",
830
+ "EPA Mileage Estimates": "23 mpg city / 33 mpg highway",
831
+ },
832
+ "Additional Features": {
833
+ "Drive Type": "Front-wheel drive",
834
+ "Payload Capacity": "758 lbs",
835
+ },
836
+ },
837
+ "img_path":"data/images/CONVERTIBLE.jpg",
838
+ },
839
+ 5: {
840
+ "make": "mini",
841
+ "model": "CLUBMAN",
842
+ "year": 2024,
843
+ "base_price": 34050,
844
+ "variants": {
845
+ "Classic": {
846
+ "features": [
847
+ "Choice of 3 exterior colors",
848
+ "Carbon Black Leatherette interior",
849
+ "17” Vent Spoke Wheels",
850
+ "7-Speed Sport Automatic transmission",
851
+ "Runflat tires",
852
+ "Comfort Access Keyless entry",
853
+ "Touchscreen media display",
854
+ "Apple CarPlay compatible",
855
+ "Active driving assistant",
856
+ "LED Headlights and Fog Lights",
857
+ "Heated mirrors and washer jets",
858
+ "SiriusXM® with 12-mo Platinum Plan trial subscription"
859
+ ],
860
+ "price": 34050
861
+ },
862
+ "Signature": {
863
+ "features": [
864
+ "Everything in Classic +",
865
+ "Choice of multiple exterior and roof colors",
866
+ "Choice of interior upholstery",
867
+ "Choice of 17” wheels",
868
+ "MINI Navigation",
869
+ "Advanced real-time traffic",
870
+ "Heated front seats",
871
+ "Panoramic moonroof"
872
+ ],
873
+ "price": 37000
874
+ },
875
+ "Iconic": {
876
+ "features": [
877
+ "Everything in Signature +",
878
+ "Additional paint and roof color options",
879
+ "Choice of premium leather interior upholstery",
880
+ "Choice of 17” or 18” wheels",
881
+ "Piano black exterior trim",
882
+ "harman/kardon premium sound system",
883
+ "Power front seats",
884
+ "Active Cruise Control",
885
+ "Wireless charging",
886
+ "Head up display",
887
+ "Parking Assistant"
888
+ ],
889
+ "price": 41000
890
+ }
891
+ },
892
+ "add_ons": {
893
+ "Space-saver spare": {
894
+ "price": 250,
895
+ "features": [
896
+ "A space-saver spare tire stowed under the luggage compartment floor",
897
+ "Includes a car jack and wrench"
898
+ ]
899
+ },
900
+ "Headliner in Anthracite": {
901
+ "price": 250,
902
+ "features": [
903
+ "Transforms the interior ceiling, frame pillars, sun visors, and grab handles to dark Anthracite color"
904
+ ]
905
+ }
906
+ },
907
+ "description": "The MINI Clubman is a small station wagon offering incredible customization options from paint, roof, and mirror color combinations to premium interior trims and upholstery choices. The Clubman offers comfortable seating for five, a Dual-Pane Panoramic Moonroof, and a spacious rear boot with split-rear doors for easy cargo loading.",
908
+ "specifications": {
909
+ "Vehicle": {
910
+ "EPA Classification": "Midsize Cars",
911
+ "Drivetrain": "Front Wheel Drive",
912
+ "Engine": {
913
+ "Engine Type and Required Fuel": "Intercooled Turbo Premium Unleaded I-4",
914
+ "Displacement (liters/cubic inches)": "2.0 L/122",
915
+ "Fuel System": "Gasoline Direct Injection",
916
+ "Maximum Horsepower @ RPM": "189 @ 5000",
917
+ "Maximum Torque @ RPM": "206 @ 1350"
918
+ },
919
+ "Transmission": {
920
+ "Transmission Description": "Auto-Shift Manual",
921
+ "Number of Transmission Speeds": 7,
922
+ "First Gear Ratio (:1)": 14.43,
923
+ "Second Gear Ratio (:1)": 8.51,
924
+ "Third Gear Ratio (:1)": 5.41,
925
+ "Fourth Gear Ratio (:1)": 3.79,
926
+ "Fifth Gear Ratio (:1)": 2.93,
927
+ "Sixth Gear Ratio (:1)": 2.35,
928
+ "Seventh Gear Ratio (:1)": 1.90,
929
+ "Reverse Ratio (:1)": 13.12
930
+ },
931
+ "Fuel Economy and Range": {
932
+ "EPA Fuel Economy, combined/city/highway (mpg)": "29 / 25 / 35",
933
+ "CO2 Emissions, 15K mi/year (tons)": 6.1,
934
+ "Range, city/highway (miles)": "330.00 / 462.00",
935
+ "Fuel Tank Capacity (gallons)": 13.2
936
+ },
937
+ "Exterior Dimensions": {
938
+ "Wheelbase (inches)": 105.1,
939
+ "Length (inches)": 168.3,
940
+ "Width, without mirrors (inches)": 70.9,
941
+ "Height (inches)": 56.7,
942
+ "Front Track Width (inches)": 61.6,
943
+ "Rear Track Width (inches)": 61.5
944
+ },
945
+ "Interior Dimensions": {
946
+ "Passenger / Seating Capacity": 5,
947
+ "Total Passenger Volume (cubic feet)": 92.5,
948
+ "Front Head Room (inches)": 40.2,
949
+ "Front Leg Room (inches)": 41.4,
950
+ "Front Shoulder Room (inches)": 54.7,
951
+ "Second Row Head Room (inches)": 38,
952
+ "Second Row Leg Room (inches)": 34.3,
953
+ "Second Row Shoulder Room (inches)": 52.8,
954
+ "Cargo Space/Area Behind Front Row (cubic feet)": 47.9,
955
+ "Cargo Space/Area Behind Second Row (cubic feet)": 17.5
956
+ },
957
+ "Steering": {
958
+ "Steering Type": "Rack-Pinion",
959
+ "Turning Diameter / Radius, curb to curb (feet)": 37.1
960
+ },
961
+ "Suspension": {
962
+ "Front Suspension Type": "Strut",
963
+ "Rear Suspension Type": "Multi-Link"
964
+ },
965
+ "Brakes": {
966
+ "Brake Type": "4-Wheel Disc",
967
+ "Anti-Lock-Braking System": "4-Wheel",
968
+ "Front Brake Rotors, diameter x thickness (inches)": "11.6",
969
+ "Rear Brake Rotors, diameter x thickness (inches)": "10.2"
970
+ },
971
+ "Wheels and Tires": {
972
+ "Front Wheel Size (inches)": "17 X 7.5",
973
+ "Front Tire Size": "P225/45WR17",
974
+ "Rear Wheel Size (inches)": "17 X 7.5",
975
+ "Rear Tire Size": "P225/45WR17"
976
+ },
977
+ "Weight Information": {
978
+ "Base Curb Weight (pounds)": 3307
979
+ },
980
+ "Electrical": {
981
+ "Maximum Alternator Capacity (amps)": 150
982
+ }
983
+ }
984
+ },
985
+ "info": """
986
+ The 2024 MINI Clubman is a wagon based on the Mini Hardtop, but with stretched dimensions to provide more rear passenger and luggage space. It retains the responsive handling of the Mini Cooper, but features split swing-out rear doors instead of a hatchback. The Clubman has an upscale cabin with high-quality materials and a modern yet quirky design.
987
+ """
988
+ },
989
+ 6: {
990
+ "make": "mini",
991
+ "model": "Mini Convertible",
992
+ "year": 2024,
993
+ "base_price": 35700,
994
+ "variants": {
995
+ "Signature Trim": {
996
+ "features": [
997
+ "Choice of multiple exterior and mirror colors",
998
+ "Carbon Black Leatherette interior",
999
+ "16” Wheels in Grey or Black",
1000
+ "All-season runflat tires",
1001
+ "6 Speed Manual or 7-Speed Dual-Clutch transmission",
1002
+ "Comfort Access Keyless Entry",
1003
+ "MINI Navigation",
1004
+ "3-in-1 Convertible Roof",
1005
+ "Heated front seats",
1006
+ "Apple CarPlay compatible",
1007
+ "Active driving assistant",
1008
+ "LED Headlights",
1009
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
1010
+ "Dual zone climate control"
1011
+ ],
1012
+ "price": 35700
1013
+ }
1014
+ },
1015
+ "packages": {
1016
+ "Signature Upholstery": {
1017
+ "price": 1750,
1018
+ "features": [
1019
+ "Choose your leather upholstery and upgrade your MINI’s interior surfaces."
1020
+ ]
1021
+ },
1022
+ "7-Speed Dual Clutch Transmission": {
1023
+ "price": 1500,
1024
+ "features": [
1025
+ "Upgraded to 7-Speed Dual-Clutch transmission for enhanced driving experience."
1026
+ ]
1027
+ }
1028
+ },
1029
+ "specifications": {
1030
+ "Engine": {
1031
+ "Type": "Gas",
1032
+ "Transmission": "6-speed manual",
1033
+ "Drive Type": "Front wheel drive",
1034
+ "Cylinders": "Inline 3",
1035
+ "Horsepower": "134 hp @ 4,500 rpm",
1036
+ "Torque": "162 lb-ft @ 1,480 rpm",
1037
+ "Valves": "12",
1038
+ "Cam type": "Double overhead cam (DOHC)",
1039
+ "Valve timing": "Variable",
1040
+ "Direct injection": "Standard"
1041
+ },
1042
+ "Fuel & MPG": {
1043
+ "Fuel type": "Premium unleaded (recommended)",
1044
+ "EPA city/highway MPG": "27/38 MPG",
1045
+ "EPA combined MPG": "31 MPG",
1046
+ "Range in miles (city/hwy)": "313.2/440.8 mi.",
1047
+ "Fuel tank capacity": "11.6 gal."
1048
+ },
1049
+ "Dimensions": {
1050
+ "Length": "152.2 in.",
1051
+ "Overall width with mirrors": "75.9 in.",
1052
+ "Overall width without mirrors": "68.0 in.",
1053
+ "Height": "55.7 in.",
1054
+ "Wheelbase": "98.2 in.",
1055
+ "EPA interior volume": "81.5 cu.ft.",
1056
+ "Cargo capacity, all seats in place": "5.2 cu.ft.",
1057
+ "Maximum cargo capacity": "7.6 cu.ft.",
1058
+ "Curb weight": "2,892 lbs.",
1059
+ "Maximum payload": "712 lbs.",
1060
+ "Gross weight": "3,704 lbs."
1061
+ },
1062
+ "Performance": {
1063
+ "0-60 mph": "8.2 sec",
1064
+ "Turning circle": "35.4 ft.",
1065
+ "Ground clearance": "4.5 in."
1066
+ },
1067
+ "Colors": {
1068
+ "Exterior": [
1069
+ "Island Blue Metallic",
1070
+ "Nanuq White Metallic",
1071
+ "Melting Silver III Metallic",
1072
+ "Chili Red",
1073
+ "Zesty Yellow",
1074
+ "Midnight Black II",
1075
+ "British Racing Green IV Metallic"
1076
+ ],
1077
+ "Interior": [
1078
+ "Black Pearl Light Chequered, leatherette/cloth",
1079
+ "Chesterfield Satellite Grey, leather",
1080
+ "Chesterfield Malt Brown, leather",
1081
+ "MINI Yours Carbon Black Lounge, leather",
1082
+ "Carbon Black SensaTec, leatherette",
1083
+ "Carbon Black Cross Punch, leather",
1084
+ "Black Pearl, leatherette/cloth"
1085
+ ]
1086
+ },
1087
+ "Safety": [
1088
+ "Lane departure warning accident avoidance system",
1089
+ "Pre-collision safety system",
1090
+ "Post-collision safety system",
1091
+ "Dual front with head protection chambers side-mounted airbags",
1092
+ "Passenger airbag occupant sensing deactivation",
1093
+ "Stability control",
1094
+ "Traction control",
1095
+ "Child seat anchors",
1096
+ "4-wheel ABS",
1097
+ "Brake drying",
1098
+ "Ventilated front disc / solid rear disc brakes",
1099
+ "Emergency braking assist",
1100
+ "Tire pressure monitoring",
1101
+ "Dusk sensing headlamps",
1102
+ "LED headlamp",
1103
+ "Daytime running lights",
1104
+ "Cornering lights",
1105
+ "2 front headrests",
1106
+ "Front height adjustable headrests",
1107
+ "2 rear headrests",
1108
+ "Rear height adjustable headrests"
1109
+ ],
1110
+ "In-Car Entertainment": [
1111
+ "8.8\" infotainment display size",
1112
+ "AM/FM stereo",
1113
+ "6 total speakers",
1114
+ "Apple CarPlay",
1115
+ "USB connection",
1116
+ "Satellite radio with 12 months of provided service"
1117
+ ],
1118
+ "Power Features": [
1119
+ "Hands-free entry",
1120
+ "Heated mirrors"
1121
+ ],
1122
+ "Comfort & Convenience": [
1123
+ "Keyless ignition",
1124
+ "Tilt and telescopic steering wheel",
1125
+ "Audio and cruise controls on steering wheel",
1126
+ "Electric power steering",
1127
+ "Rear view camera",
1128
+ "Rear parking sensors",
1129
+ "Cruise control",
1130
+ "Front and rear cupholders",
1131
+ "Leather steering wheel",
1132
+ "Dual zone front climate control",
1133
+ "Interior air filtration",
1134
+ "Electrochromatic inside rearview mirror"
1135
+ ],
1136
+ "Warranty": {
1137
+ "Basic": "4 yr./ 50,000 mi.",
1138
+ "Drivetrain": "4 yr./ 50,000 mi.",
1139
+ "Rust": "12 yr./ unlimited mi.",
1140
+ "Roadside assistance": "4 yr./ unlimited mi.",
1141
+ "Free maintenance": "3 yr./ 36,000 mi."
1142
+ }
1143
+ },
1144
+ "description": "The 2024 MINI Convertible is a stylish and fun-to-drive small car that offers a unique blend of classic MINI design with modern features. Perfect for those who enjoy open-air driving, the MINI Convertible combines a compact footprint with dynamic handling, making it ideal for city driving and weekend getaways alike.",
1145
+ "info": "While the Mini Cooper may well be the quintessential fun-to-drive small car, its diminutive footprint and snug cabin may not make sense for every buyer. Those who can make a subcompact car work in their lifestyles will find the Cooper a real creampuff, with a fun-loving nature that begs you to take it on a brisk drive on twisty roads. The standard setup is a three-door hatchback, but a five-door hatchback and a convertible are also offered, and all of them feature Mini's iconic retro-modern styling. If you're easy on options, you can get into a base-level Cooper for the price of a well-equipped Honda Civic, but as soon as you start adding desirable options—including swapping the standard 134-hp turbo three-cylinder for the punchier 189-hp turbo four—the Mini suddenly wears a price tag similar to that of an Audi A3 or a BMW 2-series. If you have even more money to spend and want to ramp"
1146
+ },
1147
+ 7: {
1148
+ "make": "mini",
1149
+ "model": "COOPER HARDTOP 2 DOOR",
1150
+ "year": 2024,
1151
+ "base_price":28950,
1152
+ "variants": {
1153
+ "SIGNATURE Features": {
1154
+ "features": {
1155
+ "Paint Colors": "Choice of 4 paint colors",
1156
+ "Roof/Mirrors": "Roof/Mirrors in Body Color",
1157
+ "Wheels": "17\" Wheels",
1158
+ "Heated Steering Wheel": True,
1159
+ "Heated Front Seats": True,
1160
+ "MINI Navigation": True,
1161
+ "MINI Head Up Display": True,
1162
+ "Panoramic Moonroof": True,
1163
+ "LED Headlights": True,
1164
+ "Parking Assistant": True,
1165
+ "Style": "Classic Style only",
1166
+ },
1167
+ "Price": "2000"
1168
+ },
1169
+ "Signature Plus Features": {
1170
+ "features": {
1171
+ "Paint Colors": "Choice of 4 paint colors",
1172
+ "Roof/Mirrors": "Roof/Mirrors in Body Color",
1173
+ "Wheels": "17\" Wheels",
1174
+ "Heated Steering Wheel": True,
1175
+ "Heated Front Seats": True,
1176
+ "MINI Navigation": True,
1177
+ "MINI Head Up Display": True,
1178
+ "Panoramic Moonroof": True,
1179
+ "LED Headlights": True,
1180
+ "Parking Assistant": True,
1181
+ "Style": "Classic Style only",
1182
+ "Paint Colors": "Choice of 6 paint colors",
1183
+ "Roof/Mirrors": "Choice of Contrast Roof/Mirrors",
1184
+ "Wheels": "Choice of 17” or 18” wheels",
1185
+ "Comfort Package": True,
1186
+ "Active Driving Assistant": True,
1187
+ "Style": "Classic or Favoured Style",
1188
+ },
1189
+ "price": 2400,
1190
+ },
1191
+ "Iconic": {
1192
+ "features": {
1193
+ "Paint Colors": "Choice of 4 paint colors",
1194
+ "Roof/Mirrors": "Roof/Mirrors in Body Color",
1195
+ "Wheels": "17\" Wheels",
1196
+ "Heated Steering Wheel": True,
1197
+ "Heated Front Seats": True,
1198
+ "MINI Navigation": True,
1199
+ "MINI Head Up Display": True,
1200
+ "Panoramic Moonroof": True,
1201
+ "LED Headlights": True,
1202
+ "Parking Assistant": True,
1203
+ "Style": "Classic Style only",
1204
+ "Paint Colors": "Choice of 6 paint colors",
1205
+ "Roof/Mirrors": "Choice of Contrast Roof/Mirrors",
1206
+ "Wheels": "Choice of 17” or 18” wheels",
1207
+ "Comfort Package": True,
1208
+ "Active Driving Assistant": True,
1209
+ "Style": "Classic or Favoured Style",
1210
+ "Paint Colors": "Choice of 6 paint colors",
1211
+ "Roof/Mirrors": "Choice of Contrast Roof/Mirrors",
1212
+ "Wheels": "Choice of 17” or 18” wheels",
1213
+ "Comfort Package Plus": True,
1214
+ "Navigation": "Navigation with Augmented Reality",
1215
+ "Power Front Seats": True,
1216
+ "Interior Camera": True,
1217
+ "Sound System": "harman/kardon Premium Sound System",
1218
+ "Style": "Classic or Favoured Style"
1219
+ },
1220
+ "price": 5100,
1221
+ },
1222
+ "Styles": {
1223
+ "Classic Style": {
1224
+ "Price": "Included"
1225
+ }
1226
+ },
1227
+ "Favoured Style": {
1228
+ "price": "Included"
1229
+ },
1230
+
1231
+ "Packages": {
1232
+ "Comfort Package Plus": {
1233
+ "Parking Assistant Plus": True,
1234
+ "MINI Navigation AR": True
1235
+ },
1236
+ "Price": 1500
1237
+ },
1238
+ "Comfort Packages": {
1239
+ "Price": 950
1240
+ }
1241
+ },
1242
+ "description": """The Mini Cooper is not just a car or a statement; it's a commitment to fun. And the two-door Hardtop is a commitment to sharing that fun with more people. For an idea of how many personalization options Mini offers on the two-door Cooper Hardtop, consider this: Buyers can choose from three British flag motifs just for the side mirrors. There's a full-color Union Jack, a grayscale version, and a blacked-out version Mini calls the Night Jack. The roof can be body color, white, silver, black, or three different gradients that fade either from blue, white or red above the windshield to black at the rear of the car. If you want to stand out, there's no reason you can't in the Cooper Hardtop 2 Door.""",
1243
+ "specifications": {
1244
+ "Overview":{
1245
+ "Engine Type": "TwinPower Turbo, 1.5-liter, inline 3-cylinder direct-injection engine with double VANOS",
1246
+ "Transmission": "6-speed manual",
1247
+ "Drive Type": "Front wheel drive",
1248
+ "Cylinders": "Inline 3",
1249
+ "Total Seating": 4,
1250
+ "Basic Warranty": "4 yr./ 50,000 mi.",
1251
+ },
1252
+ "Fuel & MPG": {
1253
+ "Fuel Type": "Premium unleaded (recommended)",
1254
+ "EPA City MPG": 27,
1255
+ "EPA Highway MPG": 38,
1256
+ "EPA Combined MPG": 31,
1257
+ "Range in Miles": {"City": 313.2, "Highway": 440.8},
1258
+ "Fuel Tank Capacity": "11.6 gal.",
1259
+ },
1260
+ "Engine": {
1261
+ "Base Engine Size": "1.5 L",
1262
+ "Cylinders": "Inline 3",
1263
+ "Base Engine Type": "Gas",
1264
+ "Horsepower": "134 hp @ 4,500 rpm",
1265
+ "Torque": "162 lb-ft @ 1,480 rpm",
1266
+ "Valves": 12,
1267
+ "Cam Type": "Double overhead cam (DOHC)",
1268
+ "Valve Timing": "Variable",
1269
+ "Direct Injection": "Standard",
1270
+ },
1271
+ "Towing & Hauling": {"Max Payload Capacity": "838 lbs."},
1272
+ "Drivetrain": {
1273
+ "Transmission": "6-speed manual",
1274
+ "Drive Type": "Front wheel drive",
1275
+ },
1276
+ "Suspension": {
1277
+ "Four-Wheel Independent Suspension": "Standard",
1278
+ "Front and Rear Stabilizer Bar": "Standard",
1279
+ "Front Type": "Strut",
1280
+ "Rear Type": "Multi-Link",
1281
+ },
1282
+ }
1283
+ },
1284
+ 8: {
1285
+ "make": "mini",
1286
+ "model": "HARDTOP 4 DOOR Cooper",
1287
+ "year": 2024,
1288
+ "base_price":26800,
1289
+ "variants": {
1290
+ "Signature Trim": {
1291
+ "features": {
1292
+ "Paint Colors": "Choice of 4 paint colors",
1293
+ "Roof/Mirrors": "Roof/Mirrors in Body Color",
1294
+ "Wheels": "17\" Wheels",
1295
+ "Heated Steering Wheel": True,
1296
+ "Heated Front Seats": True,
1297
+ "MINI Navigation": True,
1298
+ "MINI Head Up Display": True,
1299
+ "Panoramic Moonroof": True,
1300
+ "LED Headlights": True,
1301
+ "Parking Assistant": True,
1302
+ "Style": "Classic Style only",
1303
+ "Price": "Included"
1304
+ },
1305
+ "Signature Plus Trim": {
1306
+ "Features": {
1307
+ "Everything in SIGNATURE trim": True,
1308
+ "Paint Colors": "Choice of 10 paint colors",
1309
+ "Roof/Mirrors": "Choice of Contrast Roof/Mirrors",
1310
+ "Wheels": "Choice of 17” or 18” wheels",
1311
+ "Remote Engine Start": True,
1312
+ "Alarm System": True,
1313
+ "Comfort Package": True,
1314
+ "Active Driving Assistant": True,
1315
+ "Style": "Classic or Favoured Style",
1316
+ "Price": 2400
1317
+ },
1318
+ "Iconic Trim": {
1319
+ "Features": {
1320
+ "Everything in SIGNATURE PLUS trim": True,
1321
+ "Paint Colors": "Choice of 10 paint colors",
1322
+ "Roof/Mirrors": "Choice of Contrast Roof/Mirrors",
1323
+ "Wheels": "Choice of 17” or 18” wheels",
1324
+ "Comfort Package Plus": True,
1325
+ "Navigation": "Navigation with Augmented Reality",
1326
+ "Power Front Seats": True,
1327
+ "Interior Camera": True,
1328
+ "Parking Assistant Plus": True,
1329
+ "Sound System": "harman/kardon Premium Sound System",
1330
+ "Style": "Classic, Favoured, or John Cooper Works Style"
1331
+ },
1332
+ "Price": 5100
1333
+ },
1334
+ "Styles": {
1335
+ "Classic Style": {
1336
+ "Features": {
1337
+ "Upholsteries": "Choice of 2 Cloth/Vescin upholsteries",
1338
+ "Exterior Accents": "Piano Black exterior accents",
1339
+ "Dashboard Topper": "Dashboard topper in Black with Blue undertone",
1340
+ "Steering Wheel": "Steering wheel with Vibrant Silver Stitching and accents",
1341
+ "Headliner": "Satellite Grey Headliner",
1342
+ "Seats": "Sport Seats"
1343
+ },
1344
+ "Pricing": "Included"
1345
+ },
1346
+ "John Cooper Works Style": {
1347
+ "Features": {
1348
+ "Exterior Accents": "Piano Black exterior accents",
1349
+ "Interior": "Vescin and Knit black interior",
1350
+ "Dashboard Topper": "Dashboard topper in Black/Red",
1351
+ "Steering Wheel": "Steering wheel with Paddle Shifters and red stitching",
1352
+ "Headliner": "Anthracite Black Headliner",
1353
+ "Seats": "John Cooper Works Sport Seats",
1354
+ "Wheels": "Black or Polished Wheels"
1355
+ },
1356
+ "Pricing": 1200
1357
+ },
1358
+ "Favoured Style": {
1359
+ "Features": {
1360
+ "Upholsteries": "Choice of 2 Vescin leather-free upholsteries",
1361
+ "Exterior Accents": "Vibrant Silver exterior accents",
1362
+ "Dashboard Topper": "Dashboard topper in Grey/Beige with Herringbone Pattern",
1363
+ "Console": "Closable Box in center console",
1364
+ "Headliner": "Anthracite Black Headliner",
1365
+ "Seats": "John Cooper Works Sport Seats"
1366
+ },
1367
+ "Pricing": "Included"
1368
+ },
1369
+ "Packages": {
1370
+ "Comfort Package Plus": {
1371
+ "Package Features": {
1372
+ "Parking Assistant Plus": True,
1373
+ "MINI Navigation AR": True
1374
+ },
1375
+ "Pricing": 1500
1376
+ },
1377
+ "Comfort Package": {
1378
+ "Price": 950
1379
+ }
1380
+ }
1381
+ }
1382
+ }
1383
+ }
1384
+ },
1385
+ "specifications": {
1386
+ "Overview":{
1387
+ "Engine Type": "TwinPower Turbo, 1.5-liter, inline 3-cylinder direct-injection engine with double VANOS",
1388
+ "Transmission": "6-speed manual",
1389
+ "Drive Type": "Front wheel drive",
1390
+ "Cylinders": "Inline 3",
1391
+ "Total Seating": 4,
1392
+ "Basic Warranty": "4 yr./ 50,000 mi.",
1393
+ },
1394
+ "Fuel & MPG": {
1395
+ "Fuel Type": "Premium unleaded (recommended)",
1396
+ "EPA City MPG": 27,
1397
+ "EPA Highway MPG": 38,
1398
+ "EPA Combined MPG": 27,
1399
+ "Range in Miles": {"City": 313.2, "Highway": 440.8},
1400
+ "Fuel Tank Capacity": "11.6 gal.",
1401
+ },
1402
+ "Engine": {
1403
+ "Base Engine Size": "1.5 L",
1404
+ "Cylinders": "Inline 3",
1405
+ "Base Engine Type": "Gas",
1406
+ "Horsepower": "134 hp @ 4,500 rpm",
1407
+ "Torque": "162 lb-ft @ 1,480 rpm",
1408
+ "Valves": 12,
1409
+ "Cam Type": "Double overhead cam (DOHC)",
1410
+ "Valve Timing": "Variable",
1411
+ "Direct Injection": "Standard",
1412
+ },
1413
+ "Towing & Hauling": {"Max Payload Capacity": "838 lbs."},
1414
+ "Drivetrain": {
1415
+ "Transmission": "6-speed manual",
1416
+ "Drive Type": "Front wheel drive",
1417
+ },
1418
+ "Suspension": {
1419
+ "Four-Wheel Independent Suspension": "Standard",
1420
+ "Front and Rear Stabilizer Bar": "Standard",
1421
+ "Front Type": "Strut",
1422
+ "Rear Type": "Multi-Link",
1423
+ },
1424
+ }
1425
+ },
1426
+ 9: {
1427
+ "make": "mini",
1428
+ "model": "John Cooper Works ALL4",
1429
+ "year": 2024,
1430
+ "base_price":43800,
1431
+ "variants": {
1432
+ "Classic": {
1433
+ "features": {
1434
+ "Exterior Colors": "Choice of 3 exterior colors",
1435
+ "Interior": "Carbon Black Dinamica/Cloth interior",
1436
+ "Wheels": "18” JCW Grip Spoke Black Wheels",
1437
+ "Transmission": "8-Speed Sport Automatic transmission",
1438
+ "Tires": "All-season runflat tires",
1439
+ "Keyless Entry": "Comfort Access Keyless entry",
1440
+ "Media Display": "Touchscreen media display",
1441
+ "Apple CarPlay": "Apple CarPlay compatible",
1442
+ "Active Driving Assistant": True,
1443
+ "LED Headlights": True,
1444
+ "Heated Front Seats": True,
1445
+ "Heated Mirrors": True,
1446
+ "Heated Washer Jets": True,
1447
+ "Panoramic Moonroof": True,
1448
+ "SiriusXM": "SiriusXM® with 12-mo Platinum Plan trial subscription",
1449
+ "Price": "Included",
1450
+ },
1451
+ "Signature Trim": {
1452
+ "features": {
1453
+ "Included in Classic": True,
1454
+ "Exterior Colors": "Choice of multiple exterior and roof colors",
1455
+ "Interior Upholstery": "Choice of interior upholstery",
1456
+ "Wheels": "Choice of 18” wheels",
1457
+ "MINI Navigation": True,
1458
+ "Advanced Real-time Traffic": True,
1459
+ }
1460
+ },
1461
+ "Iconic Trim": {
1462
+ "features": {
1463
+ "Included in Signature": True,
1464
+ "Additional Paint and Roof Color Options": True,
1465
+ "Premium Leather Interior Upholstery": "Choice of premium leather interior upholstery",
1466
+ "Wheels": "Choice of 18” or 19” wheels",
1467
+ "Piano Black Exterior Trim": True,
1468
+ "Active Cruise Control": True,
1469
+ "Head Up Display": True,
1470
+ "Power Front Seats": True,
1471
+ "Wireless Phone Charging": True,
1472
+ "Parking Assistant": True
1473
+ },
1474
+ "specifications": {
1475
+ "Overview":{
1476
+ "Engine Type": "TwinPower Turbo, 1.5-liter, inline 4-cylinder direct-injection engine with double VANOS",
1477
+ "Transmission": "8-speed manual",
1478
+ "Drive Type": "All wheel drive",
1479
+ "Cylinders": "Inline 4",
1480
+ "Total Seating": 5,
1481
+ "Basic Warranty": "4 yr./ 50,000 mi.",
1482
+ },
1483
+ "Fuel & MPG": {
1484
+ "Fuel Type": "Premium unleaded (recommended)",
1485
+ "EPA City MPG": 24,
1486
+ "EPA Highway MPG": 30,
1487
+ "EPA Combined MPG": 26,
1488
+ "Range in Miles": {"City": 386.4, "Highway": 483},
1489
+ "Fuel Tank Capacity": "16.1 gal.",
1490
+ },
1491
+ "Engine": {
1492
+ "Base Engine Size": "2.0 L",
1493
+ "Cylinders": "Inline 4",
1494
+ "Base Engine Type": "Gas",
1495
+ "Horsepower": "301 hp @ 5,000 rpm",
1496
+ "Torque": "331 lb-ft @ 1,750 rpm",
1497
+ "Valves": 12,
1498
+ "Cam Type": "Double overhead cam (DOHC)",
1499
+ "Valve Timing": "Variable",
1500
+ "Direct Injection": "Standard",
1501
+ },
1502
+ "Drivetrain": {
1503
+ "Transmission": "8-speed manual",
1504
+ "Drive Type": "All wheel drive",
1505
+ },
1506
+ "Suspension": {
1507
+ "Four-Wheel Independent Suspension": "Standard",
1508
+ "Front and Rear Stabilizer Bar": "Standard",
1509
+ "Front Type": "Strut",
1510
+ "Rear Type": "Multi-Link",
1511
+ },
1512
+
1513
+ }
1514
+
1515
+
1516
+
1517
+ }
1518
+ }
1519
+ }
1520
+ }
1521
+ }
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
dataset/dataset_json.py ADDED
@@ -0,0 +1,882 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ data = {
2
+ "countryman": {
3
+ "make": "mini",
4
+ "model": "countryman",
5
+ "year": 2025,
6
+ "base_price": 38900,
7
+ "variants": {
8
+ "SIGNATURE PLUS Trim": {
9
+ "features": [
10
+ "Choice of 18” Wheels",
11
+ "Panoramic Moonroof",
12
+ "MINI Navigation",
13
+ "MINI Head Up Display",
14
+ "Heated Front Seats",
15
+ "Heated Steering Wheel",
16
+ "Parking Assistant",
17
+ "Wireless Charging",
18
+ "Alarm System",
19
+ "Remote Engine Start",
20
+ "Comfort Package",
21
+ "Choice of Classic or Favoured Style",
22
+ ],
23
+ "price": 38900,
24
+ },
25
+ "ICONIC Trim": {
26
+ "features": [
27
+ "Panoramic Moonroof",
28
+ "MINI Navigation",
29
+ "MINI Head Up Display",
30
+ "Heated Front Seats",
31
+ "Heated Steering Wheel",
32
+ "Parking Assistant",
33
+ "Wireless Charging",
34
+ "Alarm System",
35
+ "Remote Engine Start",
36
+ "Comfort Package",
37
+ "Choice of Classic or Favoured Style",
38
+ "Choice of 18” or 19” Wheels",
39
+ "Power Front Seats",
40
+ "Interior Camera",
41
+ "harman / kardon Premium Sound System",
42
+ "Navigation with Augmented Reality",
43
+ "Driving Assistant Plus",
44
+ "Parking Assistant Plus",
45
+ "Comfort Package Plus",
46
+ "Choice of Classic or Favoured Style",
47
+ ],
48
+ "price": 42100,
49
+ },
50
+ },
51
+ "add_ons": {
52
+ "COMFORT PACKAGE PLUS": {
53
+ "pric e": 1500,
54
+ "features": [
55
+ "Auto-dimming rearview mirror",
56
+ "Parking Assistant Plus",
57
+ "Auto-dimming interior and exterior mirrors",
58
+ "MINI Navigation AR",
59
+ "Wireless Device Charging",
60
+ ],
61
+ },
62
+ "Comfort Package Max": {
63
+ "price": 2400,
64
+ "features": [
65
+ "Auto-dimming rearview mirror",
66
+ "Parking Assistant Plus",
67
+ "Auto-dimming interior and exterior mirrors",
68
+ "MINI Navigation AR",
69
+ "Wireless Device Charging",
70
+ "Active Driving Assistant Pro",
71
+ ],
72
+ },
73
+ },
74
+ "specifications": {
75
+ "Model": "2025 Mini Countryman S All4",
76
+ "Vehicle Type": "front-engine, all-wheel-drive, 5-passenger, 4-door wagon",
77
+ "Engine": {
78
+ "Type": "turbocharged and intercooled DOHC 16-valve inline-4",
79
+ "Material": "aluminum block and head",
80
+ "Fuel Injection": "direct",
81
+ "Displacement": {"in3": 122, "cm3": 1998},
82
+ "Power": "241 hp @ 4500 rpm",
83
+ "Torque": "295 lb-ft @ 1500 rpm",
84
+ },
85
+ "Transmission": {"Type": "7-speed dual-clutch automatic"},
86
+ "Dimensions": {
87
+ "Wheelbase": "106.0 in",
88
+ "Length": "175.0 in",
89
+ "Width": "72.6 in",
90
+ "Height": "65.2 in",
91
+ "Passenger Volume": {"Front": "53 ft3", "Rear": "44 ft3"},
92
+ "Cargo Volume": {"Behind Front": "56 ft3", "Behind Rear": "25 ft3"},
93
+ "Curb Weight (C/D est)": "3800 lb",
94
+ },
95
+ "Performance (C/D est)": {
96
+ "0-60 mph": "6.0 sec",
97
+ "1/4-Mile": "14.4 sec",
98
+ "Top Speed": "130-150 mph",
99
+ },
100
+ "EPA Fuel Economy": {
101
+ "Combined": "27 mpg",
102
+ "City": "24 mpg",
103
+ "Highway": "32 mpg",
104
+ },
105
+ },
106
+ },
107
+ "hardtop4_door": {
108
+ "make": "mini",
109
+ "model": "hardtop4_door",
110
+ "year": 2025,
111
+ "base_price": 26800,
112
+ "variants": {
113
+ "Classic Trim": {
114
+ "features": [
115
+ "Choice of 3 exterior colors",
116
+ "Carbon Black Leatherette interior",
117
+ "15” Heli Spoke Wheels",
118
+ "6 Speed Manual transmission",
119
+ "Touchscreen media display",
120
+ "Apple CarPlay compatible",
121
+ "Active driving assistant",
122
+ "LED Headlights",
123
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
124
+ ],
125
+ "price": 26800,
126
+ },
127
+ "Signature Trim": {
128
+ "features": [
129
+ "Choice of 3 exterior colors",
130
+ "Carbon Black Leatherette interior",
131
+ "6 Speed Manual transmission",
132
+ "Touchscreen media display",
133
+ "Apple CarPlay compatible",
134
+ "Active driving assistant",
135
+ "LED Headlights",
136
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
137
+ "Choice of multiple exterior and roof/mirror colors",
138
+ "16” Wheels in Grey or Black",
139
+ "All-season runflat tires",
140
+ "6 Speed Manual or 7-Speed Dual-Clutch transmission",
141
+ "Comfort Access Keyless Entry",
142
+ "MINI Navigation",
143
+ "Panoramic moonroof",
144
+ "Heated front seats",
145
+ "Dual zone climate control",
146
+ ],
147
+ "price": 31800,
148
+ },
149
+ "Iconic Trim": {
150
+ "features": [
151
+ "Choice of 3 exterior colors",
152
+ "Carbon Black Leatherette interior",
153
+ "6 Speed Manual transmission",
154
+ "Touchscreen media display",
155
+ "Apple CarPlay compatible",
156
+ "Active driving assistant",
157
+ "LED Headlights",
158
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
159
+ "Choice of multiple exterior and roof/mirror colors",
160
+ "All-season runflat tires",
161
+ "6 Speed Manual or 7-Speed Dual-Clutch transmission",
162
+ "Comfort Access Keyless Entry",
163
+ "MINI Navigation",
164
+ "Panoramic moonroof",
165
+ "Heated front seats",
166
+ "Dual zone climate control",
167
+ "Additional paint and roof/mirror color options",
168
+ "Choice of premium/leather interior upholstery",
169
+ "Choice of 17” wheels",
170
+ "Nappa Leather Steering Wheel",
171
+ "Anthracite Headliner",
172
+ "Universal Garage Door Opener",
173
+ "Wireless charging",
174
+ ],
175
+ "price": 34200,
176
+ },
177
+ },
178
+ "add_ons": {
179
+ "Signature Upholstery": {
180
+ "features": """Fine-tune this package to include the features you want. Choose from the available options below, then click "Add To Build" to continue. Option images may represent an alternate vehicle than the one being configured.""",
181
+ "price": 1750,
182
+ }
183
+ },
184
+ "specifications": {
185
+ "Overview": {
186
+ "Engine Type": "Gas",
187
+ "Transmission": "6-speed manual",
188
+ "Drive Type": "Front wheel drive",
189
+ "Cylinders": "Inline 3",
190
+ "Total Seating": 5,
191
+ "Basic Warranty": "4 yr./ 50,000 mi.",
192
+ },
193
+ "Fuel & MPG": {
194
+ "Fuel Type": "Premium unleaded (recommended)",
195
+ "EPA City MPG": 27,
196
+ "EPA Highway MPG": 38,
197
+ "EPA Combined MPG": 31,
198
+ "Range in Miles": {"City": 313.2, "Highway": 440.8},
199
+ "Fuel Tank Capacity": "11.6 gal.",
200
+ },
201
+ "Engine": {
202
+ "Base Engine Size": "1.5 L",
203
+ "Cylinders": "Inline 3",
204
+ "Base Engine Type": "Gas",
205
+ "Horsepower": "134 hp @ 4,500 rpm",
206
+ "Torque": "162 lb-ft @ 1,480 rpm",
207
+ "Valves": 12,
208
+ "Cam Type": "Double overhead cam (DOHC)",
209
+ "Valve Timing": "Variable",
210
+ "Direct Injection": "Standard",
211
+ },
212
+ "Towing & Hauling": {"Max Payload Capacity": "838 lbs."},
213
+ "Drivetrain": {
214
+ "Transmission": "6-speed manual",
215
+ "Drive Type": "Front wheel drive",
216
+ },
217
+ "Suspension": {
218
+ "Four-Wheel Independent Suspension": "Standard",
219
+ "Front and Rear Stabilizer Bar": "Standard",
220
+ },
221
+ },
222
+ },
223
+ "cooper_se": {
224
+ "make": "mini",
225
+ "model": "cooper_se",
226
+ "year": 2025,
227
+ "base_price": 30900,
228
+ "variants": {
229
+ "Classic Trim": {
230
+ "features": [
231
+ "Choice of 3 exterior colors",
232
+ "Carbon Black Leatherette interior",
233
+ "16” Revolite Spoke Grey Wheels",
234
+ "Performance Summer tires",
235
+ "Single Speed Automatic transmission",
236
+ "Comfort Access Keyless Entry",
237
+ "Apple CarPlay compatible",
238
+ "Active driving assistant",
239
+ "LED Headlights",
240
+ "MINI Navigation",
241
+ "Advanced real-time traffic",
242
+ "Dual zone climate control",
243
+ "Heated front seats",
244
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
245
+ ],
246
+ "price": 30900,
247
+ },
248
+ "Signature Trim": {
249
+ "features": [
250
+ "Choice of 3 exterior colors",
251
+ "Carbon Black Leatherette interior",
252
+ "Performance Summer tires",
253
+ "Single Speed Automatic transmission",
254
+ "Comfort Access Keyless Entry",
255
+ "Apple CarPlay compatible",
256
+ "Active driving assistant",
257
+ "LED Headlights",
258
+ "MINI Navigation",
259
+ "Advanced real-time traffic",
260
+ "Dual zone climate control",
261
+ "Heated front seats",
262
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
263
+ "Choice of multiple exterior and roof colors",
264
+ "Choice of 16” or 17” wheels",
265
+ "Performance Summer tires",
266
+ "Panoramic moonroof",
267
+ "Auto dimming / power folding mirrors",
268
+ "Choice of interior surface",
269
+ ],
270
+ "price": 34225,
271
+ },
272
+ "Iconic Trim": {
273
+ "features": [
274
+ "Choice of 3 exterior colors",
275
+ "Carbon Black Leatherette interior",
276
+ "Performance Summer tires",
277
+ "Single Speed Automatic transmission",
278
+ "Comfort Access Keyless Entry",
279
+ "Apple CarPlay compatible",
280
+ "Active driving assistant",
281
+ "LED Headlights",
282
+ "MINI Navigation",
283
+ "Advanced real-time traffic",
284
+ "Dual zone climate control",
285
+ "Heated front seats",
286
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
287
+ "Choice of multiple exterior and roof colors",
288
+ "Choice of 16” or 17” wheels",
289
+ "Performance Summer tires",
290
+ "Panoramic moonroof",
291
+ "Auto dimming / power folding mirrors",
292
+ "Choice of interior surface",
293
+ "Additional paint and roof color options",
294
+ "Choice of premium/leather interior upholstery",
295
+ "Choice of 16” or 17” wheels",
296
+ "Performance Summer tires",
297
+ "Piano Black exterior trim",
298
+ "Nappa Leather Steering Wheel",
299
+ "Active cruise control",
300
+ "Universal garage door opener",
301
+ "Head-Up display",
302
+ "Parking Assistant",
303
+ ],
304
+ "price": 36700,
305
+ },
306
+ },
307
+ "add_ons": {
308
+ "Signature Upholstery": {
309
+ "features": """Fine-tune this package to include the features you want. Choose from the available options below, then click "Add To Build" to continue. Option images may represent an alternate vehicle than the one being configured.""",
310
+ "price": 1750,
311
+ }
312
+ },
313
+ "specifications": {
314
+ "Vehicle Type": "front-motor, front-wheel-drive, 4-passenger, 2-door hatchback",
315
+ "Price As Tested": {"Base Price": "$30,750", "Tested Price": "$37,750"},
316
+ "Motor Type": {
317
+ "Type": "permanent-magnet synchronous AC",
318
+ "Power": "181 hp",
319
+ "Torque": "199 lb-ft",
320
+ "Battery": "28.9-kWh lithium-ion battery pack",
321
+ },
322
+ "Transmission": "single-speed direct-drive",
323
+ "Chassis": {
324
+ "Suspension": "struts/multilink (F/R)",
325
+ "Brakes": {"Front": "11.1-in vented disc", "Rear": "11.0-in disc"},
326
+ "Tires": "Goodyear Eagle F1 Asymmetric 3, 205/45R-17 88W ★",
327
+ },
328
+ "Dimensions": {
329
+ "Wheelbase": "98.2 in",
330
+ "Length": "151.4 in",
331
+ "Width": "68.0 in",
332
+ "Height": "56.4 in",
333
+ "Passenger Volume": "80 ft3",
334
+ "Cargo Volume": "9 ft3",
335
+ "Curb Weight": "3099 lb",
336
+ },
337
+ "C/D Test Results": {
338
+ "60 mph": "6.1 sec",
339
+ "Rolling Start 5–60 mph": "6.2 sec",
340
+ "Top Gear 30–50 mph": "2.3 sec",
341
+ "Top Gear 50–70 mph": "3.4 sec",
342
+ "1/4 Mile": "14.8 sec @ 91 mph",
343
+ "Top Speed (Governor Limited)": "93 mph",
344
+ "Braking 70–0 mph": "169 ft",
345
+ "Roadholding 300-ft-dia Skidpad": "0.85 g",
346
+ "Standing-Start Accel Times": "omit 1-ft rollout of 0.3 sec",
347
+ },
348
+ "EPA Fuel Economy": {
349
+ "Combined": "108 MPGe",
350
+ "City": "115 MPGe",
351
+ "Highway": "100 MPGe",
352
+ "Range": "110 miles",
353
+ },
354
+ },
355
+ },
356
+ "hardtop2_door": {
357
+ "make": "mini",
358
+ "model": "hardtop2_door",
359
+ "year": 2025,
360
+ "base_price": 28900,
361
+ "variants": {
362
+ "Signature Trim": {
363
+ "features": [
364
+ "Choice of 4 paint colors",
365
+ "Roof/Mirrors in Body Color",
366
+ "17“ Wheels",
367
+ "Heated Steering Wheel",
368
+ "Heated Front Seats",
369
+ "MINI Navigation",
370
+ "MINI Head Up Display",
371
+ "Panoramic Moonroof",
372
+ "LED Headlights",
373
+ "Parking Assistant",
374
+ "Classic Style only",
375
+ ],
376
+ "price": 28900,
377
+ },
378
+ "Signature Plus Trim": {
379
+ "features": [
380
+ "Choice of 4 paint colors",
381
+ "Roof/Mirrors in Body Color",
382
+ "Choice of 6 paint colors",
383
+ "Choice of Contrast Roof/Mirrors",
384
+ "Choice of 17” or 18” wheels",
385
+ "Comfort Package",
386
+ "Active Driving Assistant",
387
+ "Classic or Favoured Style",
388
+ "Heated Steering Wheel",
389
+ "Heated Front Seats",
390
+ "MINI Navigation",
391
+ "MINI Head Up Display",
392
+ "Panoramic Moonroof",
393
+ "LED Headlights",
394
+ "Parking Assistant",
395
+ "Classic Style only",
396
+ ],
397
+ "price": 31350,
398
+ },
399
+ "Iconic Trim": {
400
+ "features": [
401
+ "Choice of 4 paint colors",
402
+ "Roof/Mirrors in Body Color",
403
+ "Choice of 6 paint colors",
404
+ "Choice of Contrast Roof/Mirrors",
405
+ "Choice of 17” or 18” wheels",
406
+ "Comfort Package",
407
+ "Active Driving Assistant",
408
+ "Classic or Favoured Style",
409
+ "Heated Steering Wheel",
410
+ "Heated Front Seats",
411
+ "MINI Navigation",
412
+ "MINI Head Up Display",
413
+ "Panoramic Moonroof",
414
+ "LED Headlights",
415
+ "Parking Assistant",
416
+ "Classic Style only",
417
+ "Choice of 6 paint colors",
418
+ "Choice of Contrast Roof/Mirrors",
419
+ "Choice of 17” or 18” wheels",
420
+ "Comfort Package Plus",
421
+ "Navigation with Augmented Reality",
422
+ "Power Front Seats",
423
+ "Interior Camera",
424
+ "harman / kardon Premium Sound System",
425
+ "Classic or Favoured Style",
426
+ ],
427
+ "price": 34050,
428
+ },
429
+ },
430
+ "add_ons": {
431
+ "Comfort Package Plus": {
432
+ "features": """Fine-tune this package to include the features you want. Choose from the available options below, then click "Add To Build" to continue. Option images may represent an alternate vehicle than the one being configured.""",
433
+ "price": 1500,
434
+ },
435
+ "Comfort Package": {
436
+ "features": """General quality of life improvements""",
437
+ "price": 900,
438
+ },
439
+ },
440
+ "specifications": {
441
+ "ENGINE": {
442
+ "Liters/type": "TwinPower Turbo, 2.0-liter, 4-cylinder direct-injection engine with double VANOS",
443
+ "Displacement (cc)": 1998,
444
+ "Horsepower (bhp @ rpm)": "161 @ 5000 - 6500",
445
+ "Torque (lb-ft @ rpm)": "184 @ 1450 - 4500",
446
+ },
447
+ "TRANSMISSION": {"Type": "7-Speed Dual Clutch Transmission"},
448
+ "PERFORMANCE": {"Acceleration 0-60 MPH (sec)": 7.4, "Top Speed (mph)": 130},
449
+ "FUEL CONSUMPTION": {
450
+ "Automatic Combined (mpg)": "TBA",
451
+ "Automatic City / Highway (mpg)": "TBA",
452
+ "Fuel Tank Capacity (gallons)": 11.6,
453
+ },
454
+ "WHEELS AND TIRES": {
455
+ "Tire / Type": "All-season non run-flat tires",
456
+ "Wheel Dimensions (in)": "17 x 7 front | 17 x 7 rear",
457
+ "Tire Dimensions (mm)": "215/45 front | 215/45 rear",
458
+ },
459
+ "EXTERIOR DIMENSIONS": {
460
+ "Length / Width / Height (in)": "152.6 / 68.7 / 56.4",
461
+ "Width including mirrors (in)": 77.6,
462
+ "Curb Weight (lbs)": 3014,
463
+ "Payload (lbs)": 785,
464
+ },
465
+ "INTERIOR DIMENSIONS": {
466
+ "Headroom, Front/rear (in)": "40.3 / 36.9",
467
+ "Legroom, Front/rear (in)": "41.4 / 30.8",
468
+ "Shoulder Room, Front/rear (in)": "51.2 / 49.1",
469
+ "Cargo Capacity (cu Ft)": "8.9 - 34.4",
470
+ },
471
+ },
472
+ },
473
+ "cooper_convertible": {
474
+ "make": "mini",
475
+ "model": "cooper_convertible",
476
+ "year": 2025,
477
+ "base_price": 38990,
478
+ "variants": {
479
+ "Signature Plus Trim": {
480
+ "features": [
481
+ "Choice of multiple exterior and mirror colors",
482
+ "Carbon Black Leatherette interior",
483
+ "Choice of 17” wheels",
484
+ "Runflat tires",
485
+ "6 Speed Manual or 7-Speed Dual-Clutch transmission",
486
+ "Comfort Access Keyless Entry",
487
+ "MINI Navigation",
488
+ "3-in-1 Convertible Roof",
489
+ "Heated front seats",
490
+ "Apple CarPlay compatible",
491
+ "Active driving assistant",
492
+ "LED Headlights",
493
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
494
+ "Dual zone climate control",
495
+ "Nappa Leather Steering Wheel",
496
+ ],
497
+ "price": 38990,
498
+ },
499
+ "Iconic Trim": {
500
+ "features": [
501
+ "Choice of multiple exterior and mirror colors",
502
+ "Carbon Black Leatherette interior",
503
+ "Choice of 17” wheels",
504
+ "Runflat tires",
505
+ "6 Speed Manual or 7-Speed Dual-Clutch transmission",
506
+ "Comfort Access Keyless Entry",
507
+ "MINI Navigation",
508
+ "3-in-1 Convertible Roof",
509
+ "Heated front seats",
510
+ "Apple CarPlay compatible",
511
+ "Active driving assistant",
512
+ "LED Headlights",
513
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
514
+ "Dual zone climate control",
515
+ "Nappa Leather Steering Wheel",
516
+ "Additional paint and roof/mirror color options",
517
+ "Choice of premium/leather interior upholstery",
518
+ "Choice of 17” or 18” wheels",
519
+ "Piano Black exterior trim",
520
+ "harman/kardon premium sound system",
521
+ "Universal Garage Door Opener",
522
+ "Wireless charging",
523
+ "Head-Up display",
524
+ "Parking Assistant",
525
+ ],
526
+ "price": 42000,
527
+ },
528
+ },
529
+ "add_ons": {
530
+ "Comfort Package Plus": {
531
+ "features": """Fine-tune this package to include the features you want. Choose from the available options below, then click "Add To Build" to continue. Option images may represent an alternate vehicle than the one being configured.""",
532
+ "price": 1500,
533
+ },
534
+ "Comfort Package": {
535
+ "features": """General quality of life improvements""",
536
+ "price": 900,
537
+ },
538
+ },
539
+ "specifications": {
540
+ "Engine and Performance": {
541
+ "Engine Type": "2.0L I-4 turbocharged",
542
+ "Horsepower": "228 hp @ 5,000 rpm",
543
+ "Torque": "235 lb-ft @ 1,350 rpm",
544
+ "Transmission": "8-speed automatic",
545
+ "0-60 mph": "6.3 seconds",
546
+ "Top Speed": "149 mph",
547
+ },
548
+ "Dimensions and Weight": {
549
+ "Curb Weight": "3,018 lbs",
550
+ "Length": "152.8 inches",
551
+ "Width": "68.0 inches",
552
+ "Height": "55.7 inches",
553
+ "Wheelbase": "98.2 inches",
554
+ "Turning Radius": "17.7 inches",
555
+ },
556
+ "Interior and Cargo": {
557
+ "Seating Capacity": 4,
558
+ "Front Leg Room": "41.4 inches",
559
+ "Rear Leg Room": "30.9 inches",
560
+ "Luggage Capacity": "5.7 cu ft (up to 7.6 cu ft with seats down)",
561
+ },
562
+ "Fuel Efficiency": {
563
+ "Fuel Tank Capacity": "11.6 gallons",
564
+ "EPA Mileage Estimates": "23 mpg city / 33 mpg highway",
565
+ },
566
+ "Additional Features": {
567
+ "Drive Type": "Front-wheel drive",
568
+ "Payload Capacity": "758 lbs",
569
+ },
570
+ },
571
+ },
572
+ "clubman": {
573
+ "make": "mini",
574
+ "model": "clubman",
575
+ "year": 2024,
576
+ "base_price": 34050,
577
+ "variants": {
578
+ "Classic Trim": {
579
+ "features": [
580
+ "Choice of 3 exterior colors",
581
+ "Carbon Black Leatherette interior",
582
+ "17” Vent Spoke Wheels",
583
+ "7-Speed Sport Automatic transmission",
584
+ "Runflat tires",
585
+ "Comfort Access Keyless entry",
586
+ "Touchscreen media display",
587
+ "Apple CarPlay compatible",
588
+ "Active driving assistant",
589
+ "LED Headlights and Fog Lights",
590
+ "Heated mirrors and washer jets",
591
+ "SiriusXM® with 12-mo Platinum Plan trial subscription",
592
+ ],
593
+ "price": 34050,
594
+ },
595
+ "Signature Trim": {
596
+ "features": [
597
+ "Everything in Classic +",
598
+ "Choice of multiple exterior and roof colors",
599
+ "Choice of interior upholstery",
600
+ "Choice of 17” wheels",
601
+ "MINI Navigation",
602
+ "Advanced real-time traffic",
603
+ "Heated front seats",
604
+ "Panoramic moonroof",
605
+ ],
606
+ "price": 37000,
607
+ },
608
+ "Iconic Trim": {
609
+ "features": [
610
+ "Everything in Signature +",
611
+ "Additional paint and roof color options",
612
+ "Choice of premium leather interior upholstery",
613
+ "Choice of 17” or 18” wheels",
614
+ "Piano black exterior trim",
615
+ "harman/kardon premium sound system",
616
+ "Power front seats",
617
+ "Active Cruise Control",
618
+ "Wireless charging",
619
+ "Head up display",
620
+ "Parking Assistant",
621
+ ],
622
+ "price": 41000,
623
+ },
624
+ },
625
+ "add_ons": {
626
+ "Space-saver spare": {
627
+ "price": 250,
628
+ "features": [
629
+ "A space-saver spare tire stowed under the luggage compartment floor",
630
+ "Includes a car jack and wrench",
631
+ ],
632
+ },
633
+ "Headliner in Anthracite": {
634
+ "price": 250,
635
+ "features": [
636
+ "Transforms the interior ceiling, frame pillars, sun visors, and grab handles to dark Anthracite color"
637
+ ],
638
+ },
639
+ },
640
+ "specifications": {
641
+ "EPA Classification": "Midsize Cars",
642
+ "Drivetrain": "Front Wheel Drive",
643
+ "Engine": {
644
+ "Engine Type and Required Fuel": "Intercooled Turbo Premium Unleaded I-4",
645
+ "Displacement (liters/cubic inches)": "2.0 L/122",
646
+ "Fuel System": "Gasoline Direct Injection",
647
+ "Maximum Horsepower @ RPM": "189 @ 5000",
648
+ "Maximum Torque @ RPM": "206 @ 1350",
649
+ },
650
+ "Transmission": {
651
+ "Transmission Description": "Auto-Shift Manual",
652
+ "Number of Transmission Speeds": 7,
653
+ "First Gear Ratio (:1)": 14.43,
654
+ "Second Gear Ratio (:1)": 8.51,
655
+ "Third Gear Ratio (:1)": 5.41,
656
+ "Fourth Gear Ratio (:1)": 3.79,
657
+ "Fifth Gear Ratio (:1)": 2.93,
658
+ "Sixth Gear Ratio (:1)": 2.35,
659
+ "Seventh Gear Ratio (:1)": 1.90,
660
+ "Reverse Ratio (:1)": 13.12,
661
+ },
662
+ "Fuel Economy and Range": {
663
+ "EPA Fuel Economy, combined/city/highway (mpg)": "29 / 25 / 35",
664
+ "CO2 Emissions, 15K mi/year (tons)": 6.1,
665
+ "Range, city/highway (miles)": "330.00 / 462.00",
666
+ "Fuel Tank Capacity (gallons)": 13.2,
667
+ },
668
+ "Exterior Dimensions": {
669
+ "Wheelbase (inches)": 105.1,
670
+ "Length (inches)": 168.3,
671
+ "Width, without mirrors (inches)": 70.9,
672
+ "Height (inches)": 56.7,
673
+ "Front Track Width (inches)": 61.6,
674
+ "Rear Track Width (inches)": 61.5,
675
+ },
676
+ "Interior Dimensions": {
677
+ "Passenger / Seating Capacity": 5,
678
+ "Total Passenger Volume (cubic feet)": 92.5,
679
+ "Front Head Room (inches)": 40.2,
680
+ "Front Leg Room (inches)": 41.4,
681
+ "Front Shoulder Room (inches)": 54.7,
682
+ "Second Row Head Room (inches)": 38,
683
+ "Second Row Leg Room (inches)": 34.3,
684
+ "Second Row Shoulder Room (inches)": 52.8,
685
+ "Cargo Space/Area Behind Front Row (cubic feet)": 47.9,
686
+ "Cargo Space/Area Behind Second Row (cubic feet)": 17.5,
687
+ },
688
+ "Steering": {
689
+ "Steering Type": "Rack-Pinion",
690
+ "Turning Diameter / Radius, curb to curb (feet)": 37.1,
691
+ },
692
+ "Suspension": {
693
+ "Front Suspension Type": "Strut",
694
+ "Rear Suspension Type": "Multi-Link",
695
+ },
696
+ "Brakes": {
697
+ "Brake Type": "4-Wheel Disc",
698
+ "Anti-Lock-Braking System": "4-Wheel",
699
+ "Front Brake Rotors, diameter x thickness (inches)": "11.6",
700
+ "Rear Brake Rotors, diameter x thickness (inches)": "10.2",
701
+ },
702
+ "Wheels and Tires": {
703
+ "Front Wheel Size (inches)": "17 X 7.5",
704
+ "Front Tire Size": "P225/45WR17",
705
+ "Rear Wheel Size (inches)": "17 X 7.5",
706
+ "Rear Tire Size": "P225/45WR17",
707
+ },
708
+ "Weight Information": {"Base Curb Weight (pounds)": 3307},
709
+ "Electrical": {"Maximum Alternator Capacity (amps)": 150},
710
+ },
711
+ },
712
+ "countryman_jcw": {
713
+ "make": "mini",
714
+ "model": "countryman_jcw",
715
+ "year": 2024,
716
+ "base_price": 43800,
717
+ "variants": {
718
+ "Classic Trim": {
719
+ "features": {
720
+ "Exterior Colors": "Choice of 3 exterior colors",
721
+ "Interior": "Carbon Black Dinamica/Cloth interior",
722
+ "Wheels": "18” JCW Grip Spoke Black Wheels",
723
+ "Transmission": "8-Speed Sport Automatic transmission",
724
+ "Tires": "All-season runflat tires",
725
+ "Keyless Entry": "Comfort Access Keyless entry",
726
+ "Media Display": "Touchscreen media display",
727
+ "Apple CarPlay": "Apple CarPlay compatible",
728
+ "Active Driving Assistant": True,
729
+ "LED Headlights": True,
730
+ "Heated Front Seats": True,
731
+ "Heated Mirrors": True,
732
+ "Heated Washer Jets": True,
733
+ "Panoramic Moonroof": True,
734
+ "SiriusXM": "SiriusXM® with 12-mo Platinum Plan trial subscription",
735
+ "Price": "Included",
736
+ }
737
+ },
738
+ "Signature Trim": {
739
+ "features": {
740
+ "Included in Classic": True,
741
+ "Exterior Colors": "Choice of multiple exterior and roof colors",
742
+ "Interior Upholstery": "Choice of interior upholstery",
743
+ "Wheels": "Choice of 18” wheels",
744
+ "MINI Navigation": True,
745
+ "Advanced Real-time Traffic": True,
746
+ }
747
+ },
748
+ "Iconic Trim": {
749
+ "features": {
750
+ "Included in Signature": True,
751
+ "Additional Paint and Roof Color Options": True,
752
+ "Premium Leather Interior Upholstery": "Choice of premium leather interior upholstery",
753
+ "Wheels": "Choice of 18” or 19” wheels",
754
+ "Piano Black Exterior Trim": True,
755
+ "Active Cruise Control": True,
756
+ "Head Up Display": True,
757
+ "Power Front Seats": True,
758
+ "Wireless Phone Charging": True,
759
+ "Parking Assistant": True,
760
+ },
761
+ },
762
+ },
763
+ "specifications": {
764
+ "Overview": {
765
+ "Engine Type": "TwinPower Turbo, 1.5-liter, inline 4-cylinder direct-injection engine with double VANOS",
766
+ "Transmission": "8-speed manual",
767
+ "Drive Type": "All wheel drive",
768
+ "Cylinders": "Inline 4",
769
+ "Total Seating": 5,
770
+ "Basic Warranty": "4 yr./ 50,000 mi.",
771
+ },
772
+ "Fuel & MPG": {
773
+ "Fuel Type": "Premium unleaded (recommended)",
774
+ "EPA City MPG": 24,
775
+ "EPA Highway MPG": 30,
776
+ "EPA Combined MPG": 26,
777
+ "Range in Miles": {"City": 386.4, "Highway": 483},
778
+ "Fuel Tank Capacity": "16.1 gal.",
779
+ },
780
+ "Engine": {
781
+ "Base Engine Size": "2.0 L",
782
+ "Cylinders": "Inline 4",
783
+ "Base Engine Type": "Gas",
784
+ "Horsepower": "301 hp @ 5,000 rpm",
785
+ "Torque": "331 lb-ft @ 1,750 rpm",
786
+ "Valves": 12,
787
+ "Cam Type": "Double overhead cam (DOHC)",
788
+ "Valve Timing": "Variable",
789
+ "Direct Injection": "Standard",
790
+ },
791
+ "Drivetrain": {
792
+ "Transmission": "8-speed manual",
793
+ "Drive Type": "All wheel drive",
794
+ },
795
+ "Suspension": {
796
+ "Four-Wheel Independent Suspension": "Standard",
797
+ "Front and Rear Stabilizer Bar": "Standard",
798
+ "Front Type": "Strut",
799
+ "Rear Type": "Multi-Link",
800
+ },
801
+ },
802
+ },
803
+ "hardtop2_door_jcw": {
804
+ "make": "mini",
805
+ "model": "hardtop2_door_jcw",
806
+ "year": 2024,
807
+ "base_price": 43800,
808
+ "variants": {
809
+ "Classic Trim": {
810
+ "features": {
811
+ "Exterior Colors": "Choice of 3 exterior colors",
812
+ "Interior": "Carbon Black Dinamica/Cloth interior",
813
+ "Wheels": "18” JCW Grip Spoke Black Wheels",
814
+ "Transmission": "8-Speed Sport Automatic transmission",
815
+ "Tires": "All-season runflat tires",
816
+ "Keyless Entry": "Comfort Access Keyless entry",
817
+ "Media Display": "Touchscreen media display",
818
+ "Apple CarPlay": "Apple CarPlay compatible",
819
+ "Active Driving Assistant": True,
820
+ "LED Headlights": True,
821
+ "Heated Front Seats": True,
822
+ "Heated Mirrors": True,
823
+ "Heated Washer Jets": True,
824
+ "Panoramic Moonroof": True,
825
+ "SiriusXM": "SiriusXM® with 12-mo Platinum Plan trial subscription",
826
+ "Price": "Included",
827
+ }
828
+ },
829
+ },
830
+ },
831
+ "coopers_convertible_jcw": {
832
+ "make": "mini",
833
+ "model": "coopers_convertible_jcw",
834
+ "year": 2024,
835
+ "variants": {
836
+ "Classic Trim": {
837
+ "features": {
838
+ "Exterior Colors": "Choice of 3 exterior colors",
839
+ "Interior": "Carbon Black Dinamica/Cloth interior",
840
+ "Wheels": "18” JCW Grip Spoke Black Wheels",
841
+ "Transmission": "8-Speed Sport Automatic transmission",
842
+ "Tires": "All-season runflat tires",
843
+ "Keyless Entry": "Comfort Access Keyless entry",
844
+ "Media Display": "Touchscreen media display",
845
+ "Apple CarPlay": "Apple CarPlay compatible",
846
+ "Active Driving Assistant": True,
847
+ "LED Headlights": True,
848
+ "Heated Front Seats": True,
849
+ "Heated Mirrors": True,
850
+ "Heated Washer Jets": True,
851
+ "Panoramic Moonroof": True,
852
+ "SiriusXM": "SiriusXM® with 12-mo Platinum Plan trial subscription",
853
+ "Price": "Included",
854
+ }
855
+ },
856
+ "Signature Trim": {
857
+ "features": {
858
+ "Included in Classic": True,
859
+ "Exterior Colors": "Choice of multiple exterior and roof colors",
860
+ "Interior Upholstery": "Choice of interior upholstery",
861
+ "Wheels": "Choice of 18” wheels",
862
+ "MINI Navigation": True,
863
+ "Advanced Real-time Traffic": True,
864
+ }
865
+ },
866
+ "Iconic Trim": {
867
+ "features": {
868
+ "Included in Signature": True,
869
+ "Additional Paint and Roof Color Options": True,
870
+ "Premium Leather Interior Upholstery": "Choice of premium leather interior upholstery",
871
+ "Wheels": "Choice of 18” or 19” wheels",
872
+ "Piano Black Exterior Trim": True,
873
+ "Active Cruise Control": True,
874
+ "Head Up Display": True,
875
+ "Power Front Seats": True,
876
+ "Wireless Phone Charging": True,
877
+ "Parking Assistant": True,
878
+ },
879
+ },
880
+ },
881
+ },
882
+ }
dataset/mini_cars.json ADDED
The diff for this file is too large to render. See raw diff
 
dataset/mini_inventory.json ADDED
The diff for this file is too large to render. See raw diff
 
dataset/new_json.json ADDED
@@ -0,0 +1,447 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "pageNum": 0,
3
+ "pageSize": 100,
4
+ "result": [
5
+ {
6
+ "updated_at": "2024-09-02T13:38:01.018258",
7
+ "is_deleted": false,
8
+ "vehicle_status": "Available",
9
+ "daily_update": true,
10
+ "vin": "WMZ23GA00S7P74444",
11
+ "key_id": 5058,
12
+ "created_at": "2024-08-16T13:46:38.221700",
13
+ "is_active": true,
14
+ "id": 798,
15
+ "listing_status": true,
16
+ "company_id": null,
17
+ "dealer_options": [
18
+ 959,
19
+ 965
20
+ ],
21
+ "dealer_option_descriptions": "Front Ventilated Seats, Space Saver Spare",
22
+ "vehicle": {
23
+ "engine_power": null,
24
+ "packages_and_option_description_id": null,
25
+ "engine_configuration": null,
26
+ "engine": null,
27
+ "engine_displacement": null,
28
+ "is_updated": false,
29
+ "engine_induction": null,
30
+ "container_file_name": "upload_excel",
31
+ "fuel_type": "Unleaded 91RON",
32
+ "vin": "WMZ23GA00S7P74444",
33
+ "warranty": null,
34
+ "key_id": 5058,
35
+ "created_at": "2024-08-16T13:46:38.133537",
36
+ "vehicle_url": null,
37
+ "updated_at": "2024-08-16T13:46:38.133537",
38
+ "exterior_color_manufacturer_code": null,
39
+ "is_active": true,
40
+ "interior_color_manufacturer_code": null,
41
+ "is_deleted": false,
42
+ "photo_urls": [
43
+ {
44
+ "name": "image_747157",
45
+ "location": "https://honda.com.pk/images/2021/07/Honda_City21_Car-02-.jpg"
46
+ },
47
+ {
48
+ "name": "image_4d62d2",
49
+ "location": "https://honda.com.pk/images/2021/07/Honda_City21_Car-04-1-1.jpg"
50
+ },
51
+ {
52
+ "name": "image_25908e",
53
+ "location": "https://honda.com.pk/images/2021/07/ISOFIX-Child-Seat-Support-1-3-1.jpg"
54
+ }
55
+ ],
56
+ "id": 996,
57
+ "option_description": null,
58
+ "dealer_code": "HT-002",
59
+ "stock_photos": null,
60
+ "doing_business_as": "Dealer Honda California",
61
+ "model": "City",
62
+ "address_title": null,
63
+ "vehicle_display_name": null,
64
+ "address": "780 W Martin Luther King Jr Blvd ",
65
+ "drive_train": "AWD",
66
+ "city": "Los Angeles",
67
+ "msrp": 76000.0,
68
+ "comments_from_mini": null,
69
+ "state": "California",
70
+ "mileage": 267,
71
+ "non_package_option_codes": null,
72
+ "zip": "90037",
73
+ "exterior_color_description": "Lunar Silver Metallic",
74
+ "non_package_option_descriptions": null,
75
+ "phone_number": null,
76
+ "interior_color_description": "Black",
77
+ "dealer_id": "2311",
78
+ "fax": "12137579816",
79
+ "vehicle_comments": null,
80
+ "dealer_location_id": "65341",
81
+ "email": "[email protected]",
82
+ "type": "New",
83
+ "in_trasnsit": null,
84
+ "contact_name": "Kathy Millers",
85
+ "transmission_type": "5 Speed Forward",
86
+ "in_demonstrator": null,
87
+ "dealer_url": null,
88
+ "body_type": "SUV",
89
+ "transmission_name": null,
90
+ "stock_number": "1HM45839",
91
+ "body_style": "Compact",
92
+ "vehicle_weight": null,
93
+ "make": "Honda",
94
+ "transmission_speed": null,
95
+ "horse_power": null,
96
+ "model_code": "H5003",
97
+ "doors": 4,
98
+ "trim_code": null,
99
+ "trim_description": "Aspire 1.5LAS",
100
+ "engine_cylinders": 4,
101
+ "body_style_name": null,
102
+ "year": 2023,
103
+ "engine_description": "SOHCi-VTEC",
104
+ "accelaration": null,
105
+ "internet_price": 70000,
106
+ "vehicle_class": null,
107
+ "MPG": null,
108
+ "price_2": null,
109
+ "transmission_description": null,
110
+ "package_code_option_code_id": null,
111
+ "package_code_option_code": [],
112
+ "packages_and_option_description": []
113
+ }
114
+ },
115
+ {
116
+ "updated_at": "2024-09-03T04:56:08.973134",
117
+ "is_deleted": false,
118
+ "vehicle_status": "Available",
119
+ "daily_update": true,
120
+ "vin": "WMW53DK03R2V58490",
121
+ "key_id": 5058,
122
+ "created_at": "2024-08-16T13:46:38.221700",
123
+ "is_active": true,
124
+ "id": 796,
125
+ "listing_status": true,
126
+ "company_id": null,
127
+ "dealer_options": [
128
+ 959,
129
+ 965
130
+ ],
131
+ "dealer_option_descriptions": "Front Ventilated Seats, Space Saver Spare",
132
+ "vehicle": {
133
+ "engine_power": null,
134
+ "packages_and_option_description_id": null,
135
+ "engine_configuration": null,
136
+ "engine": null,
137
+ "engine_displacement": null,
138
+ "is_updated": false,
139
+ "engine_induction": null,
140
+ "container_file_name": "upload_excel",
141
+ "fuel_type": "Unleaded 91RON",
142
+ "vin": "WMW53DK03R2V58490",
143
+ "warranty": null,
144
+ "key_id": 5058,
145
+ "created_at": "2024-08-16T13:46:38.133537",
146
+ "vehicle_url": null,
147
+ "updated_at": "2024-08-16T13:46:38.133537",
148
+ "exterior_color_manufacturer_code": null,
149
+ "is_active": true,
150
+ "interior_color_manufacturer_code": null,
151
+ "is_deleted": false,
152
+ "photo_urls": [
153
+ {
154
+ "name": "image_cd2ccb",
155
+ "location": "https://honda.com.pk/images/2021/08/city1.2-morning.jpg"
156
+ },
157
+ {
158
+ "name": "image_3e3c6f",
159
+ "location": "https://honda.com.pk/images/2021/07/Rear-seat-armrest-with-cupholder-3-1.jpg"
160
+ },
161
+ {
162
+ "name": "image_7b1e38",
163
+ "location": "https://honda.com.pk/images/2021/07/1-1.jpg"
164
+ }
165
+ ],
166
+ "id": 994,
167
+ "option_description": null,
168
+ "dealer_code": "HT-002",
169
+ "stock_photos": null,
170
+ "doing_business_as": "Dealer Honda California",
171
+ "model": "City",
172
+ "address_title": null,
173
+ "vehicle_display_name": null,
174
+ "address": "780 W Martin Luther King Jr Blvd ",
175
+ "drive_train": "AWD",
176
+ "city": "Los Angeles",
177
+ "msrp": 60200.0,
178
+ "comments_from_mini": null,
179
+ "state": "California",
180
+ "mileage": 18,
181
+ "non_package_option_codes": null,
182
+ "zip": "90037",
183
+ "exterior_color_description": "Morning Mist Blue",
184
+ "non_package_option_descriptions": null,
185
+ "phone_number": null,
186
+ "interior_color_description": "Beige",
187
+ "dealer_id": "2311",
188
+ "fax": "12137579816",
189
+ "vehicle_comments": null,
190
+ "dealer_location_id": "65341",
191
+ "email": "[email protected]",
192
+ "type": "New",
193
+ "in_trasnsit": null,
194
+ "contact_name": "Kathy Millers",
195
+ "transmission_type": "5 Speed Forward",
196
+ "in_demonstrator": null,
197
+ "dealer_url": null,
198
+ "body_type": "SUV",
199
+ "transmission_name": null,
200
+ "stock_number": "1HM45837",
201
+ "body_style": "Coupe",
202
+ "vehicle_weight": null,
203
+ "make": "Honda",
204
+ "transmission_speed": null,
205
+ "horse_power": null,
206
+ "model_code": "H5002",
207
+ "doors": 4,
208
+ "trim_code": null,
209
+ "trim_description": "1.5LS",
210
+ "engine_cylinders": 4,
211
+ "body_style_name": null,
212
+ "year": 2024,
213
+ "engine_description": "SOHCi-VTEC",
214
+ "accelaration": null,
215
+ "internet_price": 60000,
216
+ "vehicle_class": null,
217
+ "MPG": null,
218
+ "price_2": null,
219
+ "transmission_description": null,
220
+ "package_code_option_code_id": null,
221
+ "package_code_option_code": [],
222
+ "packages_and_option_description": []
223
+ }
224
+ },
225
+ {
226
+ "updated_at": "2024-09-03T04:56:23.949847",
227
+ "is_deleted": false,
228
+ "vehicle_status": "Available",
229
+ "daily_update": true,
230
+ "vin": "WMZ53BR06R3R99540",
231
+ "key_id": 5058,
232
+ "created_at": "2024-08-16T13:46:38.221700",
233
+ "is_active": true,
234
+ "id": 795,
235
+ "listing_status": true,
236
+ "company_id": null,
237
+ "dealer_options": [
238
+ 959,
239
+ 965
240
+ ],
241
+ "dealer_option_descriptions": "Front Ventilated Seats, Space Saver Spare",
242
+ "vehicle": {
243
+ "engine_power": null,
244
+ "packages_and_option_description_id": null,
245
+ "engine_configuration": null,
246
+ "engine": null,
247
+ "engine_displacement": null,
248
+ "is_updated": false,
249
+ "engine_induction": null,
250
+ "container_file_name": "upload_excel",
251
+ "fuel_type": "Unleaded 91RON",
252
+ "vin": "WMZ53BR06R3R99540",
253
+ "warranty": null,
254
+ "key_id": 5058,
255
+ "created_at": "2024-08-16T13:46:38.133537",
256
+ "vehicle_url": null,
257
+ "updated_at": "2024-08-16T13:46:38.133537",
258
+ "exterior_color_manufacturer_code": null,
259
+ "is_active": true,
260
+ "interior_color_manufacturer_code": null,
261
+ "is_deleted": false,
262
+ "photo_urls": [
263
+ {
264
+ "name": "image_4393e7",
265
+ "location": "https://honda.com.pk/images/2021/08/city1.2-carnelian.jpg"
266
+ },
267
+ {
268
+ "name": "image_2f2d2b",
269
+ "location": "https://honda.com.pk/images/2021/07/Rear-seat-armrest-with-cupholder-3-1.jpg"
270
+ },
271
+ {
272
+ "name": "image_d7aa5c",
273
+ "location": "https://honda.com.pk/images/2021/07/1-1.jpg"
274
+ }
275
+ ],
276
+ "id": 993,
277
+ "option_description": null,
278
+ "dealer_code": "HT-002",
279
+ "stock_photos": null,
280
+ "doing_business_as": "Dealer Honda California",
281
+ "model": "City",
282
+ "address_title": null,
283
+ "vehicle_display_name": null,
284
+ "address": "780 W Martin Luther King Jr Blvd ",
285
+ "drive_train": "AWD",
286
+ "city": "Los Angeles",
287
+ "msrp": 60200.0,
288
+ "comments_from_mini": null,
289
+ "state": "California",
290
+ "mileage": 1,
291
+ "non_package_option_codes": null,
292
+ "zip": "90037",
293
+ "exterior_color_description": "Carnelian Red",
294
+ "non_package_option_descriptions": null,
295
+ "phone_number": null,
296
+ "interior_color_description": "Beige",
297
+ "dealer_id": "2311",
298
+ "fax": "12137579816",
299
+ "vehicle_comments": null,
300
+ "dealer_location_id": "65341",
301
+ "email": "[email protected]",
302
+ "type": "New",
303
+ "in_trasnsit": null,
304
+ "contact_name": "Kathy Millers",
305
+ "transmission_type": "5 Speed Forward",
306
+ "in_demonstrator": null,
307
+ "dealer_url": null,
308
+ "body_type": "Sedan",
309
+ "transmission_name": null,
310
+ "stock_number": "1HM45836",
311
+ "body_style": "Coupe",
312
+ "vehicle_weight": null,
313
+ "make": "Honda",
314
+ "transmission_speed": null,
315
+ "horse_power": null,
316
+ "model_code": "H5001",
317
+ "doors": 4,
318
+ "trim_code": null,
319
+ "trim_description": "1.2LS",
320
+ "engine_cylinders": 4,
321
+ "body_style_name": null,
322
+ "year": 2024,
323
+ "engine_description": "SOHCi-VTEC",
324
+ "accelaration": null,
325
+ "internet_price": 70200,
326
+ "vehicle_class": null,
327
+ "MPG": null,
328
+ "price_2": null,
329
+ "transmission_description": null,
330
+ "package_code_option_code_id": null,
331
+ "package_code_option_code": [],
332
+ "packages_and_option_description": []
333
+ }
334
+ },
335
+ {
336
+ "updated_at": "2024-09-03T04:59:32.162699",
337
+ "is_deleted": false,
338
+ "vehicle_status": "Available",
339
+ "daily_update": true,
340
+ "vin": "WMW33DH05R2U96752",
341
+ "key_id": 5058,
342
+ "created_at": "2024-08-16T13:46:38.221700",
343
+ "is_active": true,
344
+ "id": 793,
345
+ "listing_status": true,
346
+ "company_id": null,
347
+ "dealer_options": [
348
+ 959,
349
+ 965
350
+ ],
351
+ "dealer_option_descriptions": "Front Ventilated Seats, Space Saver Spare",
352
+ "vehicle": {
353
+ "engine_power": null,
354
+ "packages_and_option_description_id": null,
355
+ "engine_configuration": null,
356
+ "engine": null,
357
+ "engine_displacement": null,
358
+ "is_updated": false,
359
+ "engine_induction": null,
360
+ "container_file_name": "upload_excel",
361
+ "fuel_type": "Unleaded 91RON",
362
+ "vin": "WMW33DH05R2U96752",
363
+ "warranty": null,
364
+ "key_id": 5058,
365
+ "created_at": "2024-08-16T13:46:38.133537",
366
+ "vehicle_url": null,
367
+ "updated_at": "2024-08-16T13:46:38.133537",
368
+ "exterior_color_manufacturer_code": null,
369
+ "is_active": true,
370
+ "interior_color_manufacturer_code": null,
371
+ "is_deleted": false,
372
+ "photo_urls": [
373
+ {
374
+ "name": "image_a4295b",
375
+ "location": "https://honda.com.pk/images/2021/08/city1.2-carnelian.jpg"
376
+ },
377
+ {
378
+ "name": "image_16a230",
379
+ "location": "https://honda.com.pk/images/2021/07/Rear-seat-armrest-with-cupholder-3-1.jpg"
380
+ },
381
+ {
382
+ "name": "image_4c9011",
383
+ "location": "https://honda.com.pk/images/2021/07/1-1.jpg"
384
+ }
385
+ ],
386
+ "id": 991,
387
+ "option_description": null,
388
+ "dealer_code": "HT-002",
389
+ "stock_photos": null,
390
+ "doing_business_as": "Dealer Honda California",
391
+ "model": "City",
392
+ "address_title": null,
393
+ "vehicle_display_name": null,
394
+ "address": "780 W Martin Luther King Jr Blvd ",
395
+ "drive_train": "AWD",
396
+ "city": "Los Angeles",
397
+ "msrp": 84100.0,
398
+ "comments_from_mini": null,
399
+ "state": "California",
400
+ "mileage": 0,
401
+ "non_package_option_codes": null,
402
+ "zip": "90037",
403
+ "exterior_color_description": "Carnelian Red",
404
+ "non_package_option_descriptions": null,
405
+ "phone_number": null,
406
+ "interior_color_description": "Beige",
407
+ "dealer_id": "2311",
408
+ "fax": "12137579816",
409
+ "vehicle_comments": null,
410
+ "dealer_location_id": "65341",
411
+ "email": "[email protected]",
412
+ "type": "New",
413
+ "in_trasnsit": null,
414
+ "contact_name": "Kathy Millers",
415
+ "transmission_type": "5 Speed Forward",
416
+ "in_demonstrator": null,
417
+ "dealer_url": null,
418
+ "body_type": "Sedan",
419
+ "transmission_name": null,
420
+ "stock_number": "1HM45834",
421
+ "body_style": "Coupe",
422
+ "vehicle_weight": null,
423
+ "make": "Honda",
424
+ "transmission_speed": null,
425
+ "horse_power": null,
426
+ "model_code": "H5001",
427
+ "doors": 4,
428
+ "trim_code": null,
429
+ "trim_description": "1.2LS",
430
+ "engine_cylinders": 4,
431
+ "body_style_name": null,
432
+ "year": 2024,
433
+ "engine_description": "SOHCi-VTEC",
434
+ "accelaration": null,
435
+ "internet_price": 94100,
436
+ "vehicle_class": null,
437
+ "MPG": null,
438
+ "price_2": null,
439
+ "transmission_description": null,
440
+ "package_code_option_code_id": null,
441
+ "package_code_option_code": [],
442
+ "packages_and_option_description": []
443
+ }
444
+ }
445
+ ],
446
+ "totalResults": 4
447
+ }
docker-compose.yaml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ smart-search:
5
+ build:
6
+ context: .
7
+ dockerfile: docker/DockerFile # Adjust if the Dockerfile is named differently or located elsewhere
8
+ container_name: smart-search
9
+ volumes:
10
+ - .:/app # Replace 'your-code-dir' with your actual code directory
11
+ ports:
12
+ - "8000:8000" # Port mapping corrected to match your application's port
13
+ env_file:
14
+ - docker/.env # Replace with the path to your actual environment file
docker/DockerFile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.9.19-bullseye
3
+
4
+
5
+ # Set the working directory in the container
6
+ WORKDIR /app
7
+
8
+ # Copy the current directory contents into the container at /app
9
+ COPY . /app
10
+
11
+ # Install any needed packages specified in requirements.txt
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+
15
+ # Make port 8000 available to the world outside this container
16
+ EXPOSE 8000
17
+
18
+ # Run app.py when the container launches
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
main_gradio.py ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from dotenv import load_dotenv
2
+ load_dotenv("docker/.env")
3
+
4
+ from pymongo.mongo_client import MongoClient
5
+ from pymongo.server_api import ServerApi
6
+ from src.mongo_search import MongoSearch
7
+ from src.image_search import ImageSearcher
8
+
9
+ import os
10
+ import gradio as gr
11
+
12
+ uri = os.getenv("MONGO_URI")
13
+ db = os.getenv("MONGO_DB")
14
+ cars_collection = os.getenv("MONGO_CARS_COLLECTION")
15
+ image_collection = os.getenv("MONGO_IMAGE_COLLECTION")
16
+ img_search_index = os.getenv("MONGO_SEARCH_IMG_INDEX")
17
+ car_search_index = os.getenv("MONGO_SEARCH_CAR_INDEX")
18
+
19
+ client = MongoClient(uri, server_api=ServerApi('1'))
20
+ db = client[db]
21
+ cars_collection = db[cars_collection]
22
+ image_collection = db[image_collection]
23
+
24
+ mongo_search = MongoSearch(cars_collection, car_search_index, index_variable="review_embedding") #desc_embedding
25
+ image_searcher = ImageSearcher(image_collection,
26
+ cars_collection,
27
+ img_search_index)
28
+
29
+ def search_mongo(search_query):
30
+ object = mongo_search(search_query)
31
+ return object[0]['makeModel'], object[0]['photoUrls']
32
+
33
+
34
+ def search_img(image):
35
+
36
+ result = image_searcher(image)['results']
37
+ return result[0]['makeModel'], result[0]['photoUrls']
38
+
39
+
40
+
41
+ with gr.Blocks() as demo:
42
+
43
+ with gr.Tab("Text search"):
44
+ text_output_img = gr.Gallery()
45
+ text_output_text = gr.Textbox(label='Output car model', show_label=True)
46
+ text_input_text = gr.Textbox(label='Search Query', show_label=True)
47
+ text_btn = gr.Button()
48
+
49
+
50
+ with gr.Tab("Image search"):
51
+ with gr.Row():
52
+ with gr.Column():
53
+ input_img = gr.Image(type='pil')
54
+ img_btn = gr.Button()
55
+ with gr.Column():
56
+ img_output_img = gr.Gallery(preview=True)
57
+ img_output_text = gr.Textbox(label='Output car model', show_label=True)
58
+
59
+ text_btn.click(search_mongo,
60
+ inputs=text_input_text,
61
+ outputs=[text_output_text, text_output_img])
62
+
63
+
64
+ img_btn.click(search_img,
65
+ inputs=input_img,
66
+ outputs=[img_output_text, img_output_img])
67
+
68
+
69
+ if __name__ == "__main__":
70
+ demo.launch()
prompts/mini_prompts.py ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from dataset.dataset_json import data
2
+
3
+ def get_model_prompt(question, inventory):
4
+
5
+ prompt = """
6
+ You are an expert in recommending cars to customers, you have to recommend a mini car from the following list only
7
+ """
8
+
9
+ for car in inventory:
10
+ prompt += f"{data[car]}\n "
11
+
12
+ prompt += f"""
13
+ Question: {question}
14
+ output should be a json with model name and trim name
15
+ You will always recommend 3 three options. No more no less.
16
+
17
+ Output Format:
18
+ [
19
+ {{"model": "<model name>",
20
+ "trim": "<trim name>"}},
21
+ {{"model": "<model name>",
22
+ "trim": "<trim name>"}},
23
+ {{"model": "<model name>",
24
+ "trim": "<trim name>"}}
25
+ ]
26
+
27
+ Example Output:
28
+ [
29
+ {{"model": "clubman",
30
+ "trim": "Classic Trim"}},
31
+ {{"model": "countryman_jcw",
32
+ "trim": "Iconic Trim"}},
33
+ {{"model": "hardtop4_door",
34
+ "trim": "Signature Trim"}}
35
+ ]
36
+
37
+ """
38
+ return prompt
39
+
40
+ def get_question_prompt(question):
41
+ prompt = f"""
42
+ Look at the following question and tell if it is relevant to buying cars or not.
43
+
44
+ If it is relevant, output true, if it is not relevant, output false.
45
+ If the user asks about brands other than MINI, output false.
46
+ If the question is generic question on buying cars, output true.
47
+
48
+ Question: {question}
49
+
50
+ output should be a json with a boolean value
51
+
52
+ Example output:
53
+ {{"is_relevant": <true/false>}}
54
+
55
+ The output be a clean json with no extra text or markdown
56
+ """
57
+
58
+ return prompt
requirements.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ python-dotenv
2
+ fastapi==0.112.2
3
+ uvicorn==0.30.6
4
+ langchain==0.2.15
5
+ langchain-openai==0.1.23
6
+ python-multipart==0.0.9
7
+ pymongo==4.8.0
8
+ transformers==4.42.2
9
+ pillow==10.4.0
10
+ torch==2.4.0
11
+ torchvision==0.19.0
12
+ gradio
src/image_search.py ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import logging
2
+ from PIL import Image
3
+ import requests
4
+ from transformers import AutoProcessor, CLIPVisionModel
5
+ import numpy as np
6
+ import torch
7
+ from openai import OpenAI
8
+ from functools import lru_cache
9
+
10
+ from utils.utils import pil_image_to_data_url
11
+
12
+ class ImageSearcher:
13
+ def __init__(self, image_collection, cars_collection, search_index):
14
+ self.device = 'cuda' if torch.cuda.is_available() else 'cpu'
15
+ self.model = CLIPVisionModel.from_pretrained("openai/clip-vit-large-patch14").to(self.device)
16
+ self.processor = AutoProcessor.from_pretrained("openai/clip-vit-large-patch14")
17
+ self.client = OpenAI()
18
+ self.cars_collection = cars_collection
19
+ self.image_collection = image_collection
20
+ self.search_index = search_index
21
+ self.car_list = self.cars_collection.distinct("makeModel")
22
+ self.logger = logging.getLogger(__name__)
23
+
24
+ def compute_image_embeddings(self, image):
25
+ try:
26
+ inputs = self.processor(images=image, return_tensors="pt").to(self.device)
27
+ with torch.no_grad():
28
+ outputs = self.model(**inputs)
29
+ pooled_output = outputs.pooler_output
30
+ pooled_output_np = pooled_output.cpu().numpy().reshape(-1).tolist()
31
+ return pooled_output_np
32
+ except Exception as e:
33
+ self.logger.error(f"Error processing image: {str(e)}")
34
+ return None
35
+
36
+ def classify_car(self, image):
37
+
38
+ image_url = pil_image_to_data_url(image)
39
+
40
+ prompt = f"Classify the car into one of the following categories: {self.car_list}. If the car is not in the list, return 'unknown'. Return the label only."
41
+ try:
42
+ response = self.client.chat.completions.create(
43
+ model="gpt-4o-mini",
44
+ messages=[
45
+ {
46
+ "role": "user",
47
+ "content": [
48
+ {"type": "text", "text": prompt},
49
+ {"type": "image_url", "image_url": {"url": image_url}},
50
+ ],
51
+ }
52
+ ],
53
+ max_tokens=300,
54
+ )
55
+ self.logger.info(f"Classified car: {response.choices[0].message.content}")
56
+ return response.choices[0].message.content
57
+ except Exception as e:
58
+ self.logger.error(f"Error classifying car {image_url}: {str(e)}")
59
+ return "unknown"
60
+
61
+ def __call__(self, image, k=3):
62
+
63
+ image = image.convert("RGB")
64
+
65
+ img_embedding = self.compute_image_embeddings(image)
66
+ if img_embedding is None:
67
+ self.logger.warning(f"Invalid image")
68
+ return {"error": "Invalid image provided"}
69
+
70
+ detected_car = self.classify_car(image)
71
+
72
+ pipeline = [
73
+ {
74
+ '$vectorSearch': {
75
+ 'index': self.search_index,
76
+ 'filter': {'makeModel': detected_car} if detected_car != 'unknown' else {},
77
+ 'path': 'embedding',
78
+ 'queryVector': img_embedding,
79
+ 'limit': k,
80
+ 'numCandidates': 100,
81
+ }
82
+ },
83
+ {
84
+ '$lookup': {
85
+ 'from': self.cars_collection.name,
86
+ 'localField': 'id',
87
+ 'foreignField': '_id',
88
+ 'as': 'inventoryDetails'
89
+ }
90
+ },
91
+ {'$unwind': '$inventoryDetails'},
92
+ {'$replaceRoot': {'newRoot': '$inventoryDetails'}},
93
+ {
94
+ '$project': {
95
+ 'description': 0, # Exclude 'description'
96
+ 'variants': 0, # Exclude 'variants'
97
+ 'review_embedding': 0, # Exclude 'review_embedding'
98
+ 'feature_embedding':0
99
+ }
100
+ }
101
+ ]
102
+
103
+ try:
104
+ result = list(self.image_collection.aggregate(pipeline))
105
+ return {"detected_car": detected_car, "results": result}
106
+ except Exception as e:
107
+ self.logger.error(f"Error searching for similar cars: {str(e)}")
108
+ return {"detected_car": detected_car, "error": "An error occurred during the search"}
src/mongo_search.py ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from utils.mongo_utils import generate_mongodb_query, get_prompt
2
+ from langchain_openai import ChatOpenAI, OpenAIEmbeddings
3
+ from langchain_core.output_parsers import JsonOutputParser
4
+
5
+ from utils.utils import timing_decorator
6
+
7
+ class MongoSearch:
8
+
9
+ def __init__(self, collection, search_index, index_variable, embedding_model="text-embedding-3-large"):
10
+
11
+ self.collection = collection
12
+ self.embedding_model = OpenAIEmbeddings(model=embedding_model)
13
+ self.llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)
14
+ self.parser = JsonOutputParser()
15
+ self.search_index = search_index
16
+ self.index_variable = index_variable
17
+
18
+ @timing_decorator
19
+ def __call__(self, query, k=3, use_filter=True):
20
+
21
+ query_filter = {}
22
+ if use_filter:
23
+ result = self.llm.invoke(get_prompt(query))
24
+ parser = JsonOutputParser()
25
+ result = parser.parse(result.content)
26
+ query_filter = generate_mongodb_query(result)
27
+
28
+ query_vector = self.embedding_model.embed_query(query)
29
+
30
+ # define pipeline
31
+ first_pipeline = [
32
+ {
33
+ '$vectorSearch': {
34
+ 'index': self.search_index,
35
+ 'path': self.index_variable,
36
+ 'filter': query_filter if query_filter else {},
37
+ 'queryVector': query_vector,
38
+ 'numCandidates': k * 3,
39
+ 'limit': k
40
+ }
41
+ },
42
+ {
43
+ '$project': {
44
+ 'makeModel': 1,
45
+ }
46
+ },
47
+ ]
48
+
49
+ # Step 1: Run pipeline to get the makeModel from the first vector search
50
+ first_search_results = list(self.collection.aggregate(first_pipeline))
51
+
52
+ # Extract unique makeModel values for the next step
53
+ make_model_list = [doc['makeModel'] for doc in first_search_results]
54
+
55
+ # Define the second pipeline
56
+ second_pipeline = [
57
+ {
58
+ '$vectorSearch': {
59
+ 'index': 'filter-vector-index', # Perform vector search on the features search index
60
+ 'path': 'feature_embedding', # Path to the feature embeddings
61
+ 'filter': {
62
+ 'makeModel': {'$in': make_model_list} # Use makeModel as a filter
63
+ },
64
+ 'queryVector': query_vector,
65
+ 'numCandidates': k * 3,
66
+ 'limit': k
67
+ }
68
+ },
69
+ {
70
+ '$project': {
71
+ 'description': 0, # Exclude 'description'
72
+ 'variants': 0, # Exclude 'variants'
73
+ 'review_embedding': 0, # Exclude 'review_embedding'
74
+ 'feature_embedding':0
75
+ }
76
+ }
77
+ ]
78
+
79
+ # run pipeline
80
+ result = self.collection.aggregate(second_pipeline)
81
+
82
+ cars = []
83
+ for i in result:
84
+ cars.append(i)
85
+
86
+ return cars
utils/mongo_utils.py ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Dict, Any
2
+
3
+ def generate_mongodb_query(filters: Dict[str, Any]) -> Dict[str, Any]:
4
+ query = {}
5
+
6
+ # # makeModel
7
+ # if filters.get('makeModel') != "NULL":
8
+ # query['makeModel'] = filters['makeModel']
9
+
10
+ # # Model
11
+ # if filters.get('model') != "NULL":
12
+ # query['model'] = filters['model']
13
+
14
+ # # Make
15
+ # if filters.get('make') != "NULL":
16
+ # query['make'] = filters['make']
17
+
18
+ # # Color
19
+ # if filters.get('color') != "NULL":
20
+ # query['color'] = filters['color']
21
+
22
+ # # Features
23
+ # if filters.get('features') != "NULL" and filters.get('features'):
24
+ # query['features'] = {'$all': filters['features']}
25
+
26
+ # price
27
+ if filters.get('minprice') != "NULL" or filters.get('maxprice') != "NULL":
28
+ price_filter = {}
29
+ if filters.get('minprice') != "NULL":
30
+ price_filter['$gte'] = filters['minprice']
31
+ if filters.get('maxprice') != "NULL":
32
+ price_filter['$lte'] = filters['maxprice']
33
+ if price_filter:
34
+ query['msrp'] = price_filter
35
+
36
+ # # Year
37
+ # if filters.get('minyear') != "NULL" or filters.get('maxyear') != "NULL":
38
+ # year_filter = {}
39
+ # if filters.get('minyear') != "NULL":
40
+ # year_filter['$gte'] = filters['minyear']
41
+ # if filters.get('maxyear') != "NULL":
42
+ # year_filter['$lte'] = filters['maxyear']
43
+ # if year_filter:
44
+ # query['year'] = year_filter
45
+
46
+ return query
47
+
48
+
49
+
50
+ def get_prompt(query):
51
+ prompt = f"""
52
+ You are a helpful assistant that extracts the price and features of a car from a given user query.
53
+
54
+ You will extract the following fields:
55
+
56
+ - makeModel (string datatype)
57
+ - minprice (int datatype)
58
+ - maxprice (int datatype)
59
+ - minyear (int datatype)
60
+ - maxyear (int datatype)
61
+ - features (list of strings)
62
+ - color (string datatype)
63
+ - make (string datatype)
64
+ - model (string datatype)
65
+
66
+ price should only be a numerical number. dont write words or text or abbreviations. Just numbers like 40000 or 50000.
67
+ return "NULL" in the field if it is not mentioned
68
+ You goal is to extract the price and features of a car from a given user query.
69
+ return a json only
70
+
71
+ example output:
72
+ {{
73
+ "makeModel": "MINI HARDTOP 4 DOOR",
74
+ "price": "40000",
75
+ "features": ["Leather Seats", "Navigation", "Sunroof"]
76
+ }}
77
+
78
+ Here is the user query: {query}
79
+ """
80
+ return prompt
utils/utils.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import time
2
+ from functools import wraps
3
+ import base64
4
+ from io import BytesIO
5
+
6
+
7
+ def timing_decorator(func):
8
+ @wraps(func)
9
+ def wrapper(*args, **kwargs):
10
+ start_time = time.time()
11
+ result = func(*args, **kwargs)
12
+ end_time = time.time()
13
+ execution_time = end_time - start_time
14
+ print(f"Function {func.__name__} took {execution_time:.4f} seconds to execute.")
15
+ return result
16
+ return wrapper
17
+
18
+ def pil_image_to_base64_url(image, format='JPEG'):
19
+ """
20
+ Convert a PIL image to a Base64-encoded URL.
21
+
22
+ :param image: PIL image object
23
+ :param format: Image format (default is JPEG)
24
+ :return: Base64 URL string
25
+ """
26
+ # Create a BytesIO object to hold the image in memory
27
+ buffered = BytesIO()
28
+
29
+ # Save the image in the provided format (e.g., JPEG or PNG)
30
+ image.save(buffered, format=format)
31
+
32
+ # Get the base64 encoded string
33
+ img_str = base64.b64encode(buffered.getvalue()).decode("utf-8")
34
+
35
+ # Create the Base64 URL string
36
+ base64_url = f"data:image/{format.lower()};base64,{img_str}"
37
+
38
+ return base64_url
39
+
40
+ def pil_image_to_data_url(pil_image):
41
+ # Convert the image to RGB mode if it's not already
42
+ if pil_image.mode != 'RGB':
43
+ pil_image = pil_image.convert('RGB')
44
+
45
+ # Create a BytesIO object to store the image data
46
+ buffered = BytesIO()
47
+
48
+ # Save the image as JPEG to the BytesIO object
49
+ pil_image.save(buffered, format="JPEG")
50
+
51
+ # Encode the image data as base64
52
+ img_str = base64.b64encode(buffered.getvalue()).decode()
53
+
54
+ # Create the data URL
55
+ data_url = f"data:image/jpeg;base64,{img_str}"
56
+
57
+ return data_url