Uber 表示,其法务合同修订智能体将平均合同审查时间缩短了 20% 以上,AI 生成决策的准确率达到 91%。该智能体集成在 Microsoft Word 中,利用检索增强生成(RAG)、律师的历史反馈和确定性规则,分析合同修改建议、评估法律风险,并推荐符合政策的应对方式。律师仍然负责审查并批准其建议。
该智能体会识别外部合作方提出的修改,理解其意图,将变更与法律政策进行比较,并建议接受、拒绝或修改相关条款。它还会生成评论,解释推荐理由,并标记需要进一步审查的变更。Uber 于 2024 年初开始开发第一代系统,并于 2025 年在法务团队中进行试点。
法务合同修订插件/智能体的高层工作流 (来源:Uber 博客文章)
最初的 RAG 实现会从法律操作手册中检索相关内容,用来指导语言模型生成回复。然而,该系统在语义检索准确率、谈判语气以及现有示例没有覆盖的场景中表现不佳。随后,Uber 增加了一套反馈循环,用于记录律师的决策、推理过程和最终修改后的文本。
这一变化使智能体能够检索相似条款过去的处理方式,而不再只是参考此前的建议是被接受还是被拒绝。在运行时,相似度搜索和元数据过滤会将数千条历史交互缩小至约 20 个候选项。第二个基于语言模型的过滤阶段会进一步评估它们的相关性。系统采用指数衰减加权,并将当前可配置的半衰期设为 365 天,从而在保留较早示例的同时,优先使用近期决策。这套实现还允许领域专家控制措辞和谈判风格。
Uber 工程团队在其 LinkedIn 帖子中这样描述这项挑战:
AI 如何在让律师继续掌握控制权的同时,简化重复性的合同审查工作?
法务团队负责定义所需的语气和风格,工程师则维护提示词结构与应用工作流。该架构包含一个使用 React 和 TypeScript 构建的 Word 插件,以及一个通过 LangGraph 编排的 Python 后端。多个并行工作流节点分别负责意图识别、风险评估和政策查询。OpenSearch 用于存储向量化的法律规则和历史反馈,Redis 则维护后续问题所需的会话状态。
法务合同修订智能体的系统架构(来源:Uber 博客文章)
确定性规则引擎负责强制执行不可协商的法律要求。当存在匹配规则时,它会覆盖模型给出的建议。语言模型则负责需要结合上下文进行解释的任务,包括条款建议和谈判语气。最后的验证步骤会根据检索到的规则检查生成的回复。
Uber 还在探索 Claude Code 和 OpenCode 等智能体框架,以及用于组织和自动化各类智能体 AI 工作流的 Skill。团队计划研究法律本体和知识图谱,用来表示法律概念及其关系,为更加一致的解释和推理提供语义基础。
原文链接:
https://www.infoq.com/news/2026/11/uber-legal-redlining-agent/
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
Uber states that its legal contract redlining AI agent has reduced average contract review time by more than 20%, with 91% accuracy on AI-generated decisions. The AI agent is integrated into Microsoft Word and leverages retrieval-augmented generation (RAG), historical feedback from lawyers, and deterministic rules to analyze proposed contract revisions, assess legal risks, and recommend policy-compliant responses. Lawyers remain responsible for reviewing and approving its recommendations.
The AI agent identifies revisions proposed by external counterparties, understands their intent, compares changes against legal policies, and recommends whether to accept, reject, or modify relevant clauses. It also generates comments explaining the rationale and flags changes requiring further review. Uber began developing the first-generation system in early 2024 and piloted it within the legal team in 2025.
High-level workflow of the legal contract redlining plugin / AI agent (Source: Uber blog post)
The initial RAG implementation retrieved relevant content from the legal operations manual to guide language model responses. However, the system performed poorly in terms of semantic retrieval accuracy, negotiation tone, and scenarios not covered by existing examples. Uber subsequently added a feedback loop to capture lawyers' decisions, reasoning, and final revised text.
This change enabled the AI agent to retrieve how similar clauses were handled in the past, rather than simply referencing whether a prior recommendation was accepted or rejected. At runtime, similarity search and metadata filtering narrow thousands of historical interactions to approximately 20 candidates. A second language-model-based filtering stage further evaluates their relevance. The system employs exponential decay weighting with a currently configurable half-life of 365 days, prioritizing recent decisions while still preserving earlier examples. This implementation also allows domain experts to control wording and negotiation style.
Uber's engineering team described the challenge in a LinkedIn post:
How can AI simplify repetitive contract review work while keeping lawyers in control?
The legal team defines the required tone and style, while engineers maintain the prompt structure and application workflows. The architecture includes a Word plugin built with React and TypeScript, along with a Python backend orchestrated through LangGraph. Multiple parallel workflow nodes handle intent identification, risk assessment, and policy lookup respectively. OpenSearch stores vectorized legal rules and historical feedback, while Redis maintains session state for follow-up questions.
System architecture of the legal contract redlining AI agent (Source: Uber blog post)
The deterministic rules engine enforces non-negotiable legal requirements. When a matching rule exists, it overrides the model's recommendations. The language model handles tasks requiring contextual interpretation, including clause suggestions and negotiation tone. A final validation step checks generated responses against the retrieved rules.
Uber is also exploring AI agent frameworks such as Claude Code and OpenCode, as well as Skill for organizing and automating various AI agent workflows. The team plans to research legal ontologies and knowledge graphs to represent legal concepts and their relationships, providing a semantic foundation for more consistent interpretation and reasoning.
Original article:
https://www.infoq.com/news/2026/11/Uber-legal-redlining-agent/
Auto-fetched and translated by AI Atlas. All rights belong to the original author.