DSPy Explained!
Hey everyone! Thank you so much for watching this explanation of DSPy! DSPy is a super exciting new framework for developing LLM programs! Pioneered by frameworks such as LangChain and LlamaIndex, we can build much more powerful systems by chaining together LLM calls! This means that the output of one call to an LLM is the input to the next, and so on. We can think of chains as programs, with each LLM call analogous to a function that takes text as input and produces text as output. DSPy offers a new programming model, inspired by PyTorch, that gives you a massive amount of control over these LLM programs. Further, the Signature abstraction wraps prompts and structured input / outputs to clean up LLM program codebases. DSPy then pairs the syntax with a super novel compiler that jointly optimizes the instructions for each component of an LLM program, as well as sourcing examples of the task. Here is my review of the ideas in DSPy, covering the core concepts and walking through the introduction notebooks showing how to compile a simple retrieve-then-read RAG program, as well as a more advanced Multi-Hop RAG program where you have 2 LLM components to be optimized with the DSPy compiler! I hope you find it useful! Please send me a message @CShorten30 on X, I would love to discuss what you are working on and offer any help with DSPy and/or Weaviate! Useful links: Join the DSPy Discord! / discord DSPy GitHub: https://github.com/stanfordnlp/dspy DSPy Paper: https://arxiv.org/abs/2310.03714 DSPy Assertions: https://arxiv.org/abs/2312.13382 A Guide to LLM Abstractions: https://www.twosigma.com/articles/a-g... Jason Liu: Pydantic is all you need: • Pydantic is all you need: Jason Liu LlamaIndex Query Engines: https://docs.llamaindex.ai/en/stable/... LangChain: https://js.langchain.com/docs/use_cases Chapters 0:00 DSPy! 1:37 The DSPy Programming Model 5:07 LLM Programs 8:56 Programming, Not Prompting 13:48 PyTorch Analogy 19:16 The DSPy Compiler 27:50 Metrics 30:13 Teleprompters 30:50 Code Example 50:37 Start using DSPy!

Adding Depth to DSPy Programs

Getting Started with RAG in DSPy!

RAG Crash Course for Beginners

RL for Agents Workshop - Deep Dive on Training Agents with RL and Open Source

Rob Amos - Custom Publishers with Combine

System Design Course – APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

DSPy: The End of Prompt Engineering - Kevin Madura, AlixPartners

Einschlafmeditation: Ich bin für dich da | Wenn du nicht alleine einschlafen willst

GraphRAG: The Marriage of Knowledge Graphs and RAG: Emil Eifrem

Structured Outputs with DSPy

What is SonarQube | Introduction SonarQube | SonarQube Tutorial | SonarQube Basics | Intellipaat

LLM Agents MOOC | UC Berkeley CS294-196 Fall 2024 | Compound AI Sys & DSPy Framework by Omar Khattab

MCP vs API: Simplifying AI Agent Integration with External Data
![[1hr Talk] Intro to Large Language Models](https://i.ytimg.com/vi/zjkBMFhNj_g/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBCrl1xz7LUOu4mwljGLeHxo9mjAg)
[1hr Talk] Intro to Large Language Models

Bay.Area.AI: DSPy: Prompt Optimization for LM Programs, Michael Ryan

Building RAG with Command R+ from Cohere, DSPy, and Weaviate!

Don't learn AI Agents without Learning these Fundamentals

RAG & MCP Fundamentals – A Hands-On Crash Course

Лев Бережной | DSPy фреймворк - программы на основе языковых моделей

