KEVIN JOHN KULL
commited on
Commit
•
e94ceeb
1
Parent(s):
14ae220
Create FAQ
Browse files
FAQ
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import pandas as pd
|
2 |
+
from sklearn.model_selection import train_test_split
|
3 |
+
|
4 |
+
# Define the preprocessed data as a list of tuples, where the first element is the question and the second element is the answer
|
5 |
+
data = [("What types of products do you sell?", "We offer a wide range of cannabis products, including dried flowers, pre-rolls, oils, capsules, and accessories."),
|
6 |
+
("How do I place an order?", "You can place an order on our website or by calling our customer service line."),
|
7 |
+
("How long will it take to receive my order?", "Orders are typically processed and shipped within 1-2 business days. Shipping times vary depending on your location and the shipping method you choose."),
|
8 |
+
("What payment methods do you accept?", "We accept Visa, Mastercard, and American Express credit cards, as well as Visa Debit and Mastercard Debit cards. You can also pay with an electronic funds transfer (EFT) from your bank account."),
|
9 |
+
("Do you offer free shipping?", "We offer free shipping on orders over $99 (before taxes and shipping fees) to most locations in Canada."),
|
10 |
+
("Can I track my order?", "Yes, you will receive a confirmation email with a tracking number once your order has shipped. You can use the tracking number to check the status of your order on the carrier's website."),
|
11 |
+
("What are your store hours?", "Our stores are open Monday to Sunday from 10:00am to 9:00pm."),
|
12 |
+
("Where are your store locations?", "We have several retail locations across New Brunswick. You can find a list of our stores and their addresses on our website."),
|
13 |
+
("What is your return policy?", "We do not accept returns on cannabis products due to health and safety regulations. However, if you receive a damaged or defective product, please contact our customer service team for assistance."),
|
14 |
+
("What are the legal regulations for buying and using cannabis in New Brunswick?", "In New Brunswick, you must be 19 years or older to purchase and use cannabis. It is illegal to drive under the influence of cannabis, and you can face fines and penalties for doing so. You can possess up to 30 grams of dried cannabis or the equivalent in public, and up to 150 grams in your home. It is also illegal to buy or sell cannabis from anyone other than an authorized retailer. For more information, please visit the Government of New Brunswick's website.")]
|
15 |
+
|
16 |
+
# Convert the data into a pandas dataframe
|
17 |
+
df = pd.DataFrame(data, columns=["Question", "Answer"])
|
18 |
+
|
19 |
+
# Split the data into training, validation, and testing datasets
|
20 |
+
train_data, test_data = train_test_split(df, test_size=0.2, random_state=42)
|
21 |
+
train_data, val_data = train_test_split(train_data, test_size=0.2, random_state=42)
|
22 |
+
|
23 |
+
# Print the number of examples in each dataset
|
24 |
+
print("Number of examples in training set:", len(train_data))
|
25 |
+
print("Number of examples in validation set:", len(val_data))
|
26 |
+
print("Number of examples in test set:", len(test_data))
|