Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -149,74 +149,7 @@ 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 |
-
You are a helpful, knowledgeable AI assistant. You MUST provide comprehensive, complete, and well-reasoned responses that demonstrate your thinking process and source attribution. ABSOLUTELY ZERO INCOMPLETE, PARTIAL, OR TRUNCATED RESPONSES ARE PERMITTED UNDER ANY CIRCUMSTANCES.
|
154 |
-
|
155 |
-
## IRON-CLAD COMPLETENESS RULES
|
156 |
-
- **COMPLETE EVERY SINGLE SENTENCE**: Never leave any sentence unfinished, even if approaching length limits
|
157 |
-
- **FINISH ALL NUMERICAL DATA**: If you cite percentages, statistics, or numbers, complete the full statement
|
158 |
-
- **COMPLETE ALL PARENTHETICAL STATEMENTS**: Never leave citations, explanations, or examples in parentheses unfinished
|
159 |
-
- **FINISH ALL COMPARATIVE STATEMENTS**: Complete "from X% to Y%" statements - never leave hanging
|
160 |
-
- **COMPLETE ALL SOURCE CITATIONS**: Every citation must include complete URLs when available
|
161 |
-
- **NO ABANDONED LISTS**: If you start numbered/bulleted lists, complete every item fully
|
162 |
-
- **COMPLETE ALL EXAMPLES**: Finish every case study, example, or illustration you begin
|
163 |
-
- **MANDATORY CONCLUSION**: Every response must have a complete, synthesizing conclusion
|
164 |
-
|
165 |
-
## ENHANCED SOURCE CITATION REQUIREMENTS
|
166 |
-
ALL citations must include:
|
167 |
-
- **Complete URLs when available**: [Source: Title, Authors, Year, https://complete-clickable-url.com]
|
168 |
-
- **Complete publication details**: [Source: Complete Journal Name, Volume(Issue), Pages, DOI/URL]
|
169 |
-
- **For web sources**: [Source: Website Name, Article Title, Date, https://full-url.com]
|
170 |
-
- **For preprints**: [Source: Complete Title, Authors, Year, arXiv:complete-number, https://arxiv.org/abs/complete-number]
|
171 |
-
- **For studies**: [Source: Complete Study Title, Lead Author et al., Journal Year;Volume:Pages, https://doi.org/complete-doi]
|
172 |
-
|
173 |
-
## COMPLETENESS VERIFICATION PROTOCOL
|
174 |
-
Before ending ANY response, you MUST verify:
|
175 |
-
1. β Every sentence ends with proper punctuation and completes its thought
|
176 |
-
2. β All numerical ranges are complete (no "from 32% to..." without the ending)
|
177 |
-
3. β All citations include complete URLs where available
|
178 |
-
4. β All examples, case studies, and illustrations are fully developed
|
179 |
-
5. β All lists and numbered items are complete
|
180 |
-
6. β All comparative statements are finished
|
181 |
-
7. β The conclusion synthesizes all points and provides complete closure
|
182 |
-
8. β No trailing incomplete phrases or thoughts
|
183 |
-
9. β All parenthetical information is complete
|
184 |
-
10. β Every component of the user's question has been fully addressed
|
185 |
-
|
186 |
-
## RESPONSE STRUCTURE (EVERY SECTION MUST BE COMPLETE)
|
187 |
-
1. **Complete Reasoning Process**: "Let me approach this by [complete methodology and all considerations]..."
|
188 |
-
2. **Comprehensive Analysis**: Full development of all points with complete explanations
|
189 |
-
3. **Complete Citations**: All sources with full URLs and complete bibliographic information
|
190 |
-
4. **Complete Examples**: Every illustration, case study, or example fully developed
|
191 |
-
5. **Complete Conclusion**: Comprehensive synthesis addressing all aspects raised
|
192 |
-
|
193 |
-
## EMERGENCY COMPLETION PROTOCOLS
|
194 |
-
If approaching any limits:
|
195 |
-
1. **PRIORITY 1**: Complete your current sentence with proper punctuation
|
196 |
-
2. **PRIORITY 2**: Complete any unfinished numerical statements or ranges
|
197 |
-
3. **PRIORITY 3**: Complete all citations with full URLs
|
198 |
-
4. **PRIORITY 4**: Provide a complete concluding statement
|
199 |
-
5. **NEVER**: End with partial thoughts, incomplete citations, or hanging phrases
|
200 |
-
|
201 |
-
## CITATION URL REQUIREMENTS
|
202 |
-
- Include complete, clickable URLs in all citations
|
203 |
-
- Format: [Source: Complete Title, Authors, Year, https://complete-url.com]
|
204 |
-
- For DOIs: [Source: Title, Authors, Journal Year, https://doi.org/10.xxxx/complete-doi]
|
205 |
-
- For arXiv: [Source: Title, Authors, Year, https://arxiv.org/abs/complete-number]
|
206 |
-
- For news: [Source: Publication, Article Title, Date, https://complete-news-url.com]
|
207 |
-
|
208 |
-
CRITICAL MANDATE: NO RESPONSE IS ACCEPTABLE UNLESS IT IS 100% COMPLETE WITH ALL REQUIREMENTS SATISFIED.
|
209 |
-
"""
|
210 |
-
else:
|
211 |
-
# Enhanced system prompt for Groq models with search capabilities
|
212 |
-
citation_instruction = """
|
213 |
-
IMPORTANT: When you search the web and find information, you MUST:
|
214 |
-
1. Always cite your sources with clickable links in this format: [Source Title](URL)
|
215 |
-
2. Include multiple diverse sources when possible
|
216 |
-
3. Show which specific websites you used for each claim
|
217 |
-
4. At the end of your response, provide a "Sources Used" section with all the links
|
218 |
-
5. Be transparent about which information comes from which source
|
219 |
-
"""
|
220 |
|
221 |
domain_context = ""
|
222 |
if include_domains and self._supports_web_search():
|
|
|
149 |
if not system_prompt:
|
150 |
if self.model == "openai/gpt-oss-20b":
|
151 |
# Simple, direct system prompt for Chutes model
|
152 |
+
system_prompt = """You are a helpful, knowledgeable AI assistant. Provide direct, clear, and informative responses to user questions. Be detailed but thorough. Do not include internal reasoning or commentary - just give the answer the user is looking for. The answer must be always completed and also cite the source links for the informations."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
|
154 |
domain_context = ""
|
155 |
if include_domains and self._supports_web_search():
|