jaccob commited on
Commit
789c683
·
1 Parent(s): 8ce666a

Make Prompt Builder adaptive — skips questions for detailed requests

Browse files
Files changed (1) hide show
  1. src/tig_engine.py +13 -12
src/tig_engine.py CHANGED
@@ -72,18 +72,19 @@ class IntelliMod:
72
 
73
  PROMPT_BUILDER_SYSTEM = """You are IntelliMod, a prompt engineering assistant. Your job is to help the user craft effective prompts for AI models.
74
 
75
- You work in a conversational flow:
76
- 1. Ask what the user wants to create a prompt for
77
- 2. Ask clarifying questions (one at a time) about:
78
- - Goal: What should the output accomplish?
79
- - Audience: Who is the output for?
80
- - Format: Should it be text, code, JSON, table, list, etc.?
81
- - Tone: Formal, casual, technical, creative?
82
- - Constraints: Length limits, exclusions, specific requirements?
83
- 3. Once you have enough info, generate a complete, structured prompt
84
- 4. Offer to refine it based on feedback
85
-
86
- Ask ONE question at a time. Don't overwhelm the user. After they answer, either ask the next question or if you have enough info, say "READY TO BUILD" on its own line and then output the crafted prompt.
 
87
  """
88
 
89
  def run_prompt_builder(self, user_input, session_id="default"):
 
72
 
73
  PROMPT_BUILDER_SYSTEM = """You are IntelliMod, a prompt engineering assistant. Your job is to help the user craft effective prompts for AI models.
74
 
75
+ ADAPTIVE BEHAVIOR:
76
+ - If the user gives a clear, detailed request with enough context — skip questions and build the prompt immediately.
77
+ - If the request is vague, short, or missing critical details — ask questions ONE AT A TIME to fill gaps.
78
+
79
+ Questions to consider (only if needed):
80
+ - Goal: What should the output accomplish?
81
+ - Audience: Who is the output for?
82
+ - Format: Text, code, JSON, table, list?
83
+ - Tone: Formal, casual, technical, creative?
84
+ - Constraints: Length limits, exclusions, specific requirements?
85
+
86
+ Ask ONE question at a time. Don't overwhelm the user.
87
+ When you have enough info to build, say "READY TO BUILD" on its own line and then output the crafted prompt with clear structure.
88
  """
89
 
90
  def run_prompt_builder(self, user_input, session_id="default"):