DeepYardDeepYard

DSPy vs LangChain

Side-by-side comparison with live GitHub signals. Last updated May 16, 2026.

D

DSPy

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

OSSFree
34.5Ktoday393
L

LangChain

Build context-aware reasoning applications with LLMs

OSSFree
136.8K850.0K/wtoday469
MetricDSPyLangChain
GitHub Stars34.5K136.8K
Contributors393469
Last CommitMay 15, 2026May 16, 2026
Open Issues474584
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