DeepYardDeepYard

DSPy vs LangChain

Side-by-side comparison with live GitHub signals. Last updated July 5, 2026.

D

DSPy

Framework for programming — not prompting — LLMs — 33K+ stars

OSSFree
35.8Ktoday401
L

LangChain

Build context-aware reasoning applications with LLMs

OSSFree
141.0K850.0K/wtoday469
MetricDSPyLangChain
GitHub Stars35.8K141.0K
Contributors401469
Last CommitJul 5, 2026Jul 5, 2026
Open Issues561416
Licenseopen-sourceopen-source
Pricingopen-sourceopen-source
Free TierYesYes
Categoryframeworksframeworks
TrendingNoNo

Shared Tags

ragpython

Only in DSPy

prompt-optimizationprogrammingresearchstanfordopen-source

Only in LangChain

llmagentschainstypescriptorchestration

About DSPy

DSPy replaces prompt engineering with programming. Instead of writing prompts, you define modules with input/output signatures and DSPy automatically optimizes the prompts and weights for your pipeline. Supports chain-of-thought, retrieval-augmented generation, and multi-hop reasoning patterns. From Stanford NLP.

View full listing

About LangChain

LangChain is the most widely adopted framework for building LLM-powered applications. It provides modular abstractions for chains, agents, memory, retrievers, and tools, enabling developers to compose complex pipelines from reusable components. Available in both Python and JavaScript/TypeScript, LangChain integrates with every major LLM provider, vector store, and data source. Its ecosystem includes LangSmith for observability and LangGraph for stateful, graph-based agent workflows.

View full listing