Automated Prompt Engineering with DSPy - A Comprehensive Tutorial
Offered By: Trelis Research via YouTube
Course Description
Overview
Explore automated prompt engineering techniques using DSPy in this 46-minute video tutorial. Learn how to leverage structured prompt generation for improved AI model performance. Dive into topics like simple prompting, chain of thought, vector search retrieval, few-shot examples, multi-hop queries, and result optimization. Gain hands-on experience with practical notebooks, installation guidance, and step-by-step demonstrations. Discover how to enhance answer quality control using DSPy assertions and compare overall results across different approaches. Access additional resources, including slides, notebooks, and timestamps for easy navigation through the content.
Syllabus
Introduction to structured/automated prompt generation
Video Overview
Why is DSPy useful?
Q&A and Retrieval Databases hotpotqa and wikipedia
Notebooks - DSPy and Trelis
Installation and Setup
Step 1: Simple Prompting and Benchmarking
Step 2: Adding Chain of Thought
Step 3: Add vector search retrieval
Step 4: Add random few shot examples
Step 5: Optimally choosing few shot examples
Step 6: Add multi-hop search/queries Baleen / Perplexity-style
Step 7: Multi-hop search WITH optimally chosen few shot examples
Overall Results Comparison!
DSPy assertions - for further answer quality control
Video resources
Taught by
Trelis Research
Related Courses
DSPy: Advanced AI RAG Framework with Auto Reasoning and PromptingMervin Praison via YouTube Building LLM Applications with DSPy Framework - Moving Beyond Prompt Engineering
Databricks via YouTube DSPy for Code Generation - NeurIPS Hacker Cup AI
Weights & Biases via YouTube DSPy for Code Generation: Building and Optimizing Language Model Pipelines
Weights & Biases via YouTube Exploring DSPy: A More Robust and Systematic Approach to Prompt Engineering
Data Centric via YouTube