# LangSmith

**LangSmith** 是 [LangChain](https://www.edgepedia.org/zh/langchain) 公司开发的一款专有的可观测性与评估平台，面向基于大语言模型（LLM）和智能体构建的应用；LangChain 也是开源框架 LangChain 与 [LangGraph](https://www.edgepedia.org/zh/langgraph) 背后的公司。该平台于 2023 年 7 月宣布内测，2024 年 2 月正式开放，是 LangChain 的首款付费产品。它可以捕获智能体与链执行的追踪记录，针对数据集运行评估，管理提示词，并监控生产流量。<sup>[1](https://www.langchain.com/blog/langsmith-ga)</sup><sup> • </sup><sup>[2](https://www.forbes.com/sites/alexkonrad/2024/02/15/open-source-ai-startup-langchain-launches-langsmith/)</sup>

| 关键事实 | 详情 |
|---|---|
| 开发方与状态 | 由 LangChain 打造；首款付费产品，2024 年 2 月正式可用<sup>[2](https://www.forbes.com/sites/alexkonrad/2024/02/15/open-source-ai-startup-langchain-launches-langsmith/)</sup> |
| 追踪模型 | 每次模型调用、工具调用或检索都是一次运行；运行构成以追踪 ID 绑定的追踪记录；多轮会话归组为线程<sup>[3](https://docs.langchain.com/langsmith/observability-concepts)</sup> |
| 评估 | 五种方式：人工、代码、LLM 评判、决策模型和成对比较<sup>[4](https://docs.langchain.com/langsmith/evaluation-concepts)</sup> |
| 框架适配 | 可与任何框架配合；使用 LangChain 或 LangGraph 时，只需设置一个环境变量<sup>[5](https://support.langchain.com/articles/8854797554-what-is-langsmith)</sup> |
| 定价 | 免费方案每月 5,000 条基础追踪记录；Plus 方案每位每月 39 美元，含 10,000 条基础追踪记录<sup>[6](https://www.langchain.com/pricing)</sup> |
| 保留期 | 基础追踪记录保留 14 天；扩展追踪记录保留 180 天，需额外付费<sup>[6](https://www.langchain.com/pricing)</sup> |
| 部署 | 默认为 SaaS；Enterprise 方案支持自托管和混合部署<sup>[6](https://www.langchain.com/pricing)</sup> |

## 目的与问题背景

一篇经同行评审的大模型评估综述认为，评估应被视为辅助大模型开发的一门基础学科，而专门的评估工具正是为填补这一空白而生。<sup>[7](https://dl.acm.org/doi/10.1145/3641289)</sup>

智能体的可观测性与传统软件可观测性的区别，在于需要采集的内容不同。传统软件可观测性关注固定代码路径上的请求延迟和错误率，而智能体可观测性记录的则是模型的输入与输出、工具调用及其参数、检索到的上下文，以及智能体实际走过的多轮轨迹，随后再对这些记录附加人工或自动的判断。LangSmith 的数据模型正体现了这一点：运行、追踪记录、线程和轨迹，反馈则绑定到单次运行上。<sup>[3](https://docs.langchain.com/langsmith/observability-concepts)</sup>

## 功能与架构

**追踪。** 智能体执行的每一项工作——调用模型、调用工具或检索信息——都会记录为一次运行，属于同一次操作的所有运行归组为一条追踪记录，并通过唯一的追踪 ID 与之绑定。多轮会话产生的追踪记录归组为线程，轨迹则把一次会话摊平为一条有序的消息列表，展示智能体所走的路径。反馈条目由标签和分数（连续值或离散值）组成，通过唯一的运行 ID 绑定到某次运行。<sup>[3](https://docs.langchain.com/langsmith/observability-concepts)</sup> 集成可为 LangChain、LangGraph、OpenAI、Anthropic 和 CrewAI 提供自动追踪，无需改动代码即可采集输入、输出和元数据；任何代码也都可以手动埋点。<sup>[3](https://docs.langchain.com/langsmith/observability-concepts)</sup>

**评估。** LangSmith 支持五种评估方式：人工、代码、LLM 评判、决策模型和成对比较。人工评估即由人审阅应用的输出和执行追踪，标注队列则简化了人工反馈的结构化收集。<sup>[4](https://docs.langchain.com/langsmith/evaluation-concepts)</sup> 数据集是用于对大模型应用运行测试的输入与参考输出集合；可通过批量上传、即时创建，或从生产追踪记录中导出，且即使源追踪记录被删除，数据集也会永久保留。<sup>[1](https://www.langchain.com/blog/langsmith-ga)</sup><sup> • </sup><sup>[3](https://docs.langchain.com/langsmith/observability-concepts)</sup> 标注队列让产品经理、工程师或领域专家等标注者可以查看追踪记录，并依据既定标准进行标注。<sup>[1](https://www.langchain.com/blog/langsmith-ga)</sup>

**监控与互操作性。** 平台的可观测性能力与评估能力可以彼此独立使用。<sup>[5](https://support.langchain.com/articles/8854797554-what-is-langsmith)</sup> 对于 LangChain 生态之外的团队，LangSmith 提供完整的 [OpenTelemetry](https://www.edgepedia.org/zh/opentelemetry) 端点，因此追踪数据可以通过标准的可观测性埋点接入。<sup>[8](https://posthog.com/compare/best-ai-observability-tools)</sup>

## 与 LangChain 和 LangGraph 的关系

LangSmith 与 LangChain、LangGraph 框架出自同一家公司，因此在这两个框架中的集成最为深入。PostHog 的对比将其评为 LangChain 和 LangGraph 应用可用的最深度框架集成，理由是原生追踪、标注队列、极低的埋点开销，以及零配置启动和逐节点状态差异对比等便利功能。<sup>[8](https://posthog.com/compare/best-ai-observability-tools)</sup><sup> • </sup><sup>[9](https://posthog.com/compare/best-langsmith-alternatives)</sup> 使用 LangChain 或 LangGraph 时，只需设置一个环境变量即可上手。<sup>[5](https://support.langchain.com/articles/8854797554-what-is-langsmith)</sup>

不过，该平台不依赖这些框架也能使用：通过其 SDK 和 OpenTelemetry 端点，LangSmith 可与任何框架或库配合，包括自定义实现。<sup>[5](https://support.langchain.com/articles/8854797554-what-is-langsmith)</sup><sup> • </sup><sup>[8](https://posthog.com/compare/best-ai-observability-tools)</sup> 开放边界很重要：客户端 SDK、LangChain 和 LangGraph 均为 MIT 许可的开源软件，但 LangSmith 的后端、界面和存储层是闭源的。<sup>[10](https://langfuse.com/compare/langsmith)</sup>

## 数字一览

LangChain 的公告称，注册用户超过 80,000，月活跃团队超过 5,000，仅 1 月就记录了超过 4,000 万条追踪记录。<sup>[1](https://www.langchain.com/blog/langsmith-ga)</sup> A 轮融资领投方[红杉资本](https://www.edgepedia.org/zh/sequoia-capital)（Sequoia Capital）写道，自 2023 年 7 月内测以来已有 70,000 名用户注册，每月有超过 5,000 家公司使用 LangSmith。<sup>[11](https://sequoiacap.com/article/partnering-with-langchain-the-llm-application-framework/)</sup> 福布斯（Forbes）报道称，约有 5,000 人每月在 1,000 个团队中使用 LangSmith，其中 40% 每天使用，六个月内的等候名单上有 80,000 人注册。<sup>[2](https://www.forbes.com/sites/alexkonrad/2024/02/15/open-source-ai-startup-langchain-launches-langsmith/)</sup>

定价按席位和追踪量计算。Developer 方案免费，含 1 个席位、每月最多 5,000 条基础追踪记录，超出后按量付费；Plus 方案为每位每月 39 美元，含最多 10,000 条基础追踪记录，并可使用 Deployment 和 Engine。<sup>[6](https://www.langchain.com/pricing)</sup> 基础追踪记录保留 14 天，扩展追踪记录保留 180 天，需额外付费。<sup>[6](https://www.langchain.com/pricing)</sup> 可观测性文档也讨论了追踪记录的保留问题。<sup>[3](https://docs.langchain.com/langsmith/observability-concepts)</sup>

## 与其他方案的比较

主要竞品包括 Langfuse、Braintrust、Weights & Biases Weave 和 Comet Opik。<sup>[12](https://arize.com/resources/llm-and-agent-evaluation-platforms/)</sup>

**开放性与部署。** 竞品 Langfuse 采用 MIT 许可，在云端、自托管和气隙隔离部署中完全一致，免费版本即包含企业级单点登录（SSO）和组织级基于角色的访问控制（RBAC）；它称 LangSmith 为专有软件，自托管、自定义 SSO 和 RBAC 仅在企业版中提供。<sup>[10](https://langfuse.com/compare/langsmith)</sup> PostHog 从第三方从业者角度所作的对比也认为 LangSmith 是专有软件，自托管仅限企业版。<sup>[8](https://posthog.com/compare/best-ai-observability-tools)</sup>

**成本。** Langfuse 的算例显示，每月 50 万条追踪记录、5 名用户的场景下，Langfuse Pro 为 621 美元，而 LangSmith Plus 为 3,895 美元——这一数字综合了每位受邀席位 39 美元、按追踪量计费，以及在线评估器默认触发的保留期升级费用。<sup>[10](https://langfuse.com/compare/langsmith)</sup> Langfuse 的 Pro 方案还保留 3 年历史记录，而它称 LangSmith SaaS 的上限为 180 天。<sup>[10](https://langfuse.com/compare/langsmith)</sup>

**功能覆盖。** Arize 于 2026 年对七个平台做的对比发现，LangSmith 在较高档位提供托管或自托管部署，支持离线和在线评估、轨迹级评估，并设有免费档和按追踪量计费的付费方案；该对比将 Braintrust 描述为评估驱动开发，提供托管、BYOC 或自托管数据面部署，并认为 Langfuse、W&B Weave 和 Comet Opik 只具备部分在线评估和轨迹级评估能力。<sup>[12](https://arize.com/resources/llm-and-agent-evaluation-platforms/)</sup> 在集成方面，Langfuse 指出它可接收 OpenTelemetry 和 100 多个框架的数据，且不销售运行时或网关，而 LangSmith 与 LangChain、LangGraph 在结构上深度集成，并将 Deployment、Engine、Fleet 和 Gateway 作为单独的计费项。<sup>[10](https://langfuse.com/compare/langsmith)</sup>

## 采用、部署与数据处理

LangChain 称发布时每周有数百名用户接入，该平台被众多在生产环境中构建大模型应用的团队使用。<sup>[2](https://www.forbes.com/sites/alexkonrad/2024/02/15/open-source-ai-startup-langchain-launches-langsmith/)</sup>

部署默认为 SaaS。Enterprise 方案增加自托管和混合部署、自定义 SSO、ABAC/RBAC、支持 SLA，以及自定义席位和工作区。<sup>[6](https://www.langchain.com/pricing)</sup> LangChain 表示，对于数据不能离开自身环境的组织，可选择自托管。<sup>[5](https://support.langchain.com/articles/8854797554-what-is-langsmith)</sup> 在隐私方面，LangSmith 的定价页面声明不会使用客户数据训练模型，追踪记录、提示词和输出均对组织以外保密。<sup>[6](https://www.langchain.com/pricing)</sup> 保留期取决于追踪记录档位：基础追踪记录 14 天，扩展追踪记录 180 天；而数据集即使源追踪记录被删除也会永久保留。<sup>[6](https://www.langchain.com/pricing)</sup><sup> • </sup><sup>[3](https://docs.langchain.com/langsmith/observability-concepts)</sup>

## 近期进展

该产品于 2023 年 7 月内测，2024 年 2 月正式可用，同时成为 LangChain 的首款付费产品，公司还完成了由红杉资本领投的 A 轮融资。<sup>[2](https://www.forbes.com/sites/alexkonrad/2024/02/15/open-source-ai-startup-langchain-launches-langsmith/)</sup><sup> • </sup><sup>[11](https://sequoiacap.com/article/partnering-with-langchain-the-llm-application-framework/)</sup> 2025 年 10 月初，LangChain 推出多轮评估（Multi-turn Evals），这是一种在线评估，衡量智能体在完整端到端交互中的表现，而非单轮表现。<sup>[13](https://changelog.langchain.com/?categories=cat_FvjDMlZoyaKkX&date=2025-10-01&page=1)</sup> 在存储方面，LangSmith 的引擎原为 [ClickHouse](https://www.edgepedia.org/zh/clickhouse)；2026 年 5 月，LangChain 在美国云上用 SmithDB 将其替换，SmithDB 是一个基于 [Apache DataFusion](https://www.edgepedia.org/zh/apache-datafusion) 和 Vortex 构建的专有 Rust 引擎，而自托管的 LangSmith 仍运行在 ClickHouse 和 Postgres 上。<sup>[10](https://langfuse.com/compare/langsmith)</sup> 竞争格局也在变化：2026 年的一份对比覆盖了七个大模型评估平台，LangSmith 与 Braintrust、Langfuse、W&B Weave 和 Comet Opik 同列其中。<sup>[12](https://arize.com/resources/llm-and-agent-evaluation-platforms/)</sup>

## 局限与批评

**闭源平台。** 尽管周边框架是开源的，后端、界面和存储层却是闭源的；一份从业者对比指出，团队若没有企业合同，就无法阅读、分叉或在自己的 VPC 中运行该平台，对于将追踪数据视为敏感信息或希望避免按追踪量计费的团队来说，这是硬性障碍。<sup>[10](https://langfuse.com/compare/langsmith)</sup><sup> • </sup><sup>[14](https://www.morphllm.com/comparisons/langsmith-alternatives)</sup> 自托管仅限企业版。<sup>[8](https://posthog.com/compare/best-ai-observability-tools)</sup>

**生态绑定。** Arize 认为，对于 LangChain 模式的应用，LangSmith 上手很快，但当生产架构包含自定义智能体、直接调用模型厂商、[OpenAI Agents SDK](https://www.edgepedia.org/zh/openai-agents-sdk)、LlamaIndex 或其他无法顺利融入该模式的运行时，它就会成为制约。<sup>[15](https://arize.com/resources/langsmith-alternatives/)</sup> 同样的观点也出现在这样的观察中：其最核心的价值——原生追踪、Prompt Hub 和标注队列——在 LangChain 和 LangGraph 内部最为顺畅，换成其他运行时，要达到这样的集成深度，就得做衔接适配工作。<sup>[14](https://www.morphllm.com/comparisons/langsmith-alternatives)</sup>

**成本结构与保留期。** 按追踪量计费加上席位定价，造成了 Langfuse 算例中的成本差距，而默认 14 天的保留期也短于至少一家竞品提供的多年保留。<sup>[10](https://langfuse.com/compare/langsmith)</sup><sup> • </sup><sup>[6](https://www.langchain.com/pricing)</sup>

## References

1. [Announcing the General Availability of LangSmith and Our Series A Led By Sequoia Capital, LangChain blog](https://www.langchain.com/blog/langsmith-ga)
2. [Open Source AI Software Maker LangChain Launches First Paid Product, Forbes (February 15, 2024)](https://www.forbes.com/sites/alexkonrad/2024/02/15/open-source-ai-startup-langchain-launches-langsmith/)
3. [LangSmith observability concepts, LangChain documentation](https://docs.langchain.com/langsmith/observability-concepts)
4. [LangSmith evaluation concepts, LangChain documentation](https://docs.langchain.com/langsmith/evaluation-concepts)
5. [What is LangSmith, LangChain Support Portal](https://support.langchain.com/articles/8854797554-what-is-langsmith)
6. [LangSmith Plans and Pricing, LangChain](https://www.langchain.com/pricing)
7. [A Survey on Evaluation of Large Language Models, ACM Transactions on Intelligent Systems and Technology](https://dl.acm.org/doi/10.1145/3641289)
8. [The best AI observability tools, compared, PostHog](https://posthog.com/compare/best-ai-observability-tools)
9. [The best LangSmith alternatives & competitors, compared, PostHog](https://posthog.com/compare/best-langsmith-alternatives)
10. [Langfuse vs. LangSmith, Langfuse](https://langfuse.com/compare/langsmith)
11. [Partnering with LangChain: The LLM Application Framework, Sequoia Capital](https://sequoiacap.com/article/partnering-with-langchain-the-llm-application-framework/)
12. [Compare 7 LLM Evaluation Platforms (2026), Arize](https://arize.com/resources/llm-and-agent-evaluation-platforms/)
13. [LangChain Changelog, LangSmith category (Multi-turn Evals, October 2025)](https://changelog.langchain.com/?categories=cat_FvjDMlZoyaKkX&date=2025-10-01&page=1)
14. [LangSmith Alternatives (2026): Open Source, Self-Host, and Cost at Scale, Morphllm](https://www.morphllm.com/comparisons/langsmith-alternatives)
15. [LangSmith Alternatives: Framework-Neutral Tracing and Evaluation, Arize](https://arize.com/resources/langsmith-alternatives/)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › AI companies, people, and products › AI products and assistants › AI agents and developer tools

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/langsmith

English original: https://www.edgepedia.org/langsmith
