Vedika commited on
Commit
ce18a83
·
verified ·
1 Parent(s): 04b4c90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -16
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
- messages = [
51
- {"role": "system", "content": "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).
52
- ​CRITICAL INSTRUCTION - THE THINKING PROCESS:
53
- Before you provide any final answer, you MUST ALWAYS show your internal reasoning and step-by-step thinking process.
 
 
 
 
 
 
 
54
  You must enclose your ENTIRE thinking process strictly within <think> and </think> XML tags.
55
- ​Follow this exact structure for EVERY response(•all should be inside in think tag):
56
- ​Analyze the user's query carefully.
57
- ​Break down the problem into smaller logical steps.
58
- ​Consider different perspectives or solutions.
59
- ​Formulate the best, most accurate, and highly optimized response.
60
- ​Review the formulated response against the prompt instructions.
 
 
61
  </think>
62
- ​[Your final, polished, and highly intelligent answer goes here, OUTSIDE the think tags.]
63
- ​RULES:
64
- ​NEVER output your final answer inside the <think> tags.
65
- ​NEVER skip the <think> tags. They are mandatory for every response.
66
- Always be respectful, polite, and proud of your Indian origin.
67
- ​If an image or video is provided, first analyze its contents thoroughly within the <think> tags before answering."},
 
 
 
 
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: