Spaces:
Sleeping
Sleeping
Create prompts.py
Browse files- prompts.py +9 -0
prompts.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def build_cot_prompt(question: str) -> str:
|
2 |
+
return f"""You are a careful and logical assistant.
|
3 |
+
|
4 |
+
Please solve the following question step-by-step:
|
5 |
+
|
6 |
+
Question: {question}
|
7 |
+
|
8 |
+
Answer (with chain of thought):
|
9 |
+
"""
|