{"library":"dspy-ai","type":"library","category":null,"description":"DSPy is a framework for algorithmically optimizing Language Model (LM) prompts and weights, especially within complex workflows. It enables developers to express multi-step reasoning as modular, self-improving programs, abstracting away the specifics of prompting and fine-tuning. The current version is 3.1.3, with a very active development schedule and frequent updates, often involving significant API changes between major versions.","language":"python","status":"active","version":"3.1.3","tags":["LLM","NLP","AI","prompt engineering","framework","optimization","declarative"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install dspy-ai","imports":["import dspy","from dspy import Signature","from dspy import Predict","from dspy import ChainOfThought","from dspy import Retrieve","from dspy.models import OpenAI","from dspy.retrieve import ColBERTv2","from dspy.teleprompt import BootstrapFewShot"]},{"cmd":"pip install dspy-ai[openai] # For OpenAI models","imports":[]}],"homepage":"https://dspy.ai","github":"https://github.com/stanfordnlp/dsp","docs":null,"changelog":null,"pypi":"https://pypi.org/project/dspy-ai/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":43,"avg_install_s":22.5,"avg_import_s":13.79,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/dspy-ai/compatibility"}}