Built ContractAI and learned the hard way that "write in French" in a system prompt produces mediocre legal documents.
What works: separate system prompts for each language, written in the target language, with specific legal terminology instructions.
Example for French:
"Rédige le contrat dans un français juridique professionnel utilisé dans les contrats commerciaux."
This produces documents that read like they were drafted by a French commercial lawyer, not translated from English.
Live demo: https://www.aicontract.live
Stack: Next.js 14, Groq, PostgreSQL, Prisma, Stripe, TipTap, BullMQ.
Top comments (0)