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
|
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
|
139 |
],
|
140 |
"completion": [
|
141 |
-
"""
|
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 |
),
|