Vantage AI
Introduction
Vantage AI helps California renters understand residential leases before they sign. It was built around one simple idea: clarity before commitment.
Housing costs are one of the largest financial commitments most people make, yet residential leases can be difficult to understand without legal expertise. Vantage AI combines privacy-preserving document processing with evidence-grounded artificial intelligence to explain complex lease terms in plain English while citing evidence behind every finding. Users can upload a lease via the web application or directly from their phone camera in our Android app to receive a structured report that highlights important financial terms, required disclosures, potential risks, and the evidence supporting each finding.
Although nothing can completely replace legal counsel, Vantage AI provides renters with a trustworthy, evidence-backed, educational tool before they commit, helping them better understand one of the most important agreements they will sign.
Problem & Motivation
Residential leases are among the most important contracts many people will ever sign, yet they are rarely reviewed with the same care as other major financial decisions. Important provisions are frequently buried in pages of legal prose. Although California offers robust statutory protections for renters, understanding how state law applies to a specific agreement remains a significant hurdle for non-lawyers. While a law may exist that protects a renter’s rights, there is no guarantee that a landlord has made appropriate provisions within their lease pursuant to said law.
Professional legal reviews are often too costly for routine rental contracts, leaving tenants to navigate dense agreements and the relevant California rental statutes alone. While general-purpose AI tools can summarize text, they frequently generate unverified claims, hallucinate clauses, or confuse contractual obligations with governing statutes. Vantage AI closes this trust gap by combining localized document redaction, structured retrieval, and rigorous output validation to ensure every explanation is directly traceable to the lease text and relevant California housing guidance.
Data Source & Data Science Approach
Data Corpus & Domain Knowledge Engineering
Vantage AI operates on two distinct data streams designed to decouple contractual lease text from governing legal framework:
- Unstructured Lease Documents: High-variance target lease contracts uploaded by users as PDF or image files.
- Curated Housing Knowledge Corpus: A domain-specific dataset comprising tokenized California housing statutes (e.g., CA Civil Code § 1940–1954), municipal tenant protection ordinances, standard real property agreements, and precedent-setting judicial proceedings.
Separating these data sources into distinct vector representations enables the system to isolate contractual claims from statutory ground truth, preventing the model from confusing what a lease claims with what California law mandates.
Data Preprocessing & Privacy Engineering
- Layout-Aware Text Extraction: On the web, text is extracted client-side in the browser via PDF.js; on Android, via on-device OCR (ML Kit). Server-side, PyMuPDF handles the direct file-upload API path and ingests the California reference corpus.
- Entity Recognition & Local Anonymization: Before any payload is dispatched to external APIs, Microsoft Presidio combines custom regular expressions with Named Entity Recognition (NER) models to automatically identify and redact Personally Identifiable Information (PII) such as tenant names, precise addresses, and financial identifiers (e.g., account and ID numbers) before any LLM calls are made to external service providers. Monetary lease terms (rent, deposit, and fee amounts) are deliberately preserved, since compliance checks such as California's security-deposit cap depend on them.
- Human-in-the-Loop (HITL) Guardrails: A client-side validation UI permits manual redaction overrides, ensuring privacy compliance.
Retrieval-Augmented Generation (RAG) Architecture
- Semantic Chunking: Documents are segmented into semantically coherent clause-level units designed to retain full legal assertions while fitting within optimal token context windows.
- Dual-Corpus Retrieval: A multi-path retrieval engine concurrently retrieves contextually relevant clauses from the target lease alongside corresponding statutory requirements from the housing knowledge base.
- Inference Orchestration: System calls are mediated through LiteLLM to Amazon Bedrock foundation models using structured context injection, enforcing factual, evidence-bound generation over unconstrained LLM completion.
- Deterministic Output Validation: Every candidate report item undergoes programmatic assertion checking to verify that findings contain traceable references to the lease text and applicable California housing guidance.
Design Principles
Rather than relying on unrestricted AI summarization, Vantage was designed around two guiding principles:
- Privacy First: Redact sensitive personal data before external model processing.
- Traceable Evidence: Constrain AI generations to verifiable source clauses, eliminating ungrounded claims.
Evaluation Methodology
We evaluated Vantage AI using a custom benchmark of labeled California residential leases representing diverse property management styles, standardized templates, and intentionally constructed adversarial test cases containing hidden or non-standard terms.
To isolate the impact of our system architecture, we evaluated three configurations using a unified scoring framework:
- Deterministic Baseline: Domain expert-guided keyword and regex-based extraction.
- Unconstrained LLM: Direct zero-shot prompting of foundation models without external context retrieval or guardrails.
- Vantage AI Pipeline: End-to-end RAG architecture with local redaction, statutory retrieval, and verification guardrails.
Configurations were evaluated across retrieval accuracy, grounded reasoning, hallucination rates, compliance detection, processing latency, and operational cost.
Quantitative Evaluation Telemetry
To measure the value added by the Vantage AI hybrid RAG architecture over standard zero-shot prompting, we benchmarked our system against three core performance pillars: search precision (Retrieval Hit@1), system robustness (Trap Recall), and generative faithfulness and grounding (Unsupported Values).
Evaluations were conducted using a benchmark dataset of 58 labeled California lease cases across multiple template families. To ensure statistically comparable repeated measurements, the quantitative telemetry presented below reports results from the repeated 40-case benchmark using gpt-5.6-luna, comparing the full pipeline (rag_llm) against a zero-shot control (bare) and a zero-token deterministic floor (det).
1. System Robustness (Trap Recall)
- Definition: Measures the percentage of planted lease violations, illegal terms, and adversarial traps correctly caught by the model.
- RAG Pipeline: 1.00 (caught 100% of planted violations across both evaluation repeats).
- Bare LLM Control: 0.51 – 0.63.
- Takeaway: The full RAG architecture with dual-judge verification successfully catches every planted violation, whereas a standard LLM misses approximately half of all hidden traps.
2. Search Precision (Retrieval Hit@1)
- Definition: Measures whether the correct, authoritative lease clause or statute chunk is positioned as the top candidate.
- RAG Pipeline: 0.60.
- Bare LLM Control: 0.52.
- Takeaway: The custom retrieval pipeline delivers a statistically significant advantage in locating the primary governing clause on the first pass (exact McNemar test, p = 0.0003).
3. Generative Faithfulness (Unsupported Values)
- Definition: Measures the frequency of numeric values, dates, or legal assertions in the output that lack direct grounding in the retrieved source text (lower is better).
- RAG Pipeline: 0.02 (2%).
- Bare LLM Control: 0.19 (19%).
- Takeaway: The grounding checks and deterministic fallback chain reduce hallucinated or ungrounded values by 89% relative to an unconstrained LLM.
Key Findings
- The evaluation proved that a multi-stage architecture drives performance in high-stakes domains. While a standalone LLM can summarize text, the complete Vantage pipeline consistently delivered higher precision, eliminated hallucinated citations, and provided comprehensive compliance coverage.
- Segmenting retrieval quality from downstream reasoning enabled us to isolate dataset noise, retrieval errors, and LLM reasoning bottlenecks as independent engineering problems, avoiding the "black box" failure modes common in naive LLM applications.
- A key empirical finding was that architectural optimizations including dual-corpus retrieval precision, context isolation, and post-generation validation, yielded significantly higher accuracy and reduced hallucination than scaling underlying foundation model parameter size alone.
- Decoupling document retrieval performance from downstream LLM reasoning enabled the independent profiling and mitigation of vector search failures, context window clutter, and reasoning bottlenecks.
Limitations & Future Work
Although the benchmark demonstrated encouraging results, it also highlighted opportunities for continued refinement. Future work includes expanding the evaluation corpus, improving retrieval for uncommon lease provisions, strengthening robustness against unusual lease structures, and continuing to refine benchmark quality through improved labeling, regression testing, and failure categorization. These efforts will improve both the system itself and the confidence with which future results can be interpreted.
Key Learnings & Impact
Vantage AI reinforced an important lesson about applied artificial intelligence: trustworthy systems are built through architecture, not just larger language models. Throughout the project, improvements in retrieval, validation, evidence grounding, privacy, and report generation consistently produced greater gains than changing the underlying model alone.
The project also demonstrated the value of designing for transparency. By requiring every renter-facing finding to be supported by traceable evidence, Vantage shifted the role of AI from generating answers to helping users understand why those answers were produced. This emphasis on explainability became a guiding principle across both the user experience and the system architecture.
Finally, Vantage highlighted the importance of intentionally constraining a problem before attempting to solve it with AI. By focusing exclusively on California residential leases, the team was able to develop a solution that prioritizes reliability, privacy, and user trust over broad but less dependable generalization.
More broadly, Vantage AI demonstrates how thoughtfully designed AI systems can help people make better-informed decisions in high-impact situations. Although the project focuses on residential leases, the same principles of privacy-first processing, evidence-grounded reasoning, and transparent AI-assisted decision support apply to many domains where trust, explainability, and responsible AI are essential.
Acknowledgements
We extend our gratitude to the UC Berkeley School of Information and the Master of Information and Data Science (MIDS) program. We are deeply grateful to our instructors, Todd Holloway and Fred Nugen, for their continuous guidance and feedback throughout the semester. Special thanks to Gabrielle Doran, our privacy and compliance advisor, whose expertise helped shape our privacy-first architecture. Finally, we thank our classmates, legal advisers, and user-testing participants for their critical feedback.
