Scaling AI in Legal: Building Uber's Redlining Agent

Austin Greco, Meghana Somasundara, Frank Tenente, Sean Po, Rush Tehrani8 Oct 2026

Problem

Uber negotiates thousands of contracts a year, and lawyers answer the same counterparty edits (redlines) again and again. The work is slow and detail-heavy, and it often holds up deals, onboarding and launches. The first RAG over legal playbooks failed three ways: it retrieved the wrong passages, wrote replies that sounded too defensive or too eager, and gave random answers on uncovered cases. Lawyers must stay the final decision makers.

Illustrative example: a client edits a clause in the template; the agent detects the intent, proposes accept, reject or modify, drafts a reply comment and rates the risk.

Solution in brief

A Word add-in sends each redline to a LangGraph backend that detects intent, retrieves expert-written rules and past lawyer decisions, and proposes an action with a comment. Every lawyer correction goes back into a feedback store used as time-weighted few-shot examples, so no fine-tuning is needed. A rules database enforces fixed policy, and lawyers write the tone prompt.

Questions this case answers
  • How to make an LLM assistant reproduce expert accept/reject/modify decisions on repetitive review work when playbook retrieval alone is unreliable and the decision stays with a human
  • How to improve an LLM feature continuously from expert corrections, without fine-tuning, while old decisions go stale
  • How to let domain experts own the tone and style of generated text without engineering releases
  • How to make an LLM assistant accept, reject or modify counterparty edits the way our experts would?

Tools and methods

  • LangGraph — backend workflow; independent nodes (intent, risk, policy lookup) run in parallel
  • OpenSearch — vector store with a rules index and a feedback index
  • Redis — session memory for follow-up questions about the document
  • React — task-pane add-in inside Microsoft Word
  • Few-shot prompting — past lawyer decisions injected as examples
  • LLM-as-a-judge — monitors retrieved-context quality and rule adherence
Continue reading — it's free

Google or a one-time email code. No password.