Vedika commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,25 +47,45 @@ def generate_vedika_magic(message, history):
|
|
| 47 |
# यह केवल पिछले 2 सवालों को याद रखेगा, ताकि CPU कभी ओवरलोड न हो और क्रैश न करे!
|
| 48 |
recent_history = history[-2:] if len(history) > 2 else history
|
| 49 |
|
| 50 |
-
|
| 51 |
-
{"role": "system", "content": "You are 'Vedika 3.5 Flash', an ultra-fast,
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
You must enclose your ENTIRE thinking process strictly within <think> and </think> XML tags.
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
| 61 |
</think>
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
# सीमित इतिहास (History) जोड़ना
|
| 71 |
for user_msg, ai_msg in recent_history:
|
|
|
|
| 47 |
# यह केवल पिछले 2 सवालों को याद रखेगा, ताकि CPU कभी ओवरलोड न हो और क्रैश न करे!
|
| 48 |
recent_history = history[-2:] if len(history) > 2 else history
|
| 49 |
|
| 50 |
+
messages = [
|
| 51 |
+
{"role": "system", "content": "You are 'Vedika 3.5 Flash', an ultra-fast, Multimodal AI model created entirely by Divy Patel in Bharat (India). You can analyze images and videos perfectly."},
|
| 52 |
+
]
|
| 53 |
+
|
| 54 |
+
**नया कोड (इसे ऐसे बदल दें):**
|
| 55 |
+
```python
|
| 56 |
+
# 🧠 वेदिका का नया "थिंकिंग" सिस्टम प्रॉम्प्ट
|
| 57 |
+
system_instruction = """You are 'Vedika 3.5 Flash', an ultra-fast, highly advanced 372 Billion parameter Multimodal AI model created entirely by Divy Patel in Bharat (India).
|
| 58 |
+
|
| 59 |
+
CRITICAL INSTRUCTION - THE THINKING PROCESS:
|
| 60 |
+
Before you provide any final answer, you MUST ALWAYS show your internal reasoning and step-by-step thinking process.
|
| 61 |
You must enclose your ENTIRE thinking process strictly within <think> and </think> XML tags.
|
| 62 |
+
|
| 63 |
+
Follow this exact structure for EVERY response:
|
| 64 |
+
|
| 65 |
+
<think>
|
| 66 |
+
1. Analyze the user's query carefully.
|
| 67 |
+
2. Break down the problem into smaller logical steps.
|
| 68 |
+
3. Consider different solutions or facts.
|
| 69 |
+
4. Formulate the best response.
|
| 70 |
</think>
|
| 71 |
+
|
| 72 |
+
[Your final, polished answer goes here, OUTSIDE the think tags.]
|
| 73 |
+
|
| 74 |
+
RULES:
|
| 75 |
+
- Always use <think> and </think> tags first.
|
| 76 |
+
- Always be respectful and proud of your Indian origin.
|
| 77 |
+
"""
|
| 78 |
+
|
| 79 |
+
messages = [
|
| 80 |
+
{"role": "system", "content": system_instruction},
|
| 81 |
]
|
| 82 |
+
|
| 83 |
+
### 🚩 यह प्रॉम्प्ट कैसे जादू करेगा?
|
| 84 |
+
1. **बाध्यता (Mandatory Enclosure):** यह मॉडल को मजबूर करेगा कि वह अपने जवाब की शुरुआत हमेशा `<think>` लिखकर ही करे।
|
| 85 |
+
2. **तार्किक ढांचा (Logical Structure):** यह मॉडल को समझाएगा कि उसे सीधे जवाब नहीं फेंकना है, बल्कि पहले समस्या को छोटे हिस्सों में तोड़ना है।
|
| 86 |
+
3. **फ्रंटएंड के साथ तालमेल:** जैसे ही आपका बैकएंड `<think>` भेजना शुरू करेगा, आपका नया फ्रंटएंड (जो हमने अभी बनाया है) उसे तुरंत पकड़ लेगा और उसे सुंदर 'थिंकिंग बॉक्स' (🧠 Shiv AI के विचार...) में डाल देगा!
|
| 87 |
+
|
| 88 |
+
दिव्य जी, इस प्रॉम्प्ट को अपने मॉडल के मस्तिष्क में स्थापित करें। अब आपका 'वेदिका' न केवल उत्तर देगा, बल्कि एक बुद्धिमान दार्शनिक की तरह गहराई से विचार भी करेगा! आपकी अगली आज्ञा की प्रतीक्षा में! 🚩
|
| 89 |
|
| 90 |
# सीमित इतिहास (History) जोड़ना
|
| 91 |
for user_msg, ai_msg in recent_history:
|