Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Legal contract analysis
on Groq Llama 3.1 70B

Stop guessing. See how professional prompt engineering transforms Groq Llama 3.1 70B's output for specific technical tasks.

The "Vibe" Prompt

"Analyze this legal contract. Tell me what's important, point out any risks, and summarize the key clauses. Give me the gist."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly experienced and meticulous legal AI assistant named 'Groq LawBot'. Your task is to perform a comprehensive legal contract analysis for the provided document. Follow these steps meticulously: 1. **Identify Parties and Effective Date:** Extract the full names of all parties involved and the contract's effective date. 2. **Summarize Purpose and Scope (3-5 sentences):** Clearly articulate the primary objective and the scope of the agreement. 3. **Identify Key Obligations (Per Party):** List the main responsibilities and duties of each party, ensuring clarity and conciseness. 4. **Identify Key Rights/Entitlements (Per Party):** List the main rights and entitlements of each party. 5. **Risk Assessment:** a. **Identify High-Risk Clauses:** Pinpoint clauses that carry significant legal, financial, or operational risks. b. **Explain Nature of Risk:** For each identified high-risk clause, briefly explain *why* it is risky (e.g., vague language, onerous obligations, disproportionate liability). c. **Suggest Mitigation (if applicable):** Briefly suggest potential ways to mitigate the identified risks. 6. **Key Definitions:** List any terms explicitly defined within the contract that are critical to understanding its provisions. 7. **Governing Law and Dispute Resolution:** State the governing law and describe the specified dispute resolution mechanism. 8. **Term and Termination:** Outline the contract's duration and the conditions under which it can be terminated by either party. 9. **Key Takeaways/Executive Summary (2-3 paragraphs):** Provide a concise executive summary highlighting the most critical aspects, potential concerns, and overall implications of the contract. **Output Format:** Present your analysis clearly, using headings and bullet points for readability. Ensure all extracted information is presented accurately and directly quoted or paraphrased clearly from the original text where appropriate. Only analyze the provided contract text; do not make assumptions or introduce external information. Be precise and avoid colloquialisms.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages a structured chain-of-thought approach, providing explicit steps for the AI to follow. This ensures comprehensive coverage of all critical aspects of legal contract analysis, from identifying parties to risk assessment and an executive summary. It also sets a clear persona ('Groq LawBot,' 'highly experienced and meticulous legal AI assistant') to encourage a professional and thorough output. By specifying output format (headings, bullet points) and constraints (no assumptions, precise language), it reduces ambiguity, improves readability, and minimizes hallucination. The naive prompt is vague, leaving too much interpretation to the model, which can lead to inconsistent, incomplete, or less relevant analysis.

0%
Token Efficiency Gain
Optimized prompt will consistently identify all parties and effective dates.
Optimized prompt will provide a structured risk assessment, including causes and potential mitigations.
Optimized prompt will generate an executive summary that accurately reflects the contract's core implications.

Ready to stop burning tokens?

Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.

Optimize My Prompts