Start Your Gen AI Journey: 3 Easy Beginner Steps!

GeeksforGeeks · Beginner ·🛠️ AI Tools & Apps ·9mo ago

Key Takeaways

Introduces Gen AI with three easy beginner steps using ChatGPT, DALL-E, or Google Vertex AI

Full Transcript

Hello everyone, how are you? So many students have asked me that I want to start with my geni journey. I want to start with my LLM journey but they don't even know where to start. And this is a very common question. So what I have done is in the next few minutes I'm going to tell you how to start with your LLM journey. There are going to be three steps and you will have to look at my screen recording as well. So let's start. Step number one, you'll need to know about something called as Google Collab. C O L A B. You can Google it as well. And what will happen is so if let's just Google it together. Google Collab. Okay. What will happen is that it will lead you to and you can click on new notebook and it will lead you to the welcome page of Google cola. Now this is an absolutely amazing tool. You can do everything that you want in an expensive computer. You don't really need to buy an expensive computer. You have Google Collab and if you look at it, it will give you a lot of RAM, a lot of storage. I think it gives you 32 gigs of CPU RAM and 15 gigs of GPU RAM. This is not something that is easily available, but this is available for you for free. All you need to have is internet access and a Gmail account. If you have those two things and obviously a laptop, if you have those three things, you have a Google Collab account. Now the laptop can be fairly simple because all of the weightlifting all of the heavy weight lifting is done by Google collab itself. So let's just look at what you can do. So first you can create a notebook kind of a content. So all of the markdown that you can create in Jupyter notebook it is doable in Google Collab as well from including your heading two, heading one, heading three, your bold text, your italics text, your code links and even images. Okay, you can also have ordered or unordered list. Again, simple markdown. Yeah, but does not Google Collab does not stop there. It also gives you a free generation capabilities. It gives you a free Google uh GitHub copilot kind of a tool. So let's just click on uh generate and let's understand what we can generate with it. Let's for example create a simple pie chart using some sample data and it will generate the content for you. It will take some time maybe a few seconds but it will generate that content for you. So let's just wait and see what it spits out. Yeah. And all you need to do is accept and run. And let's just look at it. Yeah, it seems to be working perfectly fine. It's in fact absolutely amazing. You can have a a basically a repository of whatever you want of the chats and yeah, we were able to generate a simple pie chart. I've also tried to create other uh you know simple prompt based code for including reversal of lists. So it it generates really complex code as well and it including a diamond pattern as well. Again I did not do anything. I just wrote in English. I need to create a for loop with that that's print that prints out a diamond pattern. That's that's absolutely amazing. Again remember all of this is for free. Okay. Uh you can generate random prime numbers as a prompt and yeah. Okay. So Google Collab not only gives you a Python uh environment with capability to generate code but it also gives you a virtual machine. We all understand that in the real world Linux or shell is something is a skill that we all have to learn and Google collab provides you that it is not just a notebook it is a virtual machine as well. Now uh by default it gives you uh an Ubuntu release an Ubuntu flavor of Linux and again there are many many flavors of Linux but Ubuntu is the most popular one and that is what you get to create a shell based command all you need to do is add exclamation point before any command that you want right and then it will be a shell command okay and as I Google Google Collab also gives you a free GPU as well. As you can see over here, 15,000 MGB or 15 gigs of GPU RAM. This is available in really really expensive laptops. I have an expensive laptop and I have 16 gigs of GPU RAM only. I should not have purchased this laptop. Instead relied on Google Pollab. Okay. Okay. Not only that we I have seen students suffering from you know merge dependency hell. So dependency hell basically. So if they install numpy version let's say 1.8 uh pandas 2.0 will not work. If they in uh install mattplot lib seawn will not work. if they install OpenCV skarn will not work. So instead of you know playing around with in your local wasting time on uh identifying the best versions for your particular local environment, Google Collab provides you a stable latest environment. You don't have to install any of these including really large libraries for geni and deep learning as well. Obviously there's machine learning, there's visualization, there's uh deep learning and uh things like torch vision, lang chain. All of these you don't really need to install. These are available out of the box in Google Collab. You can even access external data. This may be in your Google Drive, in your Kaggle account, in your hugging face account and you can access that in in you know the the the regular way of Python coding. So that's not an issue as well. So that was step number one, set up something called as Google Collab. Step number two, you need to set your free LLM API key using something called as Google AI studio. Right? So all you need to do is click on a studio.google.com or you know you can Google a studio.google.com google.com and then uh let me just go to a yeah you can click go to aistudio.google.com and then you have to do uh go to the get API key at the bottom left. Once you click on that all you need to do is create an API key and it will ask you for a project. By default uh it is going to be the Gemini API project and you can just create an API key. So this API key should not be public. So what I'll do is I'll be deleting this particular public key. But yeah, all you need to do is copy this API key. Go to Google Collab again. There's a there's a key icon on the left. Click on this and you can set it in your uh in your collab secrets. So this is going to be your Google API key or Gemini API key. setting up setting it up in Google Collab. Okay, so this is pretty much it and let me just go and delete this. So whm as you can see it's completely free. Yeah, then all you need to do as as uh another step is install Google- geni library and that's it. Now you can use any LLM and that's it. Now you can use Google's Gemini uh really really and that's it. You can use Google Gemini which is a really really powerful LLM comparable to GPT5 GPT 4. All of those are comparable to G Gemini 2.5 Flash, Gemini 2.5 Pro, right? And let's just look at how to use it. Well, first you'll be importing some a few things. Obviously, you'll have to import from Google J from Google import jennai. Then you will import from Google Collab import user data. This is where you uh basically set up your uh Google's API key. So my variable for Google API key is Google API key. Let's just check. Yeah, I can just copy paste it. Right. And all you need to do is import these. Okay. Then geni.client API key equals user data that we imported, right? Get Google AP Google API key. That's that's all you need to do. Then you can start running your experiment. So for example, uh now this can these can be prompt engineering experiments. These can be rag based experiments. These can be agentic AI experiments. But yeah, all you needed to do was this. Okay. So let's look at a prompt engineering experiment. So how can Geeks for Geeks help a data science aspirant? What are some courses courses for data science they offer? So this is the prompt geni client that we defined above here. uh it have it provides a models subp package and within that sub package there's a function called dotgenerate content once you generate once you uh set it up all you need to do is pass the the model that you want we are going to use Google 2.5 uh Gemini flash and the prompt as contents and that's it let's just ask it to run it yeah so it's it's given a very detailed output in fact. But yeah, you can use any prompt. But then the question becomes how do you learn prompt engineering? Well, I have written an article called unified prompt framework or a unified framework for an effective prompt and you all you need to do is scroll to the bottom of this particular article. Okay. Copy paste this entire green gray area and let's go to chatgpd.com and I'm going to stay logged out and all you need to do is change your requirements. So you just have to describe what are the requirements that you have. So for example, I want to learn data science. Provide a road map. So it will give you an optimized prompt. Using this prompt, you can generate another optimized prompt which defines the role, the context, the task, the constraints, the examples, the output format, everything is provided. Okay. Yeah, I don't want to sign up. So all you need to do now is literally open up a new chart, copy paste the output of the optimization prompt optimization exercise and yeah that's it you just remove the extra fluff and maybe just say teach me uh about genac So it will generate an entire road map for you and you can do this programmatically with this strategy as well. So for example, let's just do instead of this particular prompt, let's just copy paste this prompt and Let's just run this. Let's see what will happen. It will take some time. Even I think chat GPT is still giving out some output, right? So this will also take some time. Yeah. So there is an output. So data science road map beginner to job ready. It gives you a lot of resources, a lot of links, a lot of uh topics. It divides everything into phases. It's really really amazing. Yeah, that's that's absolutely amazing. So this is how you can use an a free LLM. You don't have to pay money to set up your LLM. You don't have to pay money to set up your Google Collab. You don't have to pay money to learn how to do prompt engineering. Right? So, thank you for today. If you have any questions, please let me know. Also, I'll be starting a generative AI training program which has an absolute detail around Genai in abs, you know, get your career ready for Genai projects. So yeah, please do sign uh sign up to that and if you have qu any questions, please let me

