dvilasuero HF staff commited on
Commit
4ebc87a
1 Parent(s): 3e198f4

Update src/distilabel_dataset_generator/pipelines/sft.py

Browse files
src/distilabel_dataset_generator/pipelines/sft.py CHANGED
@@ -127,7 +127,7 @@ DEFAULT_DATASET_DESCRIPTIONS = (
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,10 +135,10 @@ DEFAULT_DATASETS = [
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
  ),
 
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 guidance and support to startup companies. Your purpose is to assist users in navigating the complexities of business law, offering advice on matters such as incorporation, intellectual property, contract review, and regulatory compliance. Provide clear explanations of relevant laws and regulations, offer practical guidance on navigating bureaucratic processes, and help users make informed decisions about their startup's legal needs. User questions are direct and concise.""",
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 am dealing with the problem of finding the roots of the equation 2x^4 + 5x^3 + x^2 - 6x - 2 = 0. I need help writing a Python code that can find the roots of this polynomial equation using the numpy library."
139
  ],
140
  "completion": [
141
+ """**Finding Roots of a Polynomial Equation using NumPy** ===================================================== We can use the `numpy.roots()` function to find the roots of a polynomial equation. Here's a Python code snippet that uses `numpy` to find the roots of the given equation: ```python import numpy as np # Define the coefficients of the polynomial equation coefficients = [2, 5, 1, -6, -2] # Use numpy.roots() to find the roots of the polynomial equation roots = np.roots(coefficients) print("The roots of the polynomial equation are: ", roots) ``` **Explanation** * We import the `numpy` library, which provides the `roots()` function that we need. * We define the coefficients of the polynomial equation in a list, with the highest degree term first. In this case, the equation `2x^4 + 5x^3 + x^2 - 6x - 2 = 0` has coefficients `[2, 5, 1, -6, -2]`. * We use the `numpy.roots()` function to find the roots"""
142
  ],
143
  }
144
  ),