प्रॉम्प्ट इंजीनियरिंग

DSPy

stanfordnlp/dspy

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

★ 38.6Kसितारे
⑂ 3.4Kफ़ोर्क्स
361खुले मुद्दे
Pythonभाषा
MITलाइसेंस
Q84संपादकीय स्कोर

अवलोकन

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.

प्रमुख विशेषताएँ

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

आवश्यकताएँ, इंस्टॉलेशन और त्वरित शुरुआत

Install the Python package with `pip install dspy`; configure a supported language-model provider as described in the docs.

उपयोग

Define task signatures and modules, supply a dataset and metric, then evaluate or optimize the pipeline for the target task.

मॉडल संगतता और उपयोग के मामले

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

लाइसेंस और जोखिम संबंधी टिप्पणियाँ

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

रिलीज़ और रखरखाव

See the official repository for current releases and changes.