Apr 7, 2024 10:00 AM

Build Smarter LLM Apps with DSPy: A Modular Take on Language Models

Discover how modularity can simplify and supercharge your language model projects.

Agenda:

🌟 Intro to DSPy (10 mins)

  • 🚀 Learn about the motivation behind DSPy, a new programming model for optimizing language model (LM) pipelines.
  • 🔧 Understand how DSPy abstracts away complex prompt engineering using modular, declarative operators.
  • 🤖 Discover how the DSPy compiler can automatically optimize multi-stage LM systems.

🎯 Use Cases (10 mins)

  • 🕵️‍♂️ Explore the types of NLP tasks that DSPy is particularly well-suited for.
  • ⚖️ Gain insights into when DSPy might be less applicable, such as for simpler tasks that only require a single LM call.
  • 🎓 Understand the target audience for DSPy, primarily researchers and practitioners building state-of-the-art LM pipelines.

🛠️ Modular Approach (10 mins)

  • 📦 Dive into the three key abstractions introduced by DSPy: signatures, modules, and teleprompters.
  • 🧩 Learn how these abstractions enable the composition of arbitrary directed acyclic graphs of LM operators.
  • 🌐 Understand how DSPy draws inspiration from popular deep learning frameworks like PyTorch.
  • 🚀 Discover how DSPy’s modular approach facilitates systematic exploration of complex LM pipeline design spaces.

🚧 Limitations (5 mins)

  • 💡 Gain awareness of DSPy’s current limitations, such as its reliance on an underlying LM and its focus on text-only pipelines.
  • 🤔 Understand the computational challenges associated with rejection sampling-based teleprompters.
  • 🌱 Learn about areas for future improvement, such as explicit support for controlling hallucination and enhancing truthfulness.

👥 Agents & DSPy (5 mins)

  • 🎭 Learn how DSPy programs can express agent-like behavior through ReAct-style modules.
  • 🔍 Understand the parallels between signature graphs and the action spaces of goal-driven agents.
  • 🚀 Explore the potential for DSPy to support more dynamic reasoning through test-time bootstrapping and backtracking.
  • 🌟 Discover how DSPy may help scale up agent capabilities by composing specialized skill modules.

🎉 Demo time (10 mins)

?????

Q&A (10 mins)

Open-source non-profit research lab
While you are here, join our community!
Evaluate autonomous agents, collaborate on real-world business process challenges, and drive the industry forward with benchmarks
🛠️
🛠️
Evaluate your agent solutions against real world problems, instead of research datasets and fancy demos
💸
💸
We are non-profit but your agents will be most likely sponsored by real world companies that end up utilizing them in their operations
🎯
🎯
Win prizes for solving and automating challenging business processes funded by sponsors
🤝
🤝
Contribute to non-profit 501(c)(3), open-source solution for testing agent applications and support independent ecosystem of tools
Join the Community
Start Here
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.