1 repo
Automated mechanisms for selecting and refining demonstration examples to improve model performance.
Distinguishing note: Focuses on the dynamic selection of examples, distinct from static prompt engineering.
Explore 1 awesome GitHub repository matching artificial intelligence & ml · Few-Shot Optimizers. 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-
Automatically selects and filters successful traces to populate demonstration slots for improved model performance.