layer2 commit
This commit is contained in:
64
layer2/process/prompts.py
Normal file
64
layer2/process/prompts.py
Normal file
@@ -0,0 +1,64 @@
|
||||
'''
|
||||
保留计算题的计算过程:- Fully preserve the step-by-step calculation process along with the final results
|
||||
只保留计算题的结果:- Preserve final calculation results
|
||||
'''
|
||||
SINGLE_QUESTION_PROMPTS="""
|
||||
Follow these instructions strictly to perform question decomposition:
|
||||
Input requirements:
|
||||
- Question text: {question}
|
||||
- Answer text: {answer}
|
||||
Output rules:
|
||||
1. Single issue determination criteria:
|
||||
- Question contains only one clear technical inquiry point
|
||||
- Answer content cannot be divided into independent parts
|
||||
→ Return: "It's a single issue."
|
||||
2. Compound question decomposition criteria (must satisfy all):
|
||||
a) Question contains multiple technically independent sub-questions
|
||||
b) Answer contains independent solution paragraphs corresponding to sub-questions
|
||||
c) Each sub-question's answer does not depend on context from other sub-questions
|
||||
3. Decomposition format standards:
|
||||
[
|
||||
{{
|
||||
"question": "[Complete sub-question 1] (including necessary shared parameters)",
|
||||
"answer": "[Corresponding complete answer]"
|
||||
}},
|
||||
{{
|
||||
"question": "[Complete sub-question 2] (including necessary shared parameters)",
|
||||
"answer": "[Corresponding complete answer]"
|
||||
}},
|
||||
......
|
||||
]
|
||||
Key control points:
|
||||
1. Context integrity:
|
||||
- Each sub-question must include shared parameters from the original question
|
||||
2. Answer integrity:
|
||||
- Fully preserve the step-by-step calculation process along with the final results
|
||||
- Maintain original units and precision (e.g., 6.02×10²³ cannot be simplified to 6.02e23)
|
||||
3.
|
||||
|
||||
3. Format prohibitions:
|
||||
- No explanatory text additions
|
||||
- No modifications to original technical terminology
|
||||
- Return data must not use Markdown and Latex formats (like \times, \mathrm)
|
||||
- Use scientific notation for data representation
|
||||
"""
|
||||
|
||||
QA_TYPE_PROMPTS="""
|
||||
Please analyze the following question and its answer, and classify the question type into one of the following four categories:
|
||||
|
||||
1. Calculation: A question that requires mathematical operations to derive the result.
|
||||
2. Multiple choice: A question that provides multiple options (e.g., A/B/C/D) for the respondent to choose from.
|
||||
3. True/False: A question that only requires answering true/false, yes/no, or correct/incorrect.
|
||||
4. Other: A question that does not fall under the above three categories.
|
||||
|
||||
Question:
|
||||
{question}
|
||||
Answer:
|
||||
{answer}
|
||||
|
||||
Please respond with the corresponding numeric code directly (without any explanation):
|
||||
1. For Calculation, respond: 1
|
||||
2. For Multiple choice, respond: 2
|
||||
3. For True/False, respond: 3
|
||||
4. For Other, respond: 4
|
||||
"""
|
||||
Reference in New Issue
Block a user