I built 10 AI Tools, and am giving it for free!

Hasan Aboul Hasan
28 Jun 202424:32

Summary

TLDRThis video tutorial demonstrates the rapid creation of 10 AI tools in under an hour using Simple LM, a package developed to streamline AI tool development. The creator guides viewers through setting up a Python environment, installing Simple LM, and generating text with AI. The script showcases projects like blog title generators, subject line generators, and hook generators, emphasizing the ease of building various AI tools by simply changing prompts. The video also covers creating user interfaces for these tools and introduces an AI-powered search engine prototype. The tutorial concludes with a bonus project on building an AI agent from scratch, offering free access to all tools and encouraging viewers to explore and innovate with AI.

Takeaways

  • πŸ˜€ The video demonstrates building 10 AI tools in under an hour using SimpleLM, a package developed to simplify AI tool creation.
  • πŸ› οΈ SimpleLM is a package designed to reduce repetitive coding in AI projects by providing a straightforward method to generate AI responses.
  • πŸ“ The video starts by showing how to set up a new Python environment and install SimpleLM, making it accessible even for beginners.
  • πŸ”‘ To use SimpleLM with OpenAI, the user must add their OpenAI API key to a newly created .env file.
  • πŸ“‘ The script showcases how to generate text using AI by defining an LM instance and passing a prompt to the generate response function.
  • 🎯 The video presents a series of projects, starting with a Blog Title Generator, demonstrating the ease of creating AI tools by changing prompts.
  • πŸ“° Subsequent projects include a Subject Line Generator and a Hook Generator, emphasizing the modularity and adaptability of the code.
  • πŸ“ The Hook Generator project highlights the importance of using real data to create unique AI-generated content, by utilizing JSON-formatted templates.
  • 🌐 Two methods for building UIs for AI tools are discussed: one using HTML, CSS, and JavaScript, and the other using a Streamlit library for rapid UI creation.
  • πŸ” The video introduces an AI-powered search tool that can search the web, summarize content, and extract key information, akin to a prototype of perplexityAI.
  • πŸ—£οΈ Projects also include creating chatbots that can interact with content from blog posts and YouTube videos, showcasing the versatility of SimpleLM.
  • πŸ“ The Prompt Tester tool is introduced for evaluating and testing different prompts with multiple parameters, which is crucial for prompt engineering.
  • πŸ’‘ As a bonus, the video concludes with an AI agent prototype that can autonomously decide when to use various tools to answer user queries.

Q & A

  • What is the main purpose of the video?

    -The main purpose of the video is to demonstrate how to build 10 AI tools in less than an hour using SimpleLM, and to provide the tools for free at the end of the video.

  • What is SimpleLM?

    -SimpleLM is a package developed by the video creator to simplify the process of building AI tools and projects by reducing code repetition.

  • How can beginners get started with SimpleLM?

    -Beginners can start by creating a new Python script, setting up a virtual environment, installing SimpleLM, and following the step-by-step instructions provided in the video.

  • What is the first step to use SimpleLM for generating text with AI?

    -The first step is to import SimpleLM, define a new LM instance, select a provider (like OpenAI), choose a model, and then generate a response using a prompt.

  • Why is it necessary to add API keys to use SimpleLM with OpenAI?

    -API keys are required to authenticate and authorize the use of OpenAI's services, allowing SimpleLM to access and utilize the GPT model for text generation.

  • What is the significance of changing the prompt in building different AI tools?

    -Changing the prompt allows the AI to generate different types of content based on the specific requirements of each tool, making it versatile for various applications.

  • How does the video creator suggest building a user interface for AI tools?

    -The video suggests two methods: one using HTML, CSS, and JavaScript, and the other using a tool like Streamlit to quickly generate a web interface.

  • What is the benefit of using structured JSON format in AI tools?

    -Using structured JSON format allows for easier data manipulation and presentation in user interfaces, making it possible to display information in an organized manner.

  • How can one learn the necessary skills to build UIs for AI tools as mentioned in the video?

    -One can learn these skills through online learning platforms like Skillshare, which offers courses on HTML, CSS, JavaScript, and other relevant skills.

  • What is the role of Skillshare in the video?

    -Skillshare is mentioned as a platform where the video creator learned the skills to build UIs and also hosts the creator's courses on building AI tools.

  • What is the potential of the AI tools built in the video?

    -The AI tools built in the video have the potential to be used as standalone applications, prototypes for larger projects, or even as minimum viable products for new online businesses.

  • How does the video demonstrate the power of SimpleLM in content summarization?

    -The video demonstrates the power of SimpleLM by showing how it can summarize content from various sources like blog posts and YouTube videos using the 'load content' function and generating summaries.

  • What is the concept of an AI-powered search as shown in one of the projects?

    -An AI-powered search is a tool that can search the web for information, summarize key points from multiple sources, and present the consolidated information to the user, saving time and effort.

  • How does the video creator encourage interaction and engagement with the audience?

    -The creator encourages interaction by offering a giveaway for lifetime access to their power members club, asking viewers to like the video and comment for a chance to win.

  • What is the significance of the 'Prompt Tester' tool in the video?

    -The 'Prompt Tester' tool is significant as it allows for the creation and testing of multiple prompts with different parameters, which is crucial for evaluating and refining AI tool performance.

  • What is the final bonus project about in the video?

    -The final bonus project is about building a simple AI agent from scratch without using any external services or libraries, demonstrating the flexibility and power of SimpleLM.