Original Description

Gen AI Course Link - https://www.geeksforgeeks.org/courses/generative-ai-training-program Kickstart your Gen AI journey with three simple steps designed for beginners! First, choose a user-friendly Gen AI platform such as ChatGPT, DALL-E, or Google’s Vertex AI according to your goal—text, image, or code generation. Next, set up and experiment with basic prompts or projects by following tutorials or example templates to understand how the AI responds and learns. Finally, join online communities and explore free courses for continuous learning, sharing experiences, and keeping up with the latest advancements in generative AI. These steps will help you gain practical skills, boost creativity, and open doors to exciting AI-driven opportunities. Get all important links here: 🔗 Get access to 15+ Free Tech Courses & also Get GfG Merchandise only in Nation SkillUp - https://gfgcdn.com/tu/VJ5/ Visit website: https://geeksforgeeks.org/ Explore Premium LIVE, Online & Offline Courses (For maximum discount use code - GFGYT30) : https://geeksforgeeks.org/courses/ Solve POTD: https://www.geeksforgeeks.org/problem-of-the-day Ongoing contests, hackathons and events: https://www.geeksforgeeks.org/events Follow us for more fun, knowledge and resources, join us on our social handles: 📱Take GeeksforGeeks everywhere in your pockets! Don't forget to download our official app: https://geeksforgeeksapp.page.link/gfg-app 💬 X- https://x.com/geeksforgeeks 🧑‍💼 LinkedIn- https://www.linkedin.com/company/geeksforgeeks 📷 Instagram- https://www.instagram.com/geeks_for_geeks/?hl=en 💌 Telegram- https://t.me/s/geeksforgeeks_official 📌 Pinterest: https://in.pinterest.com/geeks_for_geeks/ Also, Subscribe if you haven't already! :) #GenAI #AIForBeginners #ArtificialIntelligence #PromptEngineering #LearnAI #AIJourney #GenerativeAI #TechTrends #DigitalSkills #StartGenAI #GfG #GeeksforGeeks
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from GeeksforGeeks · GeeksforGeeks · 0 of 60

