Spaces:
Running
Running
Make Prompt Builder adaptive — skips questions for detailed requests
Browse files- 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 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
Ask ONE question at a time. Don't overwhelm the user.
|
|
|
|
| 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"):
|