Outlines

00:00

πŸ› οΈ Building AI Tools with SimpleLM

The speaker introduces a video tutorial on constructing 10 AI tools in under an hour using SimpleLM, a package designed to simplify the creation of AI projects by reducing repetitive code. The video is sponsored by Skillshare, and the presenter promises to share all the tools for free by the end of the video. SimpleLM is showcased as a beginner-friendly tool that automates the process of setting up AI tools, with a focus on generating text using AI. The setup involves creating a Python script, setting up a virtual environment, and installing SimpleLM. The presenter also demonstrates how to generate text using the OpenAI model with the necessary API keys.

05:02

πŸ“ Creating AI-Powered Content Tools

The script continues with a series of projects that utilize SimpleLM to generate various types of content, such as blog titles, subject lines, and hooks. The process involves defining an LM instance and customizing prompts for different use cases. The presenter emphasizes the ease of changing prompts to create new tools and mentions the potential for building a user interface using HTML, CSS, and JavaScript, possibly through learning platforms like Skillshare. The importance of using real data to create unique AI tools is highlighted, and an example of a hook generator using structured JSON output is provided.

10:05

🌐 Developing User Interfaces and Summarizers

The speaker discusses two methods for building user interfaces (UIs) for AI tools. The first method involves using HTML, CSS, and JavaScript, with Skillshare courses recommended for learning these skills. The second method features the use of a tool like Chat GPT to rapidly generate UI code using the Streamlet library. The script also covers the creation of a blog summarizer and a YouTube summarizer, demonstrating SimpleLM's ability to extract and summarize content from various sources, and the potential for repurposing content into different formats like tweets.

15:06

πŸ” AI-Powered Search and Chatbots

The script describes an AI-powered search tool that can search the web, extract key information, and summarize it. It also outlines a project for creating a chatbot that can interact with the content of blog posts or YouTube videos, using a vector database to store and retrieve information. The projects aim to showcase the capabilities of SimpleLM for content interaction and summarization, as well as the potential for creating interactive AI agents.

20:07

πŸ“ The Prompt Tester and an AI Agent Prototype

The final part of the script introduces the 'Prompt Tester,' a tool for evaluating and testing AI prompts with different parameters, which is crucial for prompt engineering. Additionally, a bonus project is teasedβ€”an AI agent built from scratch without external services or libraries. This agent can autonomously decide when to use various tools to answer queries, demonstrating a more advanced application of AI technology in creating interactive and autonomous agents.

Mindmap

Keywords

πŸ’‘AI Tools

AI Tools refer to software applications or systems that utilize artificial intelligence to perform tasks. In the video, the creator discusses building various AI tools such as blog title generators and subject line generators, demonstrating the ease of creating such tools with the help of 'Simple LM', a package developed to simplify the process of AI tool development.

