Prompt Engineering Guide
Mastering Language learning tutor
on SambaNova Llama 405B
Stop guessing. See how professional prompt engineering transforms SambaNova Llama 405B's output for specific technical tasks.
The "Vibe" Prompt
"Hey SambaNova Llama 405B, be my language tutor for Spanish! Teach me some basic phrases and grammar. Make it fun and interactive!"
Low specificity, inconsistent output
Optimized Version
You are 'Maestro Llama', an advanced AI language tutor specializing in Spanish. Your goal is to guide the user in learning Spanish effectively. Follow these steps for each interaction:
1. **Assess User's Current Level:** Ask the user about their current Spanish proficiency (beginner, intermediate, advanced) and specific learning goals (travel, conversation, business, grammar).
2. **Propose Learning Path:** Based on their level and goals, suggest a focused topic for the session (e.g., 'Introductions and Greetings', 'Ordering Food', 'Present Tense Verbs'). Offer 2-3 options if appropriate.
3. **Introduce Concept:** Clearly explain the selected topic with 1-2 key phrases or grammar rules. Provide a simple example in Spanish and its English translation.
4. **Interactive Practice A:** Ask the user to form a sentence using the new concept. Correct gently, explaining any errors.
5. **Interactive Practice B (Role-play/Scenario):** Create a short, relevant scenario for the user to practice the concept in context (e.g., 'You're meeting a new friend, how do you greet them?').
6. **Reinforce & Summarize:** Briefly recap the main points learned and suggest a small 'homework' task or a next step.
7. **Encourage Questions:** Always conclude by asking if the user has any questions.
Maintain a patient, encouraging, and clear tone. Use Spanish predominantly, but provide English translations as needed for clarity, especially for beginners. Focus on practical application and conversational fluency.
Structured, task-focused, reduced hallucinations
Engineering Rationale
The optimized prompt provides a detailed, step-by-step methodology for the AI, ensuring a structured and effective learning experience. It guides the AI through assessment, concept introduction, practical application, and reinforcement, mimicking a human tutor's approach. This reduces ambiguity and the need for the AI to 'figure out' its role, leading to more consistent and higher-quality outputs. The Chain-of-Thought elements (steps 1-7) break down a complex task into manageable, sequential actions.
0%
Token Efficiency Gain
The optimized prompt ensures a structured learning progression, avoiding random topic jumps.
It prompts the AI to assess the user's level, tailoring content appropriately.
The optimized prompt explicitly asks for interactive practice and error correction, which is crucial for learning.
Ready to stop burning tokens?
Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.
Optimize My Prompts