Skip to content
SPECIFICTION
Get listed

DSPy vs LangChain

DSPy

dspy.ai

LangChain

langchain.com

Side by side

FigureDSPyLangChain
Price from—$39/mo
Free plan—Yes
Free trial——
Open source——
APIYesYes
Self-hostedYesYes
Plans published04
Spec score · LLM Application Development Frameworks7.6 (#10)8.3 (#4)
Spec score · Llm Developer Tools7.5 (#15)8.1 (#9)
Spec score · AI Orchestration Software7.5 (#14)8.1 (#7)
Founded20222023
IntegrationsDSPy uses LiteLLM to normalize inference providers and says it can connect to nearly any model and provider supported by LiteLLM.LangChain documents 1000+ integrations across chat and embedding models, tools and toolkits, document loaders, and vector stores.
SupportThe site links to a DSPy Discord community and GitHub repository.The LangSmith Developer plan includes community support, while the Enterprise plan includes a support SLA.

Plans

DSPy

No plans published.

DSPy pricing →

LangChain

  • Developer (LangSmith)Free
  • LangChain frameworkFree
  • Plus (LangSmith)$39 a month
  • Enterprise (LangSmith)Priced on request

LangChain pricing →

In their own words

DSPy

DSPy has no write-up on Specifiction yet; its figures are above.

Visit dspy.ai

LangChain

LangChain is a free, MIT-licensed open-source framework for building agents with models and tools. Its create_agent harness combines a model, tools, prompt and middleware, with templates for common uses and a ReAct pattern. Middleware can add human approval, conversation compression, sensitive-data removal, guardrails, retries, routing and custom tool policies. Agents run on LangGraph’s durable runtime, which supports persistence, rewind, checkpointing and human-in-the-loop workflows. LangChain documents more than 1,000 integrations across chat and embedding models, tools, toolkits, document loaders and vector stores. Standard interfaces for chat models and embeddings support switching providers with minimal code changes. Documentation covers Python and JavaScript/TypeScript. LangSmith adds tracing, debugging and output evaluation. The framework supports API and self-hosted use. LangChain was started in 2023 and is headquartered in San Francisco.

Visit langchain.com