πŸ’‘Simple LM

Simple LM is a package developed by the video creator to facilitate the building of AI tools. It is designed to reduce the repetition in coding AI projects by providing a streamlined approach. The script illustrates its use in creating different AI functionalities with minimal code, highlighting its role in simplifying the development process.

πŸ’‘API Keys

API Keys are unique identifiers used to authenticate requests to an API (Application Programming Interface). In the context of the video, the creator mentions adding Open AI keys to the '.env' file, which is necessary to access and use the Open AI model within the Simple LM package for generating text and other AI functionalities.

πŸ’‘Virtual Environment

A virtual environment is an isolated space in a Python project that allows for the installation of project-specific libraries without affecting the global Python environment. The script describes creating and activating a virtual environment using 'python -m venv' before installing Simple LM, emphasizing the importance of managing dependencies in AI tool development.

πŸ’‘Prompt

In the context of AI, a prompt is a text input given to an AI model to generate a response or perform a task. The video script uses the term 'prompt' to describe the input text that guides the AI in generating text, such as blog titles or subject lines, illustrating how different prompts can be used to create various AI tools.

πŸ’‘JSON

JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write and for machines to parse and generate. The script mentions JSON in the context of structuring the output from the hook generation tool, showing how data can be organized for further use in UI development.

πŸ’‘Skillshare

Skillshare is an online learning community offering thousands of classes on various subjects, including design, business, and programming. The video script mentions Skillshare as a platform where the audience can learn HTML, CSS, and JavaScript to build UIs for their AI tools, indicating a resource for expanding skills relevant to AI tool development.

πŸ’‘Streamlet

Streamlet is a library that can be used to quickly generate user interfaces for Python applications. The video creator demonstrates using Streamlet to create a UI for an AI tool in seconds by copying and pasting code, showcasing a rapid development method for tool interfaces.

πŸ’‘Content Summarization

Content summarization is the process of condensing a large piece of text into a shorter version while retaining the key points. In the script, the creator uses Simple LM to summarize blog posts and YouTube videos, demonstrating the utility of AI in quickly conveying the main ideas of lengthy content.

πŸ’‘RAG

RAG stands for 'Retrieval-Augmented Generation', a machine learning model that retrieves information from a database and uses it to generate responses. The script refers to a 'vector database' as a prototype of a RAG system, where the creator chunks and stores parts of a blog post for later retrieval and interaction, like chatting with the content of the blog post.

πŸ’‘Prompt Engineering

Prompt Engineering involves the art of crafting input prompts for AI models to elicit desired responses. The video script discusses using the 'Prompt Builder' in Simple LM to create multivalue prompts for testing different parameters, highlighting the importance of this practice in fine-tuning AI tool performance.

πŸ’‘AI Agent

An AI Agent in the context of the video is a system capable of autonomously deciding when and how to use various tools to answer queries. The creator presents a prototype of an AI agent built from scratch, which can utilize tools like 'load content' to provide summarized responses to user queries, showcasing the potential for personalized AI interactions.

Highlights

Introduction of a method to build 10 AI tools in under an hour using SimpleLM.

SimpleLM is a package developed to simplify the creation of AI tools by reducing repetitive code.

Even beginners can build AI tools with SimpleLM by following the provided steps.

Demonstration of setting up a new Python environment and installing SimpleLM.

Explanation of how to use SimpleLM to generate text with AI by defining an LM instance and using a provider.

The necessity of adding OpenAI keys to the environment for the AI to function properly.

Creation of a Blog title generator as the first project showcasing the ease of building AI tools with SimpleLM.

Subject line generator project illustrating the process of changing prompts for different AI tool functionalities.

Hook generation tool built using real data and structured JSON format for UI integration.

Two methods for building UIs for AI tools: one using HTML, CSS, and JavaScript, and the other using Streamlit.

Skillshare courses recommended for learning UI development and productivity skills.

AI-powered search tool that summarizes search results to provide key information.

Chat with blog posts project demonstrating interaction with AI based on the content of a blog post.

