ChatGPT can give you a kick-start when learning new skills.
But I like to learn through YouTube videos.
With the power of @LangChainAI, you can generate a personalized YouTube study schedule based on a skill you'd like to learn.
Let me show you how: 🧵
#AI
But I like to learn through YouTube videos.
With the power of @LangChainAI, you can generate a personalized YouTube study schedule based on a skill you'd like to learn.
Let me show you how: 🧵
#AI
Before we dive in, this is day 7 of my '7 days of LangChain'.
Every day, I've introduced you to a simple project that will guide you through the basics of LangChain.
Today's a longer one.
Follow @JorisTechTalk to stay up-to-date on my next series.
Let's dive in:
Every day, I've introduced you to a simple project that will guide you through the basics of LangChain.
Today's a longer one.
Follow @JorisTechTalk to stay up-to-date on my next series.
Let's dive in:
P.S.
Check step 10 for a @LangChainAI sneak peek 👀
Check step 10 for a @LangChainAI sneak peek 👀
1. Load YouTube URL's or ID's.
You can do this in two ways:
1️⃣ Add all YouTube videos manually to a list of YouTube URL's.
2️⃣ Auto load all YouTube videos from your favorite channels
Here's the code for both:
(Code for full loop in step 6)
⬇️
You can do this in two ways:
1️⃣ Add all YouTube videos manually to a list of YouTube URL's.
2️⃣ Auto load all YouTube videos from your favorite channels
Here's the code for both:
(Code for full loop in step 6)
⬇️
1.1 Manually add to list and load transcripts.
Manually add all your desired YouTube videos to a list.
Loop over the list and load the transcript with @LangChainAI's YouTube Loader.
Save the metadata for further use.
Manually add all your desired YouTube videos to a list.
Loop over the list and load the transcript with @LangChainAI's YouTube Loader.
Save the metadata for further use.
1.2 Automatically load all transcripts from a channel
This step takes a bit more preperation.
You need a Google Dev API Key. Setting this up can be frustrating without help.
Check out the following video on how to do this and enable the YouTube API.
youtube.com
This step takes a bit more preperation.
You need a Google Dev API Key. Setting this up can be frustrating without help.
Check out the following video on how to do this and enable the YouTube API.
youtube.com
1.2.1 Continued
Once you have your API key, you can use the following function to get all video ID's from a specific channel.
BE AWARE: Processing all videos might bankrupt you! 😂
I stole this code from @ehalm_.
Thanks to @LyingWithStats for the recommendation!
Once you have your API key, you can use the following function to get all video ID's from a specific channel.
BE AWARE: Processing all videos might bankrupt you! 😂
I stole this code from @ehalm_.
Thanks to @LyingWithStats for the recommendation!
3. Extracting skills.
We now want to extract the discussed skills from the YouTube videos.
We can then use those topics to later search for relevant YouTube videos.
Before we do this: PROMPTING!
We now want to extract the discussed skills from the YouTube videos.
We can then use those topics to later search for relevant YouTube videos.
Before we do this: PROMPTING!
9. Use skillset to find relevant YouTube videos
Using the @LangChainAI retrieval chain and your vectorstore as a retriever, the LLM will retrieve relevant YouTube videos for your desired skillset.
It outputs a list of YouTube videos you should watch.
Please experiment here.
Using the @LangChainAI retrieval chain and your vectorstore as a retriever, the LLM will retrieve relevant YouTube videos for your desired skillset.
It outputs a list of YouTube videos you should watch.
Please experiment here.
10. @LangChainAI sneak peek?
The beautiful people from the LangChain team have provided me access to their upcoming platform.
Since this was a semi-painful project to make in a day, the platform helped me massively.
Stay tuned for updates.
The beautiful people from the LangChain team have provided me access to their upcoming platform.
Since this was a semi-painful project to make in a day, the platform helped me massively.
Stay tuned for updates.
10. GO LEARN
Now go learn.
Play around with the code and show me what you've made!
Full code will be live in GitHub repo tomorrow.
Repo Link: github.com
Now go learn.
Play around with the code and show me what you've made!
Full code will be live in GitHub repo tomorrow.
Repo Link: github.com
Day 7 of '7 days of @LangChainAI' ✅
Still waiting for @YouTube to implement this type of semantic search themselves...
That's it for this series. Loved doing it.
Starting this Friday, I'll be having a two-week vacation.
After that, expect some cool stuff.
Still waiting for @YouTube to implement this type of semantic search themselves...
That's it for this series. Loved doing it.
Starting this Friday, I'll be having a two-week vacation.
After that, expect some cool stuff.
Loading suggestions...