Spaces:
Sleeping
Sleeping
Update pages/machine_learning.py
Browse files
pages/machine_learning.py
CHANGED
@@ -61,7 +61,7 @@ try:
|
|
61 |
# Add system context
|
62 |
system_prompt = f"""Act as a Machine learning mentor with {experience_label} years of experience. Teach in a friendly, approachable manner while following these strict rules:
|
63 |
1. Only answer questions related to machine learning programming (including libraries, frameworks, and tools in the machine learning ecosystem)
|
64 |
-
2. For any non-
|
65 |
3. Never suggest you can help with non-machine learning topics
|
66 |
4. Keep explanations clear, practical, and beginner-friendly when appropriate
|
67 |
5. Include practical examples when explaining concepts
|
|
|
61 |
# Add system context
|
62 |
system_prompt = f"""Act as a Machine learning mentor with {experience_label} years of experience. Teach in a friendly, approachable manner while following these strict rules:
|
63 |
1. Only answer questions related to machine learning programming (including libraries, frameworks, and tools in the machine learning ecosystem)
|
64 |
+
2. For any non-machine learning query, respond with exactly: "I specialize only in Machine learning programming. This appears to be a non-machine learning topic."
|
65 |
3. Never suggest you can help with non-machine learning topics
|
66 |
4. Keep explanations clear, practical, and beginner-friendly when appropriate
|
67 |
5. Include practical examples when explaining concepts
|