Chat with YouTube videos project allowing users to interact with the content of YouTube videos.

Prompt tester tool for evaluating and testing different AI prompts with various inputs.

Introduction of a bonus project, an AI agent built from scratch without using any external services or libraries.

Invitation for viewers to share their ideas and participate in a giveaway for lifetime access to the creator's courses and community.

Transcripts

play00:00

hi friends in this video I will show you

play00:02

how I build 10 AI Tools in less than 1

play00:06

hour with the help of simpler Alam so

play00:10

you can do the same and build any AI

play00:12

tool you want easily not only that by

play00:14

the end of the video I will give you all

play00:16

the tools for free so you can run and

play00:19

play with as you like if you are ready

play00:22

let's get

play00:24

started this video is sponsored by

play00:27

skillshare okay friends before I start

play00:30

the 10 AI tools let me first in one

play00:32

minute show you what is simple LM how it

play00:35

helps in building AI tools and then we

play00:37

can get started with in the last two

play00:40

years I built more than 100 AI projects

play00:44

and I noticed that a huge part of the

play00:47

code is being repeated it's the same so

play00:50

I decided to build a package that helps

play00:53

make building AI tools and projects a

play00:56

lot easier you will see this right now

play00:59

so in short simple LM is a package I

play01:03

develop to help you build AI tools a lot

play01:06

easier let me show you how easy it is to

play01:09

get started with simpler llm so here I

play01:12

am in a new project and by the way even

play01:16

if you hadn't coded before even if you

play01:19

are a total beginner you can still build

play01:21

the tools with us today just follow up

play01:24

so I will create a new simple python

play01:27

script I will call it for example

play01:30

start. py and let's call it

play01:33

zcore the first step go to terminal new

play01:37

terminal and let's create a new

play01:39

environment python DM VM VM enter let's

play01:47

activated perfect now install simple LM

play01:51

pip pip install simple llm enter just

play01:57

wait a couple of seconds perfect click

play02:01

on this yellow button select interpreter

play02:04

and select the virtual environment

play02:05

interpreter and we are done we are ready

play02:09

to get started and see how we can

play02:11

generate text with AI with the help of

play02:14

simple LM so simply say from simple lm.

play02:20

language. llm input and LM provider this

play02:25

is the first line the second line is to

play02:28

define a new LM inst

play02:30

look at the magic now I will say lm.

play02:33

create for the provider I will select

play02:36

open AI you can select for example

play02:39

Gemini you can select anthropic whatever

play02:42

you want open Ai and for the model I

play02:45

will go with GPT for Omni now let's

play02:48

generate some text generated text

play02:51

anything you want is equal to LM

play02:53

instance do generate response and simply

play02:56

pass a prompt whatever prompt you want

play02:58

let's say generate a sentence of five

play03:02

words that's it let's print the

play03:05

generated text but before you click run

play03:09

and test the code you need to add your

play03:12

open AI keys so what you need to do

play03:14

simply is add a new file call

play03:18

ITV this way and simply paste your API

play03:22

keys if you want to use open AI only can

play03:24

just add this key here it's up to you so

play03:27

let's go back and run our code and see

play03:31

the magic click on this

play03:34

small run button and we got a sentence

play03:38

so this is the response from the model

play03:40

so this is how you can get started with

play03:42

simple LM it's that easy okay that's

play03:45

enough I'm so excited now to share with

play03:46

you the 10 projects I built let's start

play03:49

with number one create a new file call

play03:52

it one and the first simple project is a

play03:55

Blog title generator look how easy it is

play04:00

to build this one the same idea here is

play04:03

the code we Define the LM instance now

play04:07

the only difference is the prompt I

play04:09

created this simple prompt and I passed

play04:11

it to my generate response function here

play04:14

that's it so now whenever you change the

play04:16

prompt you have a new tool let's see

play04:19

this in action run and here we have 10

play04:22

blog titles and you can see here the

play04:24

topic you can simply change this for

play04:26

example to digital marketing

play04:30

tips for example and run and we have new

play04:35

titles don't worry in a little bit I

play04:37

