1 repo
Declarative schemas that define the input and output requirements for language model interactions.
Distinguishing note: Focuses on the schema-based contract between code and model, distinct from generic prompt templates.
Explore 1 awesome GitHub repository matching artificial intelligence & ml · Signature Interfaces. Refine with filters or upvote what's useful.
DSPy is a declarative programming framework designed for building complex language model applications. It treats model interactions as modular, composable programs, allowing developers to define task logic through typed class schemas rather than relying on manually written prompts. By organizing workflows into hierarchical, reusable Python objects, the framework enables the construction of sophisticated AI systems that manage state and execution flow independently. The framework distinguishes itself through an automated optimization engine that iteratively refines prompt instructions and few-
Translates task signatures into model-specific prompts and parses responses into structured types for consistent communication.