How LangChain, LangGraph and LangSmith differ

Two people sitting at a table reviewing a laptop screen together
TL;DR

LangChain, LangGraph and LangSmith are three distinct tools for building AI-powered applications, all made by the same company. LangChain connects AI models to your data and tools. LangGraph adds control logic for complex multi-step workflows. LangSmith records what the AI does in production, making it the compliance-relevant layer for UK firms with ICO or FCA obligations. Small services firms typically need LangChain and LangSmith; LangGraph adds value only when workflows become genuinely complex.

Key takeaways

- LangChain, LangGraph and LangSmith are three separate tools from the same company, each solving a different problem in a custom AI application stack. - LangChain is the integration framework that connects an AI model to your data and tools; LangGraph is needed only when the workflow involves multi-step looping logic or multiple coordinated agents. - LangSmith is the most compliance-relevant of the three: it records what the AI did, saw, and returned, supporting the audit trails the ICO and FCA expect from firms using AI in client-facing work. - If your firm uses off-the-shelf AI products such as Microsoft 365 Copilot, you do not need to engage with this stack; the vendor manages the orchestration layer internally. - When commissioning custom AI work, ask whether LangSmith tracing is active in production, whether a DPIA has been completed under ICO guidance, and what happens to your audit trail if you switch AI providers later.

A developer sends you a proposal for a new AI-powered customer service tool. Buried in the technical specification are three product names: LangChain, LangGraph, and LangSmith. You recognise they are software products and that they involve AI, but you are not sure whether the specification makes sense, is over-engineered, or is missing something you should be pushing back on. That gap costs founders money every time a proposal goes unchallenged. This post separates the three.

What are LangChain, LangGraph and LangSmith?

LangChain, LangGraph and LangSmith are three separate tools from the same US company, LangChain Inc., each solving a different problem. LangChain is the framework that connects an AI language model to your data and external tools. LangGraph adds a control layer for complex workflows that need to loop, branch, or coordinate several tasks. LangSmith is the monitoring platform that records every AI call, prompt, and response.

Think of them as three layers sitting on top of each other. LangChain handles the wiring between an AI model, such as OpenAI or Azure OpenAI, and your data: your documents, your CRM, your internal knowledge base. LangGraph sits on top when the logic becomes complex enough to require branching decisions or memory that persists across steps. LangSmith watches the whole stack, recording what happened, how long it took, and what it cost.

LangChain itself offers one of the largest ecosystems of model and tool integrations, with connectors covering hundreds of AI models and data sources. That breadth accelerates early prototyping but can create dependency complexity as a project grows, which is worth raising with any developer quoting on LangChain-based work.

You do not need all three for every project. A simple internal knowledge search will typically use only LangChain. A multi-step client onboarding agent, where the AI triages an incoming email, checks your CRM, drafts response options, and logs the outcome, might use all three.

Why does this matter for your business?

Understanding the distinction between these three tools matters because each solves a different problem, and a proposal that includes all three when you only need one costs more than it should. LangChain handles the AI integration work. LangSmith matters most for compliance and accountability, providing the evidence trail that UK regulators now expect from firms using AI in client-facing workflows.

The ICO’s guidance on generative AI requires organisations to maintain auditability and human oversight when deploying AI models. The FCA has confirmed that Consumer Duty and operational resilience rules already apply to AI use in financial services, including AI outsourced to third-party agencies. LangSmith’s tracing features are the most direct way to produce the evidence both regulators expect: a record of what prompt the AI received, what context it drew on, and what it returned.

The NCSC and ICO set a secure-by-design standard in their joint statement on generative AI, which includes proper logging and accountability for AI outputs. For any firm handling client data in AI-powered workflows, treat LangSmith as a governance requirement from the start. LangChain and LangGraph build the capability; LangSmith documents what that capability does.

Where will you actually meet these tools?

In an owner-managed UK services firm, you will most likely encounter these tools inside a developer’s proposal or a technical specification from an AI agency. Your team interacts with the product built on top, not the framework itself. But the design decisions your developer makes about which layer to use, and how LangSmith is configured, determine whether you can meet your ICO and FCA oversight obligations.

You will also see these terms in cloud provider documentation. Azure OpenAI Service, which can be configured to keep data within UK and EU regions, is a common model choice for UK firms and integrates directly with LangChain. If your developer is building a retrieval-augmented generation system, often shortened to RAG, so that staff can query internal documents using AI, LangChain is the framework that makes the retrieval layer work.

One practical question to raise before sign-off: is LangSmith tracing active in production? Tracing switched off by default gives you none of the audit trail the ICO expects. Ask to see a sample trace before the system goes live. That single question will tell you a great deal about whether the development team has thought through compliance or treated it as someone else’s concern.

When should you ask about this, and when can you ignore it?

If your firm uses off-the-shelf AI products such as Microsoft 365 Copilot or a commercial SaaS chatbot, you do not need to think about LangChain, LangGraph, or LangSmith. Those platforms manage the orchestration layer internally. You need to engage with this stack only when your firm is commissioning custom AI features and you have developer resource available, whether in-house or outsourced.

When that is the case, four questions are worth raising with your developer or agency. First, which AI model are you connecting to, and where does the data go? Azure OpenAI and similar enterprise-grade services offer UK and EU data residency; open-source model hosts may not. Second, is LangSmith tracing active in production? Third, has a DPIA been completed under ICO guidance? Fourth, what happens to the audit trail if you switch AI providers later?

