# DSPy — Programming Foundation Models Declaratively > Replace hand-written prompts with modular programs. DSPy compiles declarative AI pipelines into optimized prompts automatically, boosting reliability and performance. ## Install Copy the content below into your project: --- Source: https://tokrepo.com/en/workflows/dspy-programming-foundation-models-declaratively-023c142e Author: