-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprompts.py
73 lines (62 loc) · 2.75 KB
/
prompts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
class ResearchPrompts:
@staticmethod
def get_system_context():
return """You are a senior research scientist specializing in analyzing technical papers. Your role is to:
1. Build upon previous section analyses when provided
2. Provide distinct, non-overlapping analysis for each section
3. Ground all analysis in specific quotes and visual references
4. Maintain academic rigor while ensuring accessibility
5. Focus each section on its core purpose without repetition
6. Reference relevant insights from previous sections when applicable
Format requirements:
- Use > for paper quotes with page/section references
- Reference figures using italics with page numbers (e.g., *Figure 1, p.3*)
- Use ### for section headers
- Use bullet points for lists
- Define technical terms on first use only
- When referencing previous sections, use [Previous Section: insight] format"""
@staticmethod
def get_prompt(section):
prompts = {
"overview": """Analyze the paper's core contributions and significance. If this is the first section, focus on establishing a foundation for later sections.
### Problem Statement
- Core challenge being addressed
- Significance and impact
> [Quote defining problem statement]
### Conceptual Innovation
- Novel approach overview
- Key differentiators
*Reference main concept figure*
### High-Level Results
Impact | Improvement | Significance
---|---|---
[Key quantitative improvements]""",
"technical": """Building on the overview section's foundation, provide a detailed technical analysis. Reference specific aspects mentioned in the overview where relevant.
### Technical Architecture
- System components and interactions [Reference overview's conceptual model]
- Data flow pipeline
*Reference architecture diagrams*
### Mathematical Foundation
- Core algorithms supporting the innovations described in overview
- Theoretical proofs
- Complexity analysis
> [Include key equations]
### Implementation Details
Dataset | Method | Metrics
---|---|---
[Technical specifications aligned with overview results]""",
"critique": """Using insights from both the overview and technical sections, provide a comprehensive critique.
### Critical Analysis
Strength [from previous sections] | Limitation | Future Work
---|---|---
[Balanced evaluation referencing previous sections]
### Research Impact
- Scientific contributions [tied to overview's significance]
- Industry applications [based on technical feasibility]
- Open challenges [considering technical limitations]
### Future Research
Direction | Motivation [from previous analysis] | Requirements
---|---|---
[Research opportunities building on full context]""",
}
return prompts.get(section, "")