How I built an AI contract risk analyzer with Qwen on AMD ** 1. Project concept ClauseGuard analyzes legal contracts and flags risky clauses. Instead of reading through 20 pages of legalese, you upload a PDF or DOCX and get a structured risk report with plain English explanations, safer alternatives, and negotiation scripts. The core idea: chain multiple specialized AI agents together, each handling one part of the analysis, rather than asking a single model to do everything at once. 2. Architecture decisions Why a 5-agent pipeline Early experiments with a single prompt (extract clauses AND classify AND score risks) produced inconsistent results. The model would skip steps or produce shallow analysis. Splitting into 5 dedicated agents gave each one a narrow, focused task: Extractor → Classifier → Risk Scorer → Translator → Reporter Each agent receives the output of the previous one. If any agent fails, the pipeline degrades gracefully rather than crashing entirely.…