If you interested in:
- Python 🐍
- ML/AI Engineering ⚙️
Find me → @akshay_pachaar ✔️
If you interested in:
- Python 🐍
- ML/AI Engineering ⚙️
Find me → @akshay_pachaar ✔️
It allows you to include the variable name and its value in the formatted string:
It allows you to include the variable name and its value in the formatted string:
It's one of my favourite features, I use it for creating prompt templates.
Here's an example:
It's one of my favourite features, I use it for creating prompt templates.
Here's an example:
F-strings support format specifiers:
F-strings support format specifiers:
This makes f-strings incredibly versatile for constructing dynamic strings with computed values.
Check this out👇
This makes f-strings incredibly versatile for constructing dynamic strings with computed values.
Check this out👇
Here's an example:
Here's an example:
Today, we'll start with the basics and dive into all the ninja tricks of using f-strings.
Let's go! 🚀
Today, we'll start with the basics and dive into all the ninja tricks of using f-strings.
Let's go! 🚀
- Python 🐍
- ML/AI Engineering ⚙️
Find me → @akshay_pachaar ✔️
My Newsletter on AI Engineering → @DailyDoseOfDS_ ✔️
Cheers! 🥂
- Python 🐍
- ML/AI Engineering ⚙️
Find me → @akshay_pachaar ✔️
My Newsletter on AI Engineering → @DailyDoseOfDS_ ✔️
Cheers! 🥂
lightning.ai/lightning-a...
You should also check DSPy's official repo: github.com/stanfordnlp...
lightning.ai/lightning-a...
You should also check DSPy's official repo: github.com/stanfordnlp...
**Notice the score, it beats a vanilla Mistral RAG 🔥
**Notice the score, it beats a vanilla Mistral RAG 🔥
The code below will perform finetuning & provide a checkpoint for the best model weights saved during the process.
Check this out👇
The code below will perform finetuning & provide a checkpoint for the best model weights saved during the process.
Check this out👇
Let's first evaluate our RAG program that uses Mistral-7B as LLM
** Notice the score, this is what we want to beat!
Check this out👇
Let's first evaluate our RAG program that uses Mistral-7B as LLM
** Notice the score, this is what we want to beat!
Check this out👇
Let's define a basic DSPy program which is a RAG pipeline for answer generation.
It's like defining a model that we want to finetune & evaluate.
Check this out👇
Let's define a basic DSPy program which is a RAG pipeline for answer generation.
It's like defining a model that we want to finetune & evaluate.
Check this out👇
DSPy provides out of the box support for many evaluation metrics & you can define a custom metric as well.
Our program is expected to produce short factoid answers & hence, exact match with the ground truth is a good eval metric here.
Check this out👇
DSPy provides out of the box support for many evaluation metrics & you can define a custom metric as well.
Our program is expected to produce short factoid answers & hence, exact match with the ground truth is a good eval metric here.
Check this out👇
Next we load the HotPotQA dataset for training & validation. HotPotQA dataset in available in `dspy.datasets`
Check this out👇
Next we load the HotPotQA dataset for training & validation. HotPotQA dataset in available in `dspy.datasets`
Check this out👇
We start by setting up the LM (Mistral-7B served using @Ollama & retriever model, RM which is ColBERTv2)
Check this out👇
We start by setting up the LM (Mistral-7B served using @Ollama & retriever model, RM which is ColBERTv2)
Check this out👇
DSPy : RAG :: PyTorch : DNNs
I'll make sure today's tutorial can be followed with minimal background knowledge!
Let's go! 🚀
DSPy : RAG :: PyTorch : DNNs
I'll make sure today's tutorial can be followed with minimal background knowledge!
Let's go! 🚀
- Python 🐍
- ML AI Engineering ⚙️
1. Find me → @akshay_pachaar ✔️
2. Sign up for our newsletter for in-depth lessons and get a FREE eBook with 150+ core DS/ML lessons: join.dailydoseofds.com
- Python 🐍
- ML AI Engineering ⚙️
1. Find me → @akshay_pachaar ✔️
2. Sign up for our newsletter for in-depth lessons and get a FREE eBook with 150+ core DS/ML lessons: join.dailydoseofds.com
This allows us to use a single interface for different data types or classes.
We can achieve this through method overriding, where a subclass provides a different implementation for a method defined in its parent class.
Let's understand with an example 👇
This allows us to use a single interface for different data types or classes.
We can achieve this through method overriding, where a subclass provides a different implementation for a method defined in its parent class.
Let's understand with an example 👇
Abstraction conceals the implementation details, but doesn't hide the data itself.
On the other hand, Encapsulation hides the data and restricts unwanted use from external sources.
Cheers! 🥂
Abstraction conceals the implementation details, but doesn't hide the data itself.
On the other hand, Encapsulation hides the data and restricts unwanted use from external sources.
Cheers! 🥂
This concept focuses on exposing only essential information to the outside world while hiding implementation details.
We use abstract classes and methods to define a common interface.
Here's an example 👇
This concept focuses on exposing only essential information to the outside world while hiding implementation details.
We use abstract classes and methods to define a common interface.
Here's an example 👇