Visão geral
DSPy represents LLM applications as modular programs with typed signatures and predictors, then provides optimizers that can tune prompts or parameters against examples and metrics. It can be used for extraction, classification, RAG, and agent workflows.
Principais recursos
- Composable LLM modules
- Typed signatures and predictors
- Prompt and parameter optimizers
- Evaluation-driven iteration
Requisitos, instalação e início rápido
Install the Python package with `pip install dspy`; configure a supported language-model provider as described in the docs.
Uso
Define task signatures and modules, supply a dataset and metric, then evaluate or optimize the pipeline for the target task.
Compatibilidade do modelo e casos de uso
Works with multiple providers and local model backends; consult current docs for the integration matrix.
Observações sobre licença e riscos
The repository declares the MIT License. Connected model providers and model weights are licensed separately.
Lançamento e manutenção
See the official repository for current releases and changes.