프롬프트 엔지니어링

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.