will show you how to create a user

play04:39

interface for these tools let's see the

play04:41

second project two and now we will build

play04:44

a subject line generator I think you

play04:48

guessed this we just need to copy the

play04:50

exact same code the exact same code here

play04:54

but now we need to change the prompt

play04:56

only so instead of this one I will

play04:59

replace with the subject line generator

play05:01

prompt just copy paste here and change

play05:05

us input for example to digital

play05:08

marketing tips let's generate some

play05:11

subject lines now perfect we have a

play05:14

subject lines this example to show you

play05:16

how easy it is to build different AI

play05:18

tools different combinations by just

play05:21

changing the promt let's level up with

play05:24

project number three again three and now

play05:27

we will build the hook generation

play05:30

tool so I'll paste the code it's a

play05:33

little bit long but it's the exact same

play05:36

process the same logic so we Define the

play05:39

instance and now we have the hook

play05:42

generator prompt you can see it's a

play05:43

little bit long because I want to share

play05:46

with you this important tip when

play05:48

building AI tools if you want to be

play05:51

unique you have to generate content

play05:54

based on real data I mentioned this in

play05:57

my other videos so here I collect

play05:59

collected some templates and examples of

play06:03

successful Hooks and then using this

play06:05

data I'm generating the hooks and

play06:08

returning it back in this structured

play06:10

format it's called Json format why to

play06:14

build the UI as I will show you in a

play06:16

little bit so let me show you this how

play06:18

it works so I will copy The Prompt and

play06:21

then I will pass it to the Alam instance

play06:25

but before that we have here a small tip

play06:29

you need need to

play06:31

replace the inputs here before how I do

play06:35

this simply by using this format

play06:39

function you just say user input is

play06:41

equal the input topic and the usage is

play06:43

equal to usage here so now you can

play06:45

change the variables easily for example

play06:47

here we can say a Twitter tweet for

play06:50

example any type of content let's start

play06:53

with short video let's run this to see

play06:56

the output I will clear you see now

play07:00

the difference is we are returning back

play07:02

only this structured output you can see

play07:06

we have hook type and the hook hook type

play07:09

and the hook why I did this so I can

play07:12

build the UI easily you can see here is

play07:16

the hook generator I built on my

play07:17

WordPress website for example I say here

play07:21

digital marketing tips for a short video

play07:24

content type generate you see now this

play07:27

awesome loading and now we can read the

play07:30

Json structured format and show them in

play07:34

this way on our website this is why I

play07:37

generated this structured response now

play07:41

how we can build UI for our tools how we

play07:44

can build a user interface we have two

play07:46

methods I would share with you right now

play07:49

number one is like this one here I used

play07:53

HTML CSS and JavaScript and one of the

play07:56

best places to learn this is skill share

play08:00

you can learn these skills in less than

play08:02

one week with this awesome course on

play08:05

skillshare it's a full path starting

play08:07

from the basics then fine-tuning the

play08:09

layout getting creative and Publishing

play08:12

your website this will help you design

play08:14

and build any tool you want if you go to

play08:17

my website you see I build different AI

play08:20

power tools all with the help of HTML

play08:22

CSS and JavaScript and if you combine

play08:25

with chp2 today things will be a lot

play08:27

easier and faster not only that on

play08:30

skillshare you will find my courses too

play08:33

building AI Agents from scratch and how

play08:36

to create AI tools with WordPress which

play08:38

shows you step by step in detail how I

play08:42

buil the hook generator tool sharing

play08:44

with you all the project codes resources

play08:47

so we can replicate it easily Skiller is

play08:51

one of the largest online learning

play08:53

communities out there with thousands of

play08:56

classes covering almost everything from

play08:58

design illustration to marketing

play09:01

business freelancing and even

play09:04

programming and development there's

play09:06

something for everyone for me I'll be

play09:09

focusing more on productivity skills I

play09:11

have problem managing all my tasks in my

play09:15

business from my website from YouTube to

play09:17

open source projects to my tools

play09:19

everything and I believe this learning

play09:21

path by Ali abdal is a good fit for me I

play09:24

