DSPy and Prompt Optimization Experiments | Austin .

Members-Only

Recent Talks & Demos are for members only

Exclusive feed

You must be an AI Tinkerers active member to view these talks and demos.

January 23, 2026 · Austin

DSPy Prompt Optimization

Experiments with DSPY, a prompt optimization package, applied to a fact-checking system are shared, demonstrating a structured approach to prompt engineering.

Overview
Links
Tech stack
  • DSPY
    DSPy (Declarative Self-improving Python) is the Stanford NLP framework that compiles declarative Python code into self-improving, optimized language model pipelines: program LMs, don't prompt them.
    DSPy radically shifts LLM development from brittle prompt engineering to compositional Python code (Declarative Self-improving Python). The framework, developed by Stanford NLP, uses a compiler to automatically optimize your AI system: it synthesizes effective prompts, generates few-shot examples, or fine-tunes model weights based on a specified metric (e.g., quality or cost). This systematic approach uses three core abstractions: Signatures (defining input/output), Modules (reusable components like Chain of Thought), and Optimizers (Teleprompters). Since its late 2023 release, DSPy has seen significant adoption, boasting over 28,000 GitHub stars; it is the definitive solution for building robust, modular AI systems, from simple classifiers to complex RAG pipelines.

Related projects