Commit
•
3e198f4
1
Parent(s):
3e62c9b
Update src/distilabel_dataset_generator/pipelines/sft.py
Browse files
src/distilabel_dataset_generator/pipelines/sft.py
CHANGED
@@ -91,7 +91,7 @@ PROMPT_CREATION_PROMPT = f"""You are an AI assistant specialized in generating v
|
|
91 |
|
92 |
Your task is to write a prompt following the instruction of the user. Respond with the prompt and nothing else.
|
93 |
|
94 |
-
In the generated prompt
|
95 |
|
96 |
The prompt you write should follow the same style and structure as the following example prompts:
|
97 |
|
@@ -121,13 +121,13 @@ User dataset description:
|
|
121 |
MODEL = "meta-llama/Meta-Llama-3.1-70B-Instruct"
|
122 |
DEFAULT_DATASET_DESCRIPTIONS = (
|
123 |
"assistant that solves complex math problems using python. The assistant always answers in Python to problems described in natural language",
|
124 |
-
"
|
125 |
"skilled high school math assistant who helps students solve problems",
|
126 |
"attentive and well-educated customer service assistant for a clothes e-commerce platform",
|
127 |
)
|
128 |
DEFAULT_SYSTEM_PROMPTS = [
|
129 |
-
"""You are an AI assistant specialized in solving complex math problems using Python. Your purpose is to help users overcome mathematical challenges by providing Python code that accurately addresses the problem. Always answer in Python, using descriptive variable names and clear comments to explain your thought process. When necessary, provide additional context or explanations to help users understand the solution.""",
|
130 |
-
"""You are
|
131 |
"""You are a math assistant designed to support high school students with various mathematical topics. Your purpose is to assist students in understanding and solving problems across different areas of mathematics, including algebra, geometry, trigonometry, and calculus. Approach problems step-by-step, provide clear explanations of mathematical concepts, and offer additional examples when necessary. Be patient and encouraging, and help students understand the reasoning behind the solutions, ensuring they grasp the underlying mathematical principles.""",
|
132 |
"""You are an AI assistant designed to provide exceptional customer service for a clothes e-commerce platform. Your purpose is to assist users with product inquiries, order issues, and other concerns related to their shopping experience. Offer empathetic and personalized support, provide detailed product information, and efficiently resolve customer complaints. Stay up-to-date with the latest product offerings, promotions, and platform policies to deliver accurate and helpful responses. When necessary, escalate issues to relevant teams, such as returns or technical support, while keeping customers informed throughout the process.""",
|
133 |
]
|
@@ -135,20 +135,20 @@ DEFAULT_DATASETS = [
|
|
135 |
pd.DataFrame.from_dict(
|
136 |
{
|
137 |
"prompt": [
|
138 |
-
"
|
139 |
],
|
140 |
"completion": [
|
141 |
-
"""
|
142 |
],
|
143 |
}
|
144 |
),
|
145 |
pd.DataFrame.from_dict(
|
146 |
{
|
147 |
"prompt": [
|
148 |
-
"
|
149 |
],
|
150 |
"completion": [
|
151 |
-
|
152 |
],
|
153 |
}
|
154 |
),
|
|
|
91 |
|
92 |
Your task is to write a prompt following the instruction of the user. Respond with the prompt and nothing else.
|
93 |
|
94 |
+
In the generated prompt always finish with this sentence: User questions are direct and concise.
|
95 |
|
96 |
The prompt you write should follow the same style and structure as the following example prompts:
|
97 |
|
|
|
121 |
MODEL = "meta-llama/Meta-Llama-3.1-70B-Instruct"
|
122 |
DEFAULT_DATASET_DESCRIPTIONS = (
|
123 |
"assistant that solves complex math problems using python. The assistant always answers in Python to problems described in natural language",
|
124 |
+
"legal assistant for startups",
|
125 |
"skilled high school math assistant who helps students solve problems",
|
126 |
"attentive and well-educated customer service assistant for a clothes e-commerce platform",
|
127 |
)
|
128 |
DEFAULT_SYSTEM_PROMPTS = [
|
129 |
+
"""You are an AI assistant specialized in solving complex math problems using Python. Your purpose is to help users overcome mathematical challenges by providing Python code that accurately addresses the problem. Always answer in Python, using descriptive variable names and clear comments to explain your thought process. When necessary, provide additional context or explanations to help users understand the solution. User questions are direct and concise""",
|
130 |
+
"""You are an AI assistant specialized in providing legal support for startup businesses. Your purpose is to assist startup founders and entrepreneurs in navigating complex legal issues related to company formation, funding, intellectual property, employment law, and regulatory compliance. Provide clear explanations of relevant laws and regulations, offer guidance on best practices for mitigating risk, and help users draft agreements, contracts, and other essential documents for their businesses. Expect users to ask direct and concise questions regarding their specific legal concerns or situations, such as "What are the key differences between a sole proprietorship and an LLC?" or "How do I protect my startup's intellectual property?" Respond with precise and actionable advice, citing relevant laws and statutes when necessary, and avoid using overly technical jargon or complicated terminology.""",
|
131 |
"""You are a math assistant designed to support high school students with various mathematical topics. Your purpose is to assist students in understanding and solving problems across different areas of mathematics, including algebra, geometry, trigonometry, and calculus. Approach problems step-by-step, provide clear explanations of mathematical concepts, and offer additional examples when necessary. Be patient and encouraging, and help students understand the reasoning behind the solutions, ensuring they grasp the underlying mathematical principles.""",
|
132 |
"""You are an AI assistant designed to provide exceptional customer service for a clothes e-commerce platform. Your purpose is to assist users with product inquiries, order issues, and other concerns related to their shopping experience. Offer empathetic and personalized support, provide detailed product information, and efficiently resolve customer complaints. Stay up-to-date with the latest product offerings, promotions, and platform policies to deliver accurate and helpful responses. When necessary, escalate issues to relevant teams, such as returns or technical support, while keeping customers informed throughout the process.""",
|
133 |
]
|
|
|
135 |
pd.DataFrame.from_dict(
|
136 |
{
|
137 |
"prompt": [
|
138 |
+
"I'm planning a 4-day backpacking trip in the mountains next month and I'm looking for a new pair of hiking shoes. What kind of hiking shoes would you recommend for this trip?"
|
139 |
],
|
140 |
"completion": [
|
141 |
+
"""For a 4-day backpacking trip in the mountains, you'll want hiking shoes that provide a combination of comfort, support, and durability. Considering your trip duration and terrain, I'd recommend looking for shoes with the following features: 1. **Waterproofing**: A waterproof or water-resistant membrane, such as Gore-Tex or eVent, to keep your feet dry in wet conditions. 2. **Breathability**: A breathable mesh upper to prevent overheating and discomfort. 3. **Support**: A supportive midsole and sturdy outsole for stable footing on uneven terrain. 4. **Ankle support**: High ankle collars to provide additional support and protection from ankle twists. Some excellent options for hiking shoes that meet these requirements include: 1. **Merrell Moab 2 Mid Waterproof**: A popular choice for backpacking trips, offering a rugged outsole and breathable mesh upper. 2. **Salomon Quest 4D 3 GTX**: A versatile shoe with a waterproof Gore-Tex membrane, comfortable fit, and excellent support. 3. **Keen Targhee II Mid WP**: A great option for backpacking, featuring a waterproof membrane and a comfortable, roomy toe box. 4. **La Sportiva Raptor GTX**"""
|
142 |
],
|
143 |
}
|
144 |
),
|
145 |
pd.DataFrame.from_dict(
|
146 |
{
|
147 |
"prompt": [
|
148 |
+
"I am a new startup founder and I am thinking about registering my business. I have a few questions about the different types of business structures. What is the main difference between a sole proprietorship and a Limited Liability Company (LLC)? For a sole proprietorship, I've heard that I don't have personal liability protection. Is that correct?"
|
149 |
],
|
150 |
"completion": [
|
151 |
+
"""As a startup founder, choosing the right business structure is a crucial decision. I'm happy to help you understand the differences between a sole proprietorship and a Limited Liability Company (LLC). **Sole Proprietorship:** A sole proprietorship is a business owned and operated by one individual. It's the simplest and most common business structure, requiring minimal paperwork and no formal registration requirements. However, as you mentioned, a sole proprietorship offers **no personal liability protection**. This means that your personal assets, such as your home, savings, and other possessions, are at risk in case your business is sued or incurs debt. Your business and personal finances are not separate, so you'll be personally responsible for all business debts and liabilities. **Limited Liability Company (LLC):** A Limited Liability Company (LLC) is a more formal business structure that provides personal liability protection for its owners, known as members. Forming an LLC requires more paperwork and registration requirements compared to a sole proprietorship. With an LLC, your personal assets are generally protected from business risks and liabilities, such as: * Business debts and financial obligations *"""
|
152 |
],
|
153 |
}
|
154 |
),
|