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."
related reading
- Prompt Like a Data Scientist: Auto Prompt Optimization and Testing with DSPy | Towards Data Sciencetowardsdatascience.com
- GitHub - deepset-ai/haystack: Open-source AI orchestration framework for building context-engineered, production-ready LLM applications. Design modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation. Built for scalable agents, RAG, multimodal applications, semantic search, and conversational systems.github.com
- Axaxllm.dev
- LLM Powered Autonomous Agents | Lil'Loglilianweng.github.io
- GitHub - brexhq/prompt-engineering: Tips and tricks for working with Large Language Models like OpenAI's GPT-4.github.com
- Neuronpedianeuronpedia.org
- Replicate - Run AI with an APIreplicate.com
- Fine-Tuning and Prompt Optimization: Two Great Steps that Work Better Togetherarxiv.org
- Llama 2 · Hugging Facehuggingface.co
- Optimizing GEPA for production: A test-driven approach to prompt engineering | Decagondecagon.ai
- GitHub - swyxio/ai-notes: notes for software engineers getting up to speed on new AI developments. Serves as datastore for https://latent.space writing, and product brainstorming, but has cleaned up canonical references under the /Resources folder.github.com
- DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelsarxiv.org