think you know Ali abdal and he

play09:26

published this learning path on skill

play09:29

and I think it will help me get things

play09:32

done with less stress I hope so not only

play09:35

that I've p with skillshare so the first

play09:38

500 people to use my link in the

play09:40

description below will get one month

play09:43

free access to all classes go now get

play09:46

started learn new skills and shape your

play09:49

future thank you skillshare for

play09:50

supporting my adree videos supporting my

play09:53

audience and my channel okay let's now

play09:58

move to the second second way in

play10:00

building uis for our tools and this one

play10:04

is really awesome you will love it we

play10:07

will do this in less than 10 seconds I

play10:09

will open Chad GPT simply go to my pre

play10:13

prompts library then search for

play10:16

streamlet open this prompt copy back to

play10:19

chpt paste it here instead of the script

play10:23

I will simply copy the hook generator

play10:26

code paste here enter let's wait for

play10:30

seconds and now chpt will generate the

play10:34

UI using the streamlet library I will

play10:37

copy it back to my projects create a new

play10:41

project I will call 3or UI to test it

play10:45

paste let's go back to our terminal it

play10:49

says install stream just copy this code

play10:52

pip install

play10:54

streamlet okay now simply streamlet run

play10:58

and the name name of the file look at

play11:01

the magic and we have the online tool up

play11:05

and running you can select the topic and

play11:08

the usage for example here I will say

play11:11

email marketing tips for short video

play11:15

generate hooks wait a little bit we have

play11:17

this loading and we got the hooks you

play11:20

can simply ask shpt to update your

play11:22

interface as you like but in a couple of

play11:25

seconds we have this web application it

play11:28

can be your next last project it can be

play11:30

the next MVP product your next online

play11:33

business you can start with this

play11:35

approach okay now let's go to the next

play11:38

level project with tool number four

play11:42

again new four and now I will build a

play11:45

Blog summarizer blog summary for example

play11:50

and now you will see the power of simple

play11:53

LM the real power again here is the

play11:57

code we got the instance

play12:00

now we have a URL to summarize my blog

play12:03

post let me show you this I will open

play12:06

the browser open it and here is the blog

play12:10

post a full guide you want a bullet

play12:13

point summary so we have the prompt and

play12:17

we generate the response as before but

play12:21

now we have one problem is we want to

play12:23

extract the blog post content and here

play12:26

where it comes the load content built in

play12:29

function inside simple LM just call it

play12:32

load content pass the URL and we have

play12:35

the content ready to pass inside our

play12:38

prompt it's that simple imagine what you

play12:41

can do with this you have any content

play12:43

from the web you can combine with a

play12:46

prompt to do anything in our case we are

play12:48

summarizing let's run this and we have

play12:52

the summary of the blog post now look at

play12:56

this project number five will be a

play13:00

YouTube summarizer I will copy the exact

play13:04

same code paste it here and what you

play13:08

need to change only is the

play13:11

URL you see the power of simple LM you

play13:14

can just get a YouTube video URL here to

play13:17

summarize also this function can read

play13:20

both YouTube URLs PDF txt anything let's

play13:25

open YouTube let's get a video for for

play13:29

example this one here copy link and

play13:35

paste run and we have the summary for

play13:38

the YouTube video you can now watch 1

play13:41

hour video in like 2 three minutes by

play13:44

reading the summary then you can decide

play13:46

if you watch the full video or not you

play13:49

can save a lot of time now instead of

play13:52

summarizing we are going to create the

play13:54

new project as a Content converter look

play13:58

at this

play13:59

number six convert content.

play14:04

py simply paste the code the exact Z

play14:07

code we got and read the blog URL or the

play14:11

YouTube video anything you want we have

play14:12

the content now we only need to change

play14:15

the prompt extract your information from

play14:17

the following post and convert to an

play14:19

engaging tweet post content here we are

play14:23

so now we are converting content from a

play14:26

blog post to a Twitter tweet we have a

play14:29

lot of combinations here you can convert

play14:31

to an email newsletter to a YouTube

play14:33

script to a medium post you can

play14:35

repurpose content using this powerful

