读见

Orange Business 如何利用 LangChain 和 LangSmith 构建实时智能

原题How Orange Business Built Live Intelligence with LangChain and LangSmith

约 4 分钟约 979 字原文英文

读前速览

4 个要点

LangChain 在 Open SWE 智能体框架内部构建了一个模型路由器,通过对任务进行分类并选择最具性价比的模型,在不牺牲质量的情况下降低了 64% 的中位数成本。

  1. 感知上下文的路由位置

    路由器构建在代理框架内部而非通用网关,是因为路由需要访问框架已经组装好的特定任务和领域上下文。

  2. 不损失质量的情况下显著节省成本

    A/B 测试显示,每个线程的中位数成本从 $2.61 降至 $0.94(降了 64%),同时成功率在统计学上保持平稳。

  3. 数据驱动的模型分层

    团队分析了 LangSmith 的追踪数据以映射任务类型(功能、修复修复、测试)和复杂度,在成本与智能的帕累托前沿选取了三个模型。

  4. 评估优先的设计

    有效的路由器设计始于可观测性和评估(使用合并 PR 率和用户反馈等指标)来定义标准,而不是仅仅随机选择模型。

完整摘要

LangChain 详细介绍了其 Open SWE 编码智能体模型路由器的实现。通过将路由器置于代理框架内部而非通用网关,系统利用了现有的任务和领域上下文来做出路由决策。在分析了数千条追踪后,团队将任务类型和复杂度映射到三级模型策略(快速、平衡、高性能)。针对 973 个线程的 A/B 测试表明,在保持合并 PR 率统计学上平稳的情况下,中位数成本降低了 64%。本文涵盖了路由方法论、评估体系以及子智能体路由等未来方向。

目录 · 7 节

Orange Business is the B2B arm of Orange Group, one of Europe's largest telecommunications and digital services companies. Live Intelligence is Orange Business's flagship AI platform. It’s deployed across 120,000 Orange employees and has already been adopted by 150+ customers in France & Europe. 

The Limits of Building AI Assistance From Scratch

When Orange Business developed their first AI products, they wanted to provide customers with safe ways to develop value with AI. 

Live Intelligence Portal lets employees create simple AI agents and trigger basic API calls—capabilities that work for entry-level personal tasks. Orange Business wanted to build next: agents that could orchestrate complete business processes across fragmented enterprise systems, govern who can access what, and run reliably in production at scale.

Reproducing the orchestration, deployment, monitoring, and observability infrastructure that enterprise-grade agents require, though, would have required over a year of development. Rather than build from scratch, Orange Business went looking for the right foundation. This is how Live Intelligence Studio was born.

An Open-Source-First Evaluation Across 20 Vendors

Orange Innovation (Orange Group's innovation scouting arm) evaluated roughly 20 major cloud providers and specialized AI vendor solutions. They selected LangChain for its model neutrality and portability—allowing the team to maintain full ownership of the agent architecture, and manage workloads in response to European data sovereignty requirements.

For evaluations and observability, LangSmith was the strongest fit. "The observability capabilities in LangSmith were significantly ahead of what we could realistically build internally," said Mathieu Ducrot, Head of AI Products at Orange Business. "Building it ourselves would likely have delayed our roadmap twelve to eighteen months."

Live Intelligence: Studio, Portal, and Console

Live Intelligence is structured around three components, each targeting a different user.

Live Intelligence Studio is the environment for AI engineers and agent developers to design complex, cross-system workflows: an LLM-as-a-Service catalog (models hosted on Orange Business infrastructure and public cloud), an agent builder powered by LangSmith Fleet, MCP support, agent observability through LangSmith and orchestration tooling.

Live Intelligence Portal is the interface for business end users: HR teams drafting job descriptions, legal teams reviewing NDA clauses, software teams auto-generating test scripts, helpdesks building IT support agents. Workflows built in Live Intelligence Studio can be deployed directly into Portal, for a clean, governed end-user experience.

Live Intelligence Console gives enterprise administrators visibility and control: usage monitoring, performance tracking, and enforcement of security and compliance policies.

Agent and MCP Registries for Cross-Org Governance

Beyond individual agents, Live Intelligence adds two organizational layers that distinguish it from simpler deployments.

The Agent Registry lets teams discover, reuse, version, and govern agents and prompts across the organization. Rather than every team rebuilding the same capability, agents become shared assets with proper lifecycle management. For prompt management, Orange uses LangSmith Context Hub to maintain different prompt versions for each environment. This enables testing and validation of prompt changes before making changes available in production, and without making changes to code.

The MCP Registry provides a centralized catalog of trusted tools, connectors, and external capabilities. Agents access enterprise systems (Microsoft 365, CRMs, internal APIs, and custom services) through a controlled, auditable layer.

Together, these registries pull business logic into the platform layer and out of prompts so each team doesn’t need to re-solve authentication, security, and governance from scratch.

LangSmith Across the Full Evaluation Stack

Orange Business runs a 3-layer evaluation in production, built on LangSmith.

  1. RAG quality: golden datasets with question-answer pairs, expected source documents, retrieval recall, grounding quality, and answer faithfulness. 
  2. Agent behavior: tool selection accuracy, task completion rates, refusal behavior, robustness against prompt injection, and adherence to business constraints. 
  3. Production trace monitoring: latency, cost, model usage, failed runs, human feedback, and escalation cases.

"Before, debugging an agent was difficult because failures were hidden inside model behavior," said Mathieu. "With LangSmith, engineers can inspect each step of the execution and understand whether the issue comes from retrieval, the prompt, the model, the tool call, or the business logic."

With that shared visibility, AI engineers, backend engineers, product managers, and QA can look at the same traces and evaluation results rather than working from separate, disconnected views.

Validating quality and preventing regressions before they impact users

Orange Business also uses LangSmith to enforce running regression evaluations before pushing changes to production. Engineers can compare agent versions, replay historical traces, and validate behavior before any deployment.

For complex workflows with multiple agents and tool calls interacting with each other, visibility into the full execution tree enables engineers to identify and fix broken connections or issues faster. Inspections for Orange typically include:

  • Where exactly the workflow failed
  • Which agent or tool was being executed at that point
  • What input was passed to that step
  • What response was received
  • How long individual steps took
  • How many agents and tools were executed as part of the workflow
  • How the different steps contributed to the overall execution

In addition, Orange builds datasets with trace examples that represent either good or bad agent behavior to use in offline evals for continuous prompt refinement.

Results and what's next

The system Orange built has improved operational efficiency across teams, giving engineers and SMEs a shared workflow for agent development and improvement.

“For us, the technical team owns the application and agentic workflow implementation, while the business team can actively participate in prompt improvement and quality evaluation. LangSmith turns prompt iteration, tracing, and evaluation into one continuous improvement workflow,” said Mathieu Ducrot, Head of AI Products. Orange plans to build on that improvement loop by expanding team collaboration into online evals for even richer feedback cycles.

Looking ahead, the team is working on automating more complex business processes. For example, agents that support the entire Insurance claim process, with CRM and Legal workflow integrations, as well as an agent that can monitor security sensors in a port for field-engineer emergency intervention.

Building an enterprise AI platform? Learn more about LangSmith and Live Intelligence.

值得记下

「前沿 LLM 是昂贵的,而大多数智能体任务并不需要前沿智能。」
「有效的模型路由器应该属于框架,而不是通用网关。」
「有效的路由器设计始于可观测性和评估。」
「将路由视为上下文工程,类似于特征工程。」