Skip to content

OrchestrationStanford NLP

DSPy

Program — don't prompt — your language models.

Pricing
FREE
Platforms
APICLI
Models
Model-agnostic
Verified
Jun 13, 2026

DSPy is an open-source Python framework for building LLM applications by writing modular code instead of brittle prompt strings. You declare input/output signatures and compose modules, then DSPy compiles and optimizes the underlying prompts — and can even tune model weights — for classifiers, RAG pipelines, and agent loops.

Pros & cons

  • Declarative, modular alternative to prompts
  • Automatic prompt and weight optimization
  • Provider- and model-agnostic
  • Strong research backing and adoption
  • Steeper learning curve than direct prompting
  • Optimizers can add compute and cost
  • Smaller ecosystem than LangChain

Tags

Further reading

View all Orchestration
  • View LangChain details
    OrchestrationFREEOSS

    LangChain

    LangChain

    The default open-source framework for composing LLM apps.

    Python + TypeScript framework for chaining prompts, tools, retrievers, and memory into LLM applications. Ubiquitous in the ecosystem; pairs with LangGraph for agent orchestration and LangSmith for tracing.

    Worth knowing

    Started Oct 2022 as Harrison Chase's side project while at Robust Intelligence; became a unicorn at $1.25B in 2025.

    • framework
    • python
    • typescript
    • rag
    • +1
  • View LangGraph details
    OrchestrationFREEOSS

    LangGraph

    LangChain

    Graph-based agent orchestration. Stateful loops with checkpoints.

    LangChain's agent layer. Model agents as nodes in a state graph with persistent checkpoints, human-in-the-loop steps, and durable execution. Strong when you need a long-running, debuggable agent rather than a one-shot chain.

    Worth knowing

    Runs agent workflows in production at Uber, LinkedIn, Klarna, Replit and JPMorgan.

    • agents
    • graph
    • state
    • open-source
  • View LlamaIndex details
    OrchestrationFREEMIUMOpen core

    LlamaIndex

    LlamaIndex

    The data framework for LLM apps — RAG, agents, and document workflows.

    An open-source framework (Python + TypeScript) for connecting LLMs to your data — ingestion, indexing, retrieval, and agentic document workflows. Pairs with the managed LlamaCloud (LlamaParse) for production parsing and extraction. The most-used RAG framework after LangChain.

    Worth knowing

    Started as 'GPT Index,' a Nov-2022 side project by ex-Uber scientist Jerry Liu; renamed in 2023; $28M+ raised.

    • framework
    • rag
    • agents
    • open-source
  • View Pydantic AI details
    OrchestrationFREEOSS

    Pydantic AI

    Pydantic

    Type-safe Python agent framework, the Pydantic way.

    An open-source Python framework for building production-grade agents with validated, structured outputs instead of raw-string parsing. Model-agnostic across OpenAI, Anthropic, Gemini and many more, with composable tools, durable execution, MCP support, and built-in observability via Pydantic Logfire. MIT-licensed from the team behind Pydantic.

    Worth knowing

    Released by Pydantic in late 2024, the same Sequoia-backed team whose validation library underpins FastAPI and most Python LLM SDKs.

    • python
    • agents
    • type-safe
    • open-source