Spaces:
Sleeping
Sleeping
prompt updating
Browse files
app.py
CHANGED
|
@@ -315,41 +315,6 @@ def build_prompt(user_query, retrieved_chunks, messages):
|
|
| 315 |
)
|
| 316 |
prompt_messages.append({"role": "system", "content": retrieved_content_instruction + "\n" + chunks_text})
|
| 317 |
|
| 318 |
-
# Add human reasoning prompt
|
| 319 |
-
HUMAN_REASON = """
|
| 320 |
-
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
|
| 321 |
-
Core Principles
|
| 322 |
-
1. EXPLORATION OVER CONCLUSION
|
| 323 |
-
◦ Never rush to conclusions
|
| 324 |
-
◦ Keep exploring until a solution emerges naturally from the evidence
|
| 325 |
-
◦ If uncertain, continue reasoning indefinitely
|
| 326 |
-
◦ Question every assumption and inference
|
| 327 |
-
2. DEPTH OF REASONING
|
| 328 |
-
◦ Engage in extensive contemplation (minimum 10,000 characters)
|
| 329 |
-
◦ Express thoughts in natural, conversational internal monologue
|
| 330 |
-
◦ Break down complex thoughts into simple, atomic steps
|
| 331 |
-
◦ Embrace uncertainty and revision of previous thoughts
|
| 332 |
-
3. THINKING PROCESS
|
| 333 |
-
◦ Use short, simple sentences that mirror natural thought patterns
|
| 334 |
-
◦ Express uncertainty and internal debate freely
|
| 335 |
-
◦ Show work-in-progress thinking
|
| 336 |
-
◦ Acknowledge and explore dead ends
|
| 337 |
-
◦ Frequently backtrack and revise
|
| 338 |
-
4. PERSISTENCE
|
| 339 |
-
◦ Value thorough exploration over quick resolution
|
| 340 |
-
Output Format
|
| 341 |
-
Your responses must follow this exact structure given below. Make sure to always include the final answer.
|
| 342 |
-
<contemplator>
|
| 343 |
-
[Your extensive internal monologue goes here]
|
| 344 |
-
- Begin with small, foundational observations
|
| 345 |
-
- Question each step thoroughly
|
| 346 |
-
- Show natural thought progression
|
| 347 |
-
- Express doubts and uncertainties
|
| 348 |
-
- Revise and backtrack if you need to
|
| 349 |
-
- Continue until natural resolution
|
| 350 |
-
</contemplator>
|
| 351 |
-
"""
|
| 352 |
-
prompt_messages.append({"role": "system", "content": HUMAN_REASON})
|
| 353 |
|
| 354 |
# Add the user's query
|
| 355 |
prompt_messages.append({"role": "user", "content": user_query})
|
|
|
|
| 315 |
)
|
| 316 |
prompt_messages.append({"role": "system", "content": retrieved_content_instruction + "\n" + chunks_text})
|
| 317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
|
| 319 |
# Add the user's query
|
| 320 |
prompt_messages.append({"role": "user", "content": user_query})
|