play14:38

script Let's test it I will run now so

play14:42

we are converting this blog post into a

play14:45

simple tweet look at this we have the

play14:49

Tweet here perfect just take one minute

play14:52

to imagine how many combinations and

play14:55

tools and ideas you can simply build

play14:58

with this

play14:59

script by loading content and changing

play15:02

the prompt you will have a lot a lot of

play15:06

ideas and tools to build I would love to

play15:08

hear your ideas in the comments section

play15:10

below maybe your idea will be the next

play15:13

video on my channel oh before I forget I

play15:17

decided to give away free access to our

play15:21

lifetime power members Club where you

play15:23

get access to all my courses programs

play15:26

tools libraries codes and access to our

play15:30

premium community on Discord and on the

play15:33

premium Forum everything lifetime if you

play15:36

want to join this giveaway all you have

play15:38

to do is smash the like button and

play15:40

comment below and the next video I'll be

play15:43

picking up randomly from the comments

play15:46

one person to get this lifetime

play15:50

access okay let's move on to the next

play15:53

project now things will become more

play15:56

interesting project number seven is an

play15:59

AI powered

play16:02

search look at this

play16:05

s AI

play16:08

powered search. py now what we will do

play16:13

is the user will enter a query the

play16:17

application the tool will search Google

play16:19

for the top results summarize extract

play16:23

them and then from all the results it

play16:26

will give you the key information look

play16:29

at this again you will see now the power

play16:32

of simple LM it has a built-in function

play16:35

to search Google with serer API again we

play16:39

Define the instance we have the search

play16:41

query for example we are searching for

play16:43

the best microphones in

play16:45

2024 we search Google we get the search

play16:49

results now what I'm doing simply is

play16:52

looping through the search results for

play16:54

every search result and getting the

play16:57

content using the load content and

play16:59

function then I'm extracting the key

play17:02

points from from each blog from each URL

play17:06

and combining them in this overall

play17:09

research text then at the end after we

play17:12

finish the research we will extract the

play17:14

key information from the overall

play17:17

research so it's like an AI assistant

play17:20

doing a research for you and giving you

play17:22

the results in few key points Let's test

play17:25

this I will clear and run so I want to

play17:29

search for best microphones run let's

play17:33

wait a little bit it's searching the web

play17:36

and perfect here is the final summary

play17:39

top recommendations these are the

play17:41

microphones with their features then we

play17:44

have razor then we have Technica at 2020

play17:48

then we have this one and so on so it's

play17:51

like the AI did the research for you if

play17:55

you know perplexity I think you heard

play17:57

about it per plexity AI it is an AI

play18:01

powered search engine so if you search

play18:03

for best microphones enter you will see

play18:07

it will give you the sources and from

play18:09

these articles it will generate the

play18:11

summary you see Shure blueti razor elato

play18:15

and so on based on the search results so

play18:19

this project that we built here is like

play18:22

a prototype of perplexity and AI powered

play18:26

search engines okay now let's level up

play18:30

again and create a project to chat with

play18:34

our blog posts so let's create project

play18:38

number eight chat with

play18:42

blogs the project here is a little bit

play18:46

complicated but it will be a great

play18:48

prototype for you to play with and test

play18:51

with and see how this technology works

play18:54

okay so here's the code we will need

play18:57

another file to use use here which is

play18:59

simpler vectors I created this for the

play19:03

sake of this project so what I'm doing

play19:06

here simply is again reading the content

play19:09

of any blog post any URL you want and

play19:12

then I am chunking it splitting it into

play19:15

small parts and then saving these parts

play19:19

in a database I created it's called a

play19:21

vector database if you had about the rag

play19:23

system it's like a prototype of a rag

play19:26

here then when I embed them all or save

play19:29

them all in the database I create this

play19:32

chat bot simple chatbot to chat with my

play19:35

document for example this blog post free

play19:38

AI chatbot on WordPress let's run this

play19:42

project to see how it works so it runs

play19:46

and now we will have a simple chat in

play19:48

the terminal so I will ask what is this

play19:52

blog post about and now the AI based on

play19:57

