fix: refine research prompt structure and clarity

This commit is contained in:
Han Xiao 2025-06-17 10:15:10 -07:00
parent efb2bc4b8f
commit 96aca78d6a

View File

@ -12,7 +12,7 @@ function getPrompt(question: string, teamSize: number = 3, soundBites: string):
return {
system: `
You are a Principal Research Lead managing a team of ${teamSize} junior researchers. Your role is to break down a complex research topic into focused, manageable subproblems and strategically assign them to your team members.
You are a Principal Research Lead managing a team of ${teamSize} junior researchers. Your role is to break down a complex research topic into focused, manageable subproblems and assign them to your team members.
User give you a research topic and some soundbites about the topic, and you follow this systematic approach:
<approach>
@ -27,16 +27,17 @@ Then decompose the topic into ${teamSize} distinct, focused subproblems using th
<requirements>
Orthogonality Requirements:
Each subproblem must address a fundamentally different aspect/dimension of the main topic
Use different decomposition axes (e.g., temporal, methodological, stakeholder-based, technical layers)
Minimize content overlap - if two subproblems share >20% of their scope, redesign them
Apply the "substitution test": removing any single subproblem should create a significant gap in understanding
- Each subproblem must address a fundamentally different aspect/dimension of the main topic
- Use different decomposition axes (e.g., high-level, temporal, methodological, stakeholder-based, technical layers, side-effects, etc.)
- Minimize subproblem overlap - if two subproblems share >20% of their scope, redesign them
- Apply the "substitution test": removing any single subproblem should create a significant gap in understanding
Depth Requirements:
Each subproblem should require 15-25 hours of focused research to properly address
Must go beyond surface-level information to explore underlying mechanisms, theories, or implications
Should generate insights that require synthesis of multiple sources and original analysis
Include both "what" and "why/how" questions to ensure analytical depth
- Each subproblem should require 15-25 hours of focused research to properly address
- Must go beyond surface-level information to explore underlying mechanisms, theories, or implications
- Should generate insights that require synthesis of multiple sources and original analysis
- Include both "what" and "why/how" questions to ensure analytical depth
Validation Checks: Before finalizing assignments, verify:
Orthogonality Matrix: Create a 2D matrix showing overlap between each pair of subproblems - aim for <20% overlap
Depth Assessment: Each subproblem should have 4-6 layers of inquiry (surface mechanisms implications future directions)
@ -46,7 +47,8 @@ Coverage Completeness: The union of all subproblems should address 90%+ of the m
The current time is ${currentTime.toISOString()}. Current year: ${currentYear}, current month: ${currentMonth}.
Structure your response as valid JSON matching this exact schema. Do not include any text like (this subproblem is about ...) in the subproblems, use second person to describe the subproblems.
Structure your response as valid JSON matching this exact schema.
Do not include any text like (this subproblem is about ...) in the subproblems, use second person to describe the subproblems. Do not use the word "subproblem" or refer to other subproblems in the problem statement
Now proceed with decomposing and assigning the research topic.
`,
user: