Case study
Listing & Lease Compliance Review for Real Estate Brokerages
Brokers submit listings as free-form text plus PDFs: title documents and HOA CC&Rs. Every one has to be checked against fair-housing rules and the community's own restrictions before it goes live. This system extracts the facts, checks them clause by clause, blocks listings that break the rules, and holds risky ones for a human decision, with every finding traced back to the page it came from.
Problem
Compliance review was manual: a broker of record read each listing description and then hunted through long CC&R PDFs for rental caps, minimum lease terms, and short-term rental bans.
Listing text is unstructured and the rules live in long legal PDFs. A single discriminatory phrase or a lease term the HOA forbids can expose the brokerage to fines and complaints.
Solution
A four-layer system: (1) control: a listing ontology and a deterministic state machine; (2) execution: single-responsibility agents for extraction, document parsing, and rule checks; (3) risk: confidence-based routing to a human approver; (4) quality & cost: a golden dataset of past listings, model cascade, and per-document caching.
Models used: GPT-4o, GPT-4o-mini
Tools used: LangChain, Zod, Supabase (Postgres + pgvector), React
Impact
Every listing gets a structured compliance report with page-level citations instead of a reviewer's memory of the PDF.
Clean listings flow through automatically; listings with fair-housing or CC&R risk can't be published until a human approves them, and every decision is logged.

