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
Stanford Seminar - Enabling NLP, Machine Learning, and Few-Shot Learning Using Associative ProcessingStanford University via YouTube GUI-Based Few Shot Classification Model Trainer - Demo
James Briggs via YouTube HyperTransformer - Model Generation for Supervised and Semi-Supervised Few-Shot Learning
Yannic Kilcher via YouTube GPT-3 - Language Models Are Few-Shot Learners
Yannic Kilcher via YouTube IMAML- Meta-Learning with Implicit Gradients
Yannic Kilcher via YouTube