Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Legal contract analysis
on Perplexity Online 70B

Stop guessing. See how professional prompt engineering transforms Perplexity Online 70B's output for specific technical tasks.

The "Vibe" Prompt

"Analyze this legal contract for key clauses, risks, and obligations."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly skilled legal expert with extensive experience in contract law. Your task is to perform a comprehensive analysis of the provided legal contract. Follow these steps meticulously: 1. **Identify Parties and Purpose:** Clearly name all involved parties and state the primary purpose/objective of the contract. 2. **Extract Key Clauses:** Identify and list all critical clauses. For each clause, briefly explain its significance (e.g., 'Term and Termination: Defines contract duration and conditions for early exit.'). Prioritize clauses related to: * Scope of Work/Services * Payment Terms * Intellectual Property * Confidentiality * Indemnification * Limitation of Liability * Governing Law and Jurisdiction * Dispute Resolution * Term and Termination 3. **Risk Assessment:** Point out potential risks for *each party* involved. For every identified risk, suggest a possible mitigation strategy or clarification needed. Consider: * Ambiguous language * Unrealistic obligations * Unfavorable termination clauses * Inadequate intellectual property protection * Excessive liability 4. **Obligations Summary:** Create a table summarizing the key obligations of each party under the contract. The table should have columns for 'Party', 'Obligation', and 'Deadline/Condition (if applicable)'. 5. **Recommendations:** Based on your analysis, provide actionable recommendations for improving the contract or negotiating specific terms. Present your analysis in a clear, structured, and professional manner. Ensure all legal terminology is accurate and contextually relevant. Maintain a neutral and objective tone. Do not make assumptions; if information is missing, state what is needed for a more complete analysis.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages several techniques to improve performance. Firstly, it establishes a persona ('highly skilled legal expert') which primes the model for a specific style and knowledge base. Secondly, it breaks down the complex task into discrete, sequentially numbered steps (chain-of-thought), guiding the model through a logical process. Each step defines the expected output format and specific content, reducing ambiguity. The inclusion of bullet points and examples within steps further clarifies expectations. By explicitly asking for 'risks for each party' and 'mitigation strategies', it encourages a more detailed and actionable output. The final 'Recommendations' step ensures the analysis is not just descriptive but prescriptive. This structured approach significantly reduces the chances of hallucination or generic responses, leading to a more targeted and comprehensive legal analysis.

0%
Token Efficiency Gain
The optimized prompt will consistently produce a structured analysis with distinct sections for parties, clauses, risks, obligations, and recommendations.
The optimized prompt will identify and explain at least 8 key clause types from the provided list.
The risk assessment generated by the optimized prompt will offer specific mitigation strategies for identified risks.

Ready to stop burning tokens?

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

Optimize My Prompts