Spaces:
Running
Running
Update core/pipeline_agent.py
Browse files- core/pipeline_agent.py +1 -1
core/pipeline_agent.py
CHANGED
|
@@ -445,7 +445,7 @@ class SSciPipelineAgent:
|
|
| 445 |
|
| 446 |
def generate_outline(self, topic, keywords, synthesis_result):
|
| 447 |
sys_prompt = "You are a senior academic journal reviewer. Design a strict empirical research paper outline."
|
| 448 |
-
user_prompt = f
|
| 449 |
for attempt in range(3):
|
| 450 |
plan = self._extract_json_from_text(self.call_deepseek(sys_prompt, user_prompt, temp=0.2))
|
| 451 |
if plan and isinstance(plan, dict) and "structure" in plan:
|
|
|
|
| 445 |
|
| 446 |
def generate_outline(self, topic, keywords, synthesis_result):
|
| 447 |
sys_prompt = "You are a senior academic journal reviewer. Design a strict empirical research paper outline."
|
| 448 |
+
user_prompt = f'Topic: {topic}\nKeywords: {keywords}\nSynthesis:\n{synthesis_result}\nReturn ONLY a JSON: {{"en_topic": "...", "en_keywords": "...", "structure": [{{"section": "...", "weight": 0.15, "is_method_or_result": false}}]}}'
|
| 449 |
for attempt in range(3):
|
| 450 |
plan = self._extract_json_from_text(self.call_deepseek(sys_prompt, user_prompt, temp=0.2))
|
| 451 |
if plan and isinstance(plan, dict) and "structure" in plan:
|