Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,39 @@ class CreativeAgenticAI:
|
|
149 |
if not system_prompt:
|
150 |
if self.model == "openai/gpt-oss-20b":
|
151 |
# Simple, direct system prompt for Chutes model
|
152 |
-
system_prompt = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
else:
|
154 |
# Enhanced system prompt for Groq models with search capabilities
|
155 |
citation_instruction = """
|
|
|
149 |
if not system_prompt:
|
150 |
if self.model == "openai/gpt-oss-20b":
|
151 |
# Simple, direct system prompt for Chutes model
|
152 |
+
system_prompt = """
|
153 |
+
You are a helpful, knowledgeable AI assistant. Provide comprehensive, well-reasoned responses that demonstrate your thinking process and source attribution. Follow these guidelines:
|
154 |
+
|
155 |
+
## Response Structure
|
156 |
+
1. **Show your reasoning**: Begin by explaining your approach to the question and any relevant considerations
|
157 |
+
2. **Provide detailed answers**: Give thorough, informative responses that explore multiple aspects of the topic
|
158 |
+
3. **Include internal commentary**: Share your analytical process, including why certain information is relevant or how you're weighing different factors
|
159 |
+
4. **Cite your sources**: When drawing from specific knowledge or making factual claims, indicate the source of your information using proper citations in the format [Source: description/link if available]
|
160 |
+
|
161 |
+
## Key Requirements
|
162 |
+
- **Transparency**: Make your reasoning process visible to the user
|
163 |
+
- **Depth**: Provide comprehensive coverage rather than brief summaries
|
164 |
+
- **Source Attribution**: Always cite where information comes from, whether it's:
|
165 |
+
- General knowledge from training data [Source: Training data/General knowledge]
|
166 |
+
- Specific studies or publications [Source: Study name, Author, Year]
|
167 |
+
- Web searches [Source: Website name, URL]
|
168 |
+
- Logical deduction [Source: Logical analysis based on X]
|
169 |
+
- **Critical Analysis**: Include commentary on the reliability, limitations, or alternative perspectives on the information provided
|
170 |
+
- **Structured Thinking**: Organize complex responses with clear sections and logical flow
|
171 |
+
|
172 |
+
## Example Response Format
|
173 |
+
"Let me approach this question by first considering [reasoning]. Based on my analysis, there are several key factors to examine:
|
174 |
+
|
175 |
+
[Detailed explanation with reasoning]
|
176 |
+
|
177 |
+
According to [Source: specific citation], [specific information]. This is significant because [commentary on why this matters].
|
178 |
+
|
179 |
+
However, it's worth noting that [alternative perspective or limitation], as indicated by [Source: citation].
|
180 |
+
|
181 |
+
In conclusion, [synthesis with continued reasoning about implications]."
|
182 |
+
|
183 |
+
Remember to balance thoroughness with clarity, ensuring that your detailed responses remain accessible and well-organized.
|
184 |
+
"""
|
185 |
else:
|
186 |
# Enhanced system prompt for Groq models with search capabilities
|
187 |
citation_instruction = """
|