← Previous Next →
1 How I got into Walmart | Shailesh Sharma
How I got into Walmart | Shailesh Sharma
GeeksforGeeks
2 Upgrade yourself In 29 Days | GeeksforGeeks
Upgrade yourself In 29 Days | GeeksforGeeks
GeeksforGeeks
3 Learn AWS Fundamentals For Free
Learn AWS Fundamentals For Free
GeeksforGeeks
4 Conversation With Young Achievers | Meet the winners of Bi-Wizard Coding Contest | GeeksforGeeks
Conversation With Young Achievers | Meet the winners of Bi-Wizard Coding Contest | GeeksforGeeks
GeeksforGeeks
5 Meet The Winners Of Bi-Wizard Coding Contests | GeeksforGeeks
Meet The Winners Of Bi-Wizard Coding Contests | GeeksforGeeks
GeeksforGeeks
6 Interview Prep Strategies | PayPal
Interview Prep Strategies | PayPal
GeeksforGeeks
7 OLX Interview Preparation Strategies | Hukam Singh
OLX Interview Preparation Strategies | Hukam Singh
GeeksforGeeks
8 Meet Some More Winners Of Bi-Wizard Coding Contests | GeeksforGeeks
Meet Some More Winners Of Bi-Wizard Coding Contests | GeeksforGeeks
GeeksforGeeks
9 Live Mock DSA
Live Mock DSA
GeeksforGeeks
10 Microsoft Azure For Absolute Beginners
Microsoft Azure For Absolute Beginners
GeeksforGeeks
11 Python for Data Science | Data Science Master Bootcamp | Arpit Jain
Python for Data Science | Data Science Master Bootcamp | Arpit Jain
GeeksforGeeks
12 Getting Started with Data Analysis | Data Science Master Bootcamp | Ashish Jangra
Getting Started with Data Analysis | Data Science Master Bootcamp | Ashish Jangra
GeeksforGeeks
13 How to prepare theory subjects for SDE interviews | Geeks Summer Carnival 2022
How to prepare theory subjects for SDE interviews | Geeks Summer Carnival 2022
GeeksforGeeks
14 Get Your Tickets To The Geeks Summer Carnival | GeeksforGeeks
Get Your Tickets To The Geeks Summer Carnival | GeeksforGeeks
GeeksforGeeks
15 TED Talk Data Analysis Project | Data Science Master Bootcamp | Ashish Jangra
TED Talk Data Analysis Project | Data Science Master Bootcamp | Ashish Jangra
GeeksforGeeks
16 How I Secured AIR 9 in GATE'22 |  Tushar
How I Secured AIR 9 in GATE'22 | Tushar
GeeksforGeeks
17 Learn Java Backend Development | Geeks Summer Carnival | GeeksforGeeks
Learn Java Backend Development | Geeks Summer Carnival | GeeksforGeeks
GeeksforGeeks
18 How to Recognize which Data Structure to use in a question | Geeks Summer Carnival | GeeksforGeeks
How to Recognize which Data Structure to use in a question | Geeks Summer Carnival | GeeksforGeeks
GeeksforGeeks
19 Learn Data Structures and Algorithms | GeeksforGeeks
Learn Data Structures and Algorithms | GeeksforGeeks
GeeksforGeeks
20 Interview experience at Flipkart | GeeksforGeeks
Interview experience at Flipkart | GeeksforGeeks
GeeksforGeeks
21 Lets Prepare for GATE'23 the Right Way | Sakshi Singhal | GeekSummerCarnival
Lets Prepare for GATE'23 the Right Way | Sakshi Singhal | GeekSummerCarnival
GeeksforGeeks
22 Highest Paying Jobs in 2022 | Ishan Sharma | Geeks Summer Carnival 2022 | GeeksforGeeks
Highest Paying Jobs in 2022 | Ishan Sharma | Geeks Summer Carnival 2022 | GeeksforGeeks
GeeksforGeeks
23 Geeks Summer Carnival 2022 | 5th April- 11th April | GeeksforGeeks
Geeks Summer Carnival 2022 | 5th April- 11th April | GeeksforGeeks
GeeksforGeeks
24 Preparing for SDE interviews | Soham Mukherjee | Geeks Summer Carnival 2022 | GeeksforGeeks
Preparing for SDE interviews | Soham Mukherjee | Geeks Summer Carnival 2022 | GeeksforGeeks
GeeksforGeeks
25 Full Stack Development with React & Node | Utkarsh Malik | Geeks Summer Carnival | GeeksforGeeks
Full Stack Development with React & Node | Utkarsh Malik | Geeks Summer Carnival | GeeksforGeeks
GeeksforGeeks
26 Introduction to Open Source and Roadmap to GSOC 2022 | Geeks Summer Carnival 2022 | GeeksforGeeks
Introduction to Open Source and Roadmap to GSOC 2022 | Geeks Summer Carnival 2022 | GeeksforGeeks
GeeksforGeeks
27 Web Scraping in Action | Geeks Summer Carnival 2022 | GeeksforGeeks
Web Scraping in Action | Geeks Summer Carnival 2022 | GeeksforGeeks
GeeksforGeeks
28 Getting Hired at BITCS via GfG Job Portal | Get Hired With GeeksforGeeks
Getting Hired at BITCS via GfG Job Portal | Get Hired With GeeksforGeeks
GeeksforGeeks
29 How to build a faster landing Page | Geeks Summer Carnival 2022 | GeeksforGeeks
How to build a faster landing Page | Geeks Summer Carnival 2022 | GeeksforGeeks
GeeksforGeeks
30 Geeks Summer Carnival | 5th To 11th April, 2022 | GeeksforGeeks
Geeks Summer Carnival | 5th To 11th April, 2022 | GeeksforGeeks
GeeksforGeeks
31 How to get ideas for Startup | Geeks Summer Carnival 2022 | GeeksforGeeks
How to get ideas for Startup | Geeks Summer Carnival 2022 | GeeksforGeeks
GeeksforGeeks
32 Journey from Tier 3 to JusPay | GeeksforGeeks
Journey from Tier 3 to JusPay | GeeksforGeeks
GeeksforGeeks
33 Geeks Summer Carnival 2022 | GeeksforGeeks
Geeks Summer Carnival 2022 | GeeksforGeeks
GeeksforGeeks
34 Dispelling Myths and Pre conceptions of Programming Languages
Dispelling Myths and Pre conceptions of Programming Languages
GeeksforGeeks
35 Must Do System Design Questions
Must Do System Design Questions
GeeksforGeeks
36 Understanding Sorting Techniques in an hour | Keerti Purswani | Geeks Summer Carnival
Understanding Sorting Techniques in an hour | Keerti Purswani | Geeks Summer Carnival
GeeksforGeeks
37 Get Hired at NEC | Job-A-Thon 8
Get Hired at NEC | Job-A-Thon 8
GeeksforGeeks
38 Journey from Tier 3 college to Microsoft | GeeksforGeeks
Journey from Tier 3 college to Microsoft | GeeksforGeeks
GeeksforGeeks
39 Get Hired with GeeksforGeeks at SuperK | Job A Thon 8
Get Hired with GeeksforGeeks at SuperK | Job A Thon 8
GeeksforGeeks
40 GeeksforGeeks: Redesigned
GeeksforGeeks: Redesigned
GeeksforGeeks
41 From Tier 3 to cracking multiple interviews | GeeksforGeeks
From Tier 3 to cracking multiple interviews | GeeksforGeeks
GeeksforGeeks
42 Live Mock DSA
Live Mock DSA
GeeksforGeeks
43 Youtube Data Analysis | Ashish Jangra | GeeksforGeeks
Youtube Data Analysis | Ashish Jangra | GeeksforGeeks
GeeksforGeeks
44 DSA Self-Paced Course Preview | Sandeep Jain | GeeksforGeeks
DSA Self-Paced Course Preview | Sandeep Jain | GeeksforGeeks
GeeksforGeeks
45 GATE Live Classes | Prepare for GATE CS 2023 | GeeksforGeeks
GATE Live Classes | Prepare for GATE CS 2023 | GeeksforGeeks
GeeksforGeeks
46 Journey from JIIT to Adobe
Journey from JIIT to Adobe
GeeksforGeeks
47 Life Is Unfair Ft. Shonty badmash | LIVE Discord Session | A GeeksforGeeks Exclusive
Life Is Unfair Ft. Shonty badmash | LIVE Discord Session | A GeeksforGeeks Exclusive
GeeksforGeeks
48 Interview Experience at Google | Tech Dose
Interview Experience at Google | Tech Dose
GeeksforGeeks
49 Live Mock DSA
Live Mock DSA
GeeksforGeeks
50 Interview Experience @ Amazon | GeeksforGeeks
Interview Experience @ Amazon | GeeksforGeeks
GeeksforGeeks
51 My journey through the tech world from India to US | Vidushi | GeeksforGeeks
My journey through the tech world from India to US | Vidushi | GeeksforGeeks
GeeksforGeeks
52 Complete Interview Preparation Course | GeeksforGeeks
Complete Interview Preparation Course | GeeksforGeeks
GeeksforGeeks
53 Live Mock DSA
Live Mock DSA
GeeksforGeeks
54 Getting Hired at FiftyFive Technologies | Job-a-thon 9.0
Getting Hired at FiftyFive Technologies | Job-a-thon 9.0
GeeksforGeeks
55 GFG Karlo, Ho Jayega | GeeksforGeeks ft. Khaleel Ahmed
GFG Karlo, Ho Jayega | GeeksforGeeks ft. Khaleel Ahmed
GeeksforGeeks
56 How I got job offers from 2 big companies : Arcesium & Microsoft | GeeksforGeeks
How I got job offers from 2 big companies : Arcesium & Microsoft | GeeksforGeeks
GeeksforGeeks
57 LINUX for Beginners | GFG x Itversity
LINUX for Beginners | GFG x Itversity
GeeksforGeeks
58 My interview experience at Walmart | GeeksforGeeks
My interview experience at Walmart | GeeksforGeeks
GeeksforGeeks
59 Get Hired at Speckyfox
Get Hired at Speckyfox
GeeksforGeeks
60 Live Mock DSA
Live Mock DSA
GeeksforGeeks

Related Reads

📰
The Best AI Course Generator in 2026? I Tested 7 to Find Out.
Discover the best AI course generator through a comparison of 7 platforms, and learn how to choose the right one for your needs
Dev.to AI
📰
Automate Spotify and YouTube Playlists - Chapter 2: Setting Up Spotify
Automate Spotify playlists by setting up a Spotify account and preparing for API integration, crucial for music lovers and developers alike
Dev.to · Tawanda Nyahuye
📰
Use a model route manifest before Dify, Cursor, and Node.js share Vector Engine
Learn to reduce inconsistencies in shared API gateways by using a model route manifest with Node.js, Dify, and Cursor
Dev.to AI
📰
What 90 Days of Comments on AI Side Panels Taught Me About Distribution
Analyzing 90 days of comments on AI side panels reveals key insights on distribution and user engagement
Dev.to · AI Buddy
Up next
ElevenLabs Review and Tutorial: Free AI Content Tools
LoverFighterWriter
Watch →