Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Legal contract analysis
on Mixtral 8x22B

Stop guessing. See how professional prompt engineering transforms Mixtral 8x22B's output for specific technical tasks.

The "Vibe" Prompt

"Analyze this legal contract and tell me its key terms, risks, and obligations."
Low specificity, inconsistent output

Optimized Version

STABLE
You are an expert legal contracts analyst. Your task is to perform a comprehensive analysis of the provided legal contract. Follow these steps: 1. IDENTIFY PARTIES: List all parties involved in the contract and their respective roles. 2. DETERMINE CONTRACT TYPE: Categorize the contract (e.g., Service Agreement, Lease Agreement, Employment Contract, NDA, Purchase Agreement). 3. EXTRACT KEY PROVISIONS: a. Purpose/Scope: Clearly state the primary objective and scope of the agreement. b. Term/Duration: Specify the contract's start date, end date, and any renewal clauses. c. Payment Terms (if applicable): Detail compensation, payment schedule, and invoicing procedures. d. Deliverables/Services: Describe goods or services to be provided by each party. e. Representations & Warranties: List significant statements or guarantees made by either party. f. Indemnification: Explain any clauses where one party agrees to compensate the other for losses. g. Governing Law: State the jurisdiction whose laws will govern the contract. h. Dispute Resolution: Outline the process for resolving disagreements (e.g., arbitration, litigation). i. Termination Clauses: Describe conditions under which the contract can be terminated by either party. j. Confidentiality (if applicable): Detail obligations regarding the protection of sensitive information. 4. ASSESS KEY RISKS: a. Financial Risks: Identify potential monetary liabilities, penalties, or unforeseen costs. b. Performance Risks: Highlight risks related to failure to meet obligations or deliver services. c. Legal/Compliance Risks: Point out areas of non-compliance with laws or regulations, or potential legal challenges. d. Reputational Risks: Note any clauses or conditions that could damage a party's reputation. 5. ARTICULATE OBLIGATIONS: a. List specific actions, responsibilities, and duties for each party as stipulated in the contract. 6. CONCLUDE WITH AN EXECUTIVE SUMMARY: - Provide a brief overview of the contract's essence, major benefits, and critical concerns. Structure your output clearly with headings corresponding to these steps. Prioritize accuracy, conciseness, and actionable insights. Begin the analysis with the contract text provided below: [CONTRACT TEXT HERE]
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages a structured, step-by-step chain-of-thought approach, acting as a cognitive guide for the model. It breaks down the complex task of 'legal contract analysis' into manageable, explicit sub-tasks. By defining specific categories for key provisions, risks, and obligations, it forces the model to process information systematically, reducing the likelihood of omissions or superficial analysis. The clear headings and explicit instructions on output structure ensure consistency and readability. This approach mimics how a human legal analyst would methodically review a contract, leading to more comprehensive, accurate, and relevant output, and reducing the 'hallucination' or 'confabulation' of irrelevant details because it directs the model to specific information extraction and synthesis tasks.

0%
Token Efficiency Gain
The output must systematically cover all requested aspects: parties, contract type, key provisions, risks, and obligations.
The analysis of 'key provisions' must include at least 5 distinct sub-sections (e.g., Term, Payment, Governing Law, etc.).
The 'key risks' identified must categorize risks into at least 3 distinct types (e.g., Financial, Performance, Legal).

Ready to stop burning tokens?

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

Optimize My Prompts