The FCA and Bank of England’s survey on machine learning in UK financial services found that data governance and explainability were the top reported challenges for firms already using AI, ahead of the technology itself. Both come down to decisions made at the design stage. Getting clear on which of these three layers your project actually needs, and insisting that LangSmith tracing is on from day one, addresses a significant share of those governance gaps before they surface as complaints or audit findings.

What else sits alongside this in the AI stack?

Retrieval-augmented generation, usually shortened to RAG, is the first pattern developers build on LangChain when a firm needs AI to work with its own documents. RAG lets an AI model answer questions using your firm’s actual files rather than its general training data. Vector databases, which store document content in a form AI models can search quickly, are the underlying infrastructure for any RAG system and worth asking about in any proposal.

The EU AI Act, which already applies to some UK firms serving EU clients, introduces logging and technical documentation requirements for high-risk AI systems. LangSmith’s tracing and evaluation features map directly onto those requirements. For a UK SME, the high-risk classification is unlikely to cover internal productivity tools, but if your firm uses AI to assess clients, score applications, or make decisions with individual consequences, checking the Act’s classification criteria before you build is worthwhile.

If you are at the stage where a developer is proposing a LangChain-based system for client-facing work and you want an independent view on whether the approach makes sense, book a conversation and we can walk through the proposal together.

Sources

ICO (2024). Guidance on AI and data protection. Sets out auditability, lawful basis, and human oversight requirements for UK organisations deploying generative AI. https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/artificial-intelligence/ai-and-data-protection/ ICO (2023-24). Generative AI and data protection. Explains how GDPR obligations apply when integrating generative AI tools and third-party AI services into business workflows. https://ico.org.uk/for-organisations/guidance-on-generative-ai/ FCA (April 2024). Artificial Intelligence Update. Confirms Consumer Duty, operational resilience, and existing FCA principles apply to AI use in financial services firms, including outsourced AI. https://www.fca.org.uk/news/statements/artificial-intelligence-update NCSC (2023). Generative AI: what you need to know. Guidance covering logging of model interactions, limiting data exposure, and monitoring AI outputs for security issues. https://www.ncsc.gov.uk/collection/guidance-for-organisations-on-generative-ai NCSC and ICO (2023). Joint statement on the security of generative AI. Sets the secure-by-design standard requiring proper logging and accountability for AI deployments. https://www.ncsc.gov.uk/news/ncsc-and-ico-issue-joint-statement-on-the-security-of-generative-ai FCA and Bank of England (2022). Machine learning in UK financial services survey report. Found data governance and explainability the top challenges; 72% of financial firms reported using machine learning in at least one business area. https://www.bankofengland.co.uk/report/2022/machine-learning-in-uk-financial-services European Parliament (2024). Artificial Intelligence Act (Regulation EU 2024/1689). Final regulation mandating logging and technical documentation for high-risk AI systems, applicable to UK firms serving EU clients. https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32024R1689 TechRxiv (2024). LangChain vs. LangGraph vs. LangSmith: Taxonomies of Agentic AI Toolchains. Academic taxonomy distinguishing the three tools' roles in building and monitoring agentic AI applications. https://www.techrxiv.org/doi/10.36227/techrxiv.175695645.52670060 Galileo AI (2024). LangChain vs LangGraph vs LangSmith: How to Choose. Practitioner comparison covering when each layer in the stack adds value versus when simpler approaches are sufficient. https://galileo.ai/blog/langchain-vs-langgraph-vs-langsmith Microsoft (2023). Microsoft 365 Copilot data, privacy, and security. Documents the data handling and access controls that apply when using Microsoft's managed AI layer rather than a custom LangChain-based stack. https://learn.microsoft.com/en-us/microsoft-365-copilot/privacy

Frequently asked questions

What is LangChain used for in a small business context?

LangChain is the framework your developer uses to connect an AI language model to your firm's data, documents, and tools. In a small business, typical applications include an internal knowledge search that lets staff query company policies or product information, a customer support chatbot that reads your FAQs, or a drafting tool that draws on CRM records. Your team interacts with the product built on top, not with LangChain itself.

Do I need LangSmith for my AI system?

If your firm is in a regulated sector, or if you process client data through an AI system, LangSmith is worth having from the start. It records every prompt, response, and tool call the AI makes, giving you the evidence trail the ICO and FCA expect when they ask how your AI behaved in a given interaction. For purely internal, low-risk productivity tools, it remains useful for monitoring costs and catching errors before users report them.

What is the difference between LangChain and LangGraph?

LangChain handles the core connection between an AI model and your data or external tools. LangGraph adds a layer on top for workflows that need to move through multiple steps, loop back on earlier decisions, or coordinate several agents working in sequence. For many owner-managed firm use cases, LangChain alone is enough. LangGraph becomes relevant when the AI needs to make a sequence of decisions rather than answer a single question.

This post is general information and education only, not legal, regulatory, financial, or other professional advice. Regulations evolve, fee benchmarks shift, and every situation is different, so please take qualified professional advice before acting on anything you read here. See the Terms of Use for the full position.

Ready to talk it through?

Book a free 30 minute conversation. No pitch, no pressure, just a useful chat about where AI fits in your business.

Book a conversation

Related reading

If any of this sounds familiar, let's talk.

The next step is a conversation. No pitch, no pressure. Just an honest discussion about where you are and whether I can help.

Book a conversation