the blog post it will tell me it's about

play19:59

creating free AI chatbot for a WordPress

play20:02

site without using third party Services

play20:04

it is answering from the blog so you can

play20:07

chat with any URL any blog post perfect

play20:11

exit

play20:12

goodbye clear and this is Project number

play20:16

eight I think you guessed what is

play20:19

Project number nine since simple LM has

play20:23

this powerful function that can loads

play20:25

both blog posts and YouTube videos

play20:28

number nine will be chat with a YouTube

play20:32

video so nine

play20:35

chat with youtube. py the exact same

play20:40

code but you can just pass a YouTube url

play20:44

here and chat with the video content

play20:47

perfect project number 10 and the

play20:50

surprise 10 will not be the last project

play20:53

we have a bonus project number 11 so

play20:56

stay tuned number 10 is something

play21:00

somehow special it's easy but special

play21:02

it's called The Prompt tester.

play21:05

py again using the power of simple LM

play21:09

look at this simple tool inside simple

play21:12

LM we have something called prompt

play21:14

Builder which create multivalue prompts

play21:17

so what this function will do is will

play21:20

create multiple prompts based on

play21:23

multiple parameters for example we have

play21:26

this prompt that takes two inputs topic

play21:29

and style and here I have a parameters

play21:31

list topic style topic style topic style

play21:35

and so on it may be 100 inputs then I

play21:38

will create the multi-value prompts

play21:41

using this template and I can test with

play21:45

different parameters this is very

play21:47

important in prompt engineering if you

play21:49

are evaluating your prompts and you want

play21:52

to test with different inputs and see

play21:53

the results so here what will happen for

play21:57

each prompt are going to generate titles

play22:00

you will see now we have the first set

play22:01

of titles with the first inputs then the

play22:04

second set and the third set so for each

play22:07

set of inputs we are generating

play22:10

different output so we can evaluate the

play22:12

prompts this is very important in the

play22:15

concept of crafting prompts and testing

play22:17

prompts if you want to learn more about

play22:19

prompt engineering you can check my full

play22:21

course on my website become a prompt

play22:23

engineer from zero to scripting AI

play22:26

workflows anyway let's now h hop into

play22:29

the last bonus project number 11 it's

play22:33

something special I built I want to

play22:36

share with you it's an AI agent without

play22:40

using any service any Library I built it

play22:45

and I made it as simple as possible so

play22:47

anyone can build an AI agent in a couple

play22:50

of minutes here's the code and we need

play22:53

this extra file the experimental agent

play22:56

file so we have this agent now that we

play22:59

can create and pass the provider from

play23:03

simple LM and the model name and add

play23:06

tools for example I can add the load

play23:08

content that we used before as a tool

play23:11

when you ask a question to this agent it

play23:13

will decide by itself if a tool is

play23:16

required or not and it will use the tool

play23:19

and using the tool it will answer you

play23:21

for example I will tell it to generate a

play23:24

summary for this URL and the agent has

play23:28

this tool I added it to the agent look

play23:30

at this run in the first Loop in the

play23:34

first step the agent will decide that

play23:36

they need this function they call it and

play23:39

get the full block post and then in the

play23:42

Second Step they are summarizing it and

play23:44

generating the final answer so this is

play23:47

the summary you see so this is a

play23:50

prototype of an agent I built from

play23:53

scratch we can add whatever tool you

play23:55

want and test and play with and I'm so

play23:58

excited to hear your thoughts your ideas

play24:01

what you did how you change this project

play24:03

it's totally free it's open source do

play24:06

whatever you want and if you are

play24:08

interested to learn more about AI agents

play24:10

How I build them how you can build them

play24:13

totally from scratch you can check my

play24:15

full course on my website or you can get

play24:18

started totally for free with this video

play24:22

here if you learn something new today

play24:24

don't forget smash the like button all

play24:27

the codes in the description below see

play24:30

you later

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
AI ToolsSimpleLMBlog TitlesYouTube ChatContent CreationAPI KeysVirtual EnvironmentPrompt EngineeringSkillshareAI AgentsWebpage Scripts