Skip to main content
DSPy logo

DSPy

LLM and Agent FrameworksIntegrationPopular

Overview

DSPy from Stanford NLP is a framework for programming language models.

DSPy and Weaviate

  1. DSPy introduces two key concepts, the programming model and optimizers.
  2. Programing model: The programming model lets you define a series of components that make a language model request. Components include input fields, output fields, task descriptions, and calls to a vector database like Weaviate.
  3. Optimizers: Optimizers compile your DSPy program to tune the language model prompt and/or the weights.

Weaviate is integrated with DSPy through the retriever model!

Resources

The resources are broken into categories:

  1. Hands on Learning: Build your technical understanding with end-to-end tutorials.
  2. Read and Listen: Develop your conceptual understanding of these technologies.

Hands-on Learning

Notebook

Getting Started with RAG in DSPy

Learn about DSPy and how to build a program: Installation, settings, datasets, LLM metrics, DSPy programming model, and optimization.

Open →
Video

Getting Started with RAG in DSPy

Learn about DSPy and how to build a program: Installation, settings, datasets, LLM metrics, DSPy programming model, and optimization.

Open →
Notebook

DSPy + Weaviate for the Next Generation of LLM Apps

Build a 4-layer DSPy program for generating blog posts from queries.

Open →
Video

DSPy + Weaviate for the Next Generation of LLM Apps

Build a 4-layer DSPy program for generating blog posts from queries.

Open →
Notebook

RAG with Persona

Build a compound AI system with DSPy, Cohere, and Weaviate, where you'll add a persona to the language model.

Open →
Post

RAG with Persona

Build a compound AI system with DSPy, Cohere, and Weaviate, where you'll add a persona to the language model.

Open →
Notebook

Adding Depth to RAG Programs

Enhancing DSPy programs by integrating unique input-output examples and multiple LLMs.

Open →
Video

Adding Depth to RAG Programs

Enhancing DSPy programs by integrating unique input-output examples and multiple LLMs.

Open →
Notebook

Hurricane: Writing Blog Posts with Generative Feedback Loops

Introduction to Hurricane, a web app for demonstrating generative feedback loops with blog posts.

Open →
Blog

Hurricane: Writing Blog Posts with Generative Feedback Loops

Introduction to Hurricane, a web app for demonstrating generative feedback loops with blog posts.

Read →
Notebook

Structured Outputs with DSPy

The three methods for structuring outputs in DSPy programs.

Open →
Video

Structured Outputs with DSPy

The three methods for structuring outputs in DSPy programs.

Open →
Notebook

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

Overview of Command R+ with a quick RAG demo in DSPy.

Open →
Video

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

Overview of Command R+ with a quick RAG demo in DSPy.

Open →
Notebook

Advanced Optimizers in DSPy

Dive into optimizing DSPy programs with various techniques.

Open →
Notebook

Llama 3 RAG Demo with DSPy Optimization, Ollama, and Weaviate

Integrating Llama3 with DSPy and optimizing prompts with MIPRO.

Open →
Notebook

BigQuery and Weaviate orchestrated with DSPy

Build an end-to-end RAG pipeline that uses BigQuery and Weaviate using DSPy.

Open →
Notebook

DSPy and Weaviate Query Agent

Use the Query Agent as a Tool with DSPy

Open →

Read & Listen