Ingeniería de prompts

DSPy

stanfordnlp/dspy

A framework for programming and optimizing language-model pipelines instead of hand-tuning prompts.

★ 38,6KEstrellas
⑂ 3,4KBifurcaciones
361Problemas abiertos
PythonIdioma
MITLicencia
Q84Puntuación editorial

Resumen

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.

Características principales

  • Composable LLM modules
  • Typed signatures and predictors
  • Prompt and parameter optimizers
  • Evaluation-driven iteration

Requisitos, instalación y guía rápida

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.

Compatibilidad de modelos y casos de uso

Works with multiple providers and local model backends; consult current docs for the integration matrix.

Notas sobre la licencia y los riesgos

The repository declares the MIT License. Connected model providers and model weights are licensed separately.

Lanzamiento y mantenimiento

See the official repository for current releases and changes.