Most up-to-date and relevant AI + LLM courses & coaching
How DSPy framework is replacing Prompt Engineering
Namaste and Welcome to Build It Yourself.
DSPy framework is slowly replacing (if not killing) “Prompt Engineering”.
The most annoying part of making an LLM application is coming up with a good prompt. It takes hours (sometimes days) to create a suitable prompt.
And when things change like a model change, the prompt starts breaking.
What if the framework changes its prompt as the model changes?
This is exactly what DSPy does.
In this tutorial, let’s create a small LLM application that will simplify any AI concept for you in simple language and show how DSPy comes up with its own prompt for that application.
If you are an entrepreneur or a senior It professional and looking to learn AI + LLM in a simple language, check out the courses and other details – https://www.aimletc.com/online-instructor-led-ai-llm-coaching-for-it-technical-professionals/
DSPy framework: Prompts through Programming
In this article, let’s build a basic LLM tool which we can name as “Simple AI Teacher”
Why this name, you ask?
The tool will explain any AI topic in simple English. However, the idea is not that.
What we will explore is how DSPy framework comes up with kits own prompt to do so. We will also change the model and see whether the prompt gets changed or not.
You can find the code notebook here – https://github.com/tayaln/DSpy-framework-demo
To use it, download and then upload it to your Google Drive and open it as a Google Colab file.
Pre-requisite
– An Open Mind to learn new things
– OpenAI account
– OpenAI API Key
Let us see DSPy framework in action
Connect with me on LinkedIn – https://www.linkedin.com/in/nikhileshtayal/
Customized AI + LLM Coaching for Senior IT Professionals
In case you are looking to learn AI + Gen AI in an instructor-led live class environment, check out these dedicated courses for senior IT professionals here
Pricing for AI courses for senior IT professionals – https://www.aimletc.com/ai-ml-etc-course-offerings-pricing/
Happy learning!
Featured Image Source – https://github.com/stanfordnlp/dspy