SaaS Platform
Dirham
Full-Stack & ML Engineer — RAG pipeline, diff engine, and review UI
amine.dev
Overview
AI-powered contract lifecycle platform that reviews clauses against local regulation and internal policy, surfaces drafting risk, and tracks international compliance obligations.
Dirham is a contract intelligence platform built for legal and procurement teams operating across multiple jurisdictions. I designed a retrieval pipeline that grounds Claude in a curated corpus of local statutes and tenant-specific policy documents, then layered a clause-level diffing engine on top so reviewers can see exactly which obligations changed between revisions. The React workspace renders annotations inline with the document, and a Pandas-driven analytics layer reports risk distribution across the contract portfolio.
Engineering Highlights
- Clause-level retrieval-augmented review grounded in jurisdiction-specific statutes and tenant policy libraries
- Document diffing engine that maps semantic clause changes between contract revisions, not just textual diffs
- Policy authoring workspace where legal teams encode rules once and apply them across the entire contract portfolio
- Auditable AI output — every flagged risk links back to the exact source passage in the underlying policy or regulation
Tech Stack
PythonClaude APIPandasReactPostgreSQLpgvector