StackMap
Subscribe

DSPy vs LangGraph

Program — don't prompt — your language models. Compile declarative pipelines into optimized prompts. — versus — Build stateful, multi-actor LLM apps as graphs — durable execution, human-in-the-loop, streaming.

The curated verdict

A different bet: optimize prompts as code rather than orchestrate them.

DSPyLangGraph
Stars36k37k
Forks3.1k6.3k
LanguagePythonPython
LicenseMITMIT
Last activity2 days ago2 days ago
Topicsorchestration, ragagents, orchestration
Curated connections116

DSPy — the curator's take

Program — don't prompt — your language models. Compile declarative pipelines into optimized prompts.

LangGraph — the curator's take

You reach for LangGraph the moment a simple agent loop stops being enough — when you need state that survives a crash, a human approving a step mid-run, or a flow that can loop back on itself. Most teams arrive here from plain LangChain and don't leave. If all you want is a quick tool-calling agent, this is more machinery than you need — start lighter and come back when you hit the wall.