flâneur — a map of the web's best reading

DSPy

dspy.ai · 928 words · saved by 1 readers

The framework for programming—rather than prompting—language models.

DSPy 3.3.0b1 - New ReActV2 Module and improved LM/BaseLM · learn more → Program , don't prompt, your LLMs. DSPy is a Python framework for building AI systems. Express your tasks as structured signatures, not prompts, to produce maintainable, modular, and optimizable programs. $ pip install -U dspy Getting Started → python ≥ 3.10 MIT license Stanford NLP github.com/stanfordnlp/dspy Change LLM Add a Field Make it an Agent extract_events.py 1 2 3 4 5 6 7 8 9 10 lm = dspy. LM ( "openai/gpt-5.4-nano" ) class ExtractEvent (dspy.Signature): """Extract event details from an email."

Explore this link on the map →

related reading