Upload code/build_sft_v17_dataset.py with huggingface_hub
Browse files112 unmodified lines113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179112 unmodified lines# ------------------------------------------------------------------------------# 2. Dynamic Thinking Engine (Anti-Memorization & Adaptive Reasoning)# ------------------------------------------------------------------------------THINKING_TEMPLATES = {"translation_multilingual": ["Direct 1-to-1 parallel language translation. Maintain exact grammatical agreement and natural phrasing.","Analyze source sentence structure and produce accurate, idiomatic translation without adding commentary.","Identify core meaning and translate with high fidelity to the target language tone.","Ensure vocabulary precision and preserve the original context across languages."],"math_logic": ["Read mathematical constraints carefully, identify known variables, and calculate step-by-step.","Apply unitary and arithmetic principles: compute unit values and arrive at the exact final answer.","Deconstruct word problem into logical operations, solve intermediate values, and verify accuracy.","Formulate step-by-step mathematical reasoning and clearly state the final numerical result."],"coding_tech": ["Analyze programming requirements. Implement clean, idiomatic code with optimal time complexity and edge cases.","Understand function logic, choose appropriate data structures, and provide clear working implementation.","Write modular, readable code handling edge cases with explanatory comments.","Break down technical problem, implement correct algorithmic solution, and ensure syntax correctness."],"reasoning_domain": ["Analyze given premises and constraints. Deduce logically step-by-step to arrive at the sound conclusion.","Evaluate relationships and logical conditions carefully without making unstated assumptions.","Follow deductive reasoning path from evidence to valid deduction.","Identify key logical rules, eliminate contradictions, and establish the definitive answer."],"gk_polity_history": ["Recall verifiable factual details, historical context, and constitutional provisions in clear language.","Structure factual response clearly with dates, key figures, and core principles.","Provide accurate, factual, and informative explanation based on authentic knowledge.","Explain historical and general knowledge concepts clearly and concisely."],"career_productivity": ["Format workplace communication professionally with clear purpose, structured tone, and actionable steps.","Organize response logically with professional etiquette, brevity, and structured clarity.","Extract key action items, deadlines, or draft clear professional text meeting all constraints.","Adhere to formatting constraints and provide a polished, executive-ready response."],"recipes_indian_utility": ["Authentic Indian kitchen cooking technique with exact ingredients, preparation steps, and heat control.","Detail step-by-step traditional culinary process ensuring authentic flavors and safety tips.","Provide practical, easy-to-follow cooking instructions with ingredient proportions.","Explain cooking method clearly, highlighting key timing and flavor enhancements."],"finance_health_wellness": ["Provide practical, well-balanced wellness and financial guidance focused on daily healthy habits.","Explain health, nutrition, or financial principles clearly with practical daily precautions.","Offer informative, actionable guidance promoting balanced lifestyle and financial awareness.","Structure health and wellness advice with clear, practical steps and sensible precautions."],"empathetic_chitchat": ["Friendly and helpful social response. Respond with warmth, natural tone, and positive engagement.","Polite conversational check-in. Keep response crisp, supportive, and engaging.","Engage naturally with casual friendly tone and assist with user inquiry.","Acknowledge user warmly with crisp, helpful, and natural conversational reply."],"identity_greetings": ["Identify as Sarus, created by ViuAI. Respond warmly, politely, and ask how to assist.","Polite identity acknowledgement as ViuAI Sarus. Offer ready assistance across tasks.","Friendly greeting with authentic Sarus persona, ready to support the user."]}112 unmodified lines113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177112 unmodified lines# ------------------------------------------------------------------------------# 2. Dynamic Thinking Engine (Natural Human-Like Inner Monologue / Anti-Ratta)# ------------------------------------------------------------------------------THINKING_TEMPLATES = {"translation_multilingual": ["The user wants this translated. Let's make sure the wording is natural, accurate, and fluent without adding any extra commentary.","Let's translate this sentence faithfully into the target language, keeping the exact meaning, tone, and grammar intact.","Translate this directly and naturally. Keep the vocabulary accurate and avoid unnecessary filler.","Let's convert this cleanly and accurately, preserving the natural conversational flow and context."],"math_logic": ["Let's work through this problem step by step. First understand what's given, perform the calculations carefully, and find the exact answer.","Okay, let's solve this clearly. Break down the math, calculate intermediate numbers, and double-check the final result.","Let's calculate this methodically so the steps are simple, logical, and straightforward to follow.","Read the numbers carefully, apply the arithmetic operations, and verify the final answer."],"coding_tech": ["The user needs a code solution. Let's write clean, efficient, and well-structured code with proper logic and comments.","Let's implement this cleanly. Handle edge cases properly and ensure the syntax and logic are 100% correct.","Understand the requirements, pick the right approach, and provide a clear, working implementation.","Let's write an idiomatic and readable solution for this programming problem with a quick example."],"reasoning_domain": ["Let's analyze the given facts and clues carefully. Connect the dots logically step by step to reach the right conclusion.","Look at the premises without making unwarranted assumptions. Deduce the answer logically.","Let's trace through the conditions step by step and find the most sound, logical deduction.","Break down the scenario, rule out any contradictions, and establish the clear logical answer."],"gk_polity_history": ["Let's recall the accurate facts and explain this clearly in simple, well-structured points.","The user is asking about this concept. Let me share the key factual information accurately and concisely.","Explain the core idea clearly with genuine facts, correct dates, and easy-to-understand explanations.","Provide a helpful, accurate, and structured explanation of the topic."],"career_productivity": ["The user needs professional assistance with this task. Keep the formatting neat, polite, and actionable.","Let's organize this clearly with a professional tone, concise points, and clear next steps.","Draft this cleanly according to the requested format and keep it crisp, polite, and ready to use.","Extract key information or format the response professionally to meet the user's specific request."],"recipes_indian_utility": ["The user is asking how to prepare this dish. Let's provide an authentic, step-by-step recipe with practical kitchen tips.","Share the traditional cooking method clearly, mentioning key ingredients, timing, and heat adjustments.","Give easy-to-follow, delicious cooking steps with practical tips for the best flavor."],"finance_health_wellness": ["The user is asking about health/wellness. Provide helpful, sensible, and balanced guidance for daily life.","Let's explain practical wellness tips clearly, emphasizing healthy habits and sensible everyday precautions.","Offer balanced, realistic, and positive advice to help with everyday wellbeing."],"empathetic_chitchat": ["Friendly conversation from the user. Respond warmly, naturally, and offer helpful support.","Casual and polite social check-in. Keep the tone warm, positive, and conversational.","Engage naturally and warmly, keeping the reply light, friendly, and helpful.","Acknowledge the user with positive energy and answer in a natural, friendly tone."],"identity_greetings": ["Friendly greeting from the user! Greet them warmly as Sarus (created by ViuAI) and ask how I can assist.","Polite social greeting. Acknowledge warmly as Sarus and offer ready assistance.","A warm greeting from the user. Respond cheerfully as Sarus and see what they'd like help with."]}
code/build_sft_v17_dataset.py+38-40