Current location: Homepage > solidity > Generative AI Full Course – Gemini Pro, OpenAI, Llama, Langchain, Pinecone, Vector Databases & More - Ep137

Generative AI Full Course – Gemini Pro, OpenAI, Llama, Langchain, Pinecone, Vector Databases & More - Ep137

2025-07-11 11:24:25 [c] Source: ByteGenius
queen we have reset with aiaman woman and monkey this is myvocabulary and this is my uh feature nowhere see guys we are going to assign aweight right to this particular vocabright we are going to assign a weightthe weight value will be from 0 to 1right so here I'm saying King King ishaving a Zender right so here I'm sayingyes it is having a Zender means one nowQueen is also having a Zender right sohere actually uh what I'm say say kingis having a Zender now Queen is alsohaving a Zender right uh here I canwrite it down the one now here I canwrite male also so you can say uh let'ssay the gender is going to be malefemale so you can specify you canspecify let's say if the gender is goingto be male over here this one now inthat case what you will say so for Kingactually you will write it down oneright so here let's say the gender isspecified that is male so what you willdo for the king you will write it on theone and and for the queen you will writedown the zero right here the men yes itis one woman actually it's a zero andmonkey let's say it's a one right I'mtalking about the monkey it's a male onenow if we are talking about the wealthright so again I will provide some sortof a number over here see to thevocabulary I will assign some numberbased on my feature okay so wealth yesKing is having wealth so here what Iwill do I will assign one now Queen isalso having wealth so I will assign oneover here now if we are talking aboutthe men so Men actually it's not a kingright so men is not a king so they itmight have a wealth or it might not havea wealth right so here I'm not going toassign a one so between this 0 to one Ican assign any value this is going towork as a weight right so here I canassign 0.5 over here this woman alsosame right so it is having a less wealthcompared to men let's say 0.4 and monkeyis not having any sort of a wealth sohere I'm going to write down the zeronow if we talking talking about thepower so definitely King is having apower Queen is also having a power butmaybe less than to this King so here letme write down let's say 0.8 now herelet's say this man is having a powerlet's say it's having very less power0.2 this woman is having a power let'ssay 0.2 and monkey is not having anypower now if we are talking about theweight definitely King is having aweight 0.8 now let's say woman thisqueen actually it's a more than thisKing in terms of weight so here I writedown the 0.9 men also is having a weightright say uh is having 0.7 and this is0.8 and monkeys also some weight let'ssay0.5 right so to this vocab based on thisfeature I'm going to assign some sort ofa numbers right and here let's say speakso yes King can speak Queen can speakman also can speak now here woman canalso speak but monkey cannot speak sohere is a zero so now you will see thatthis is my first Vector see this is thevector of the King right this is thevector of the king so here I'mrepresenting the King by using thisparticular Vector now if we are talkingabout the woman so here is a vector ofthe woman guys this one sorry this is avector of the queen this this particularVector now if we are talking about thevector for the main this is the vectorof the main I'm going to represent mainby using this particular Vector now justlook into this example where I wasrepresenting Sun by using this Vectornow compare this vector and this type ofvector see this Vector is actually thisVector is dense Vector right this Vectoractually it's a dense vector and it ishaving more meaning right it is havingmore meaning it's not a meaningless it'shaving a meaning which I have uh which Ican uh basically uh it is having ameaning which I can prove it also nowthis Vector whatever Vector I havedesigned over here it's a 5D Vector it'sa five dimension Vector right now guyssee I told you uh about the twoDimension Vector now let's say here uhif I'm going to draw the two DimensionVector so this is my two DimensionVector this one and how to representthis vector by using this x value and Yvalue now if I'm writing about the kinglet's say this is what this is my kingright so here how to represent the kingNow 1 1 1 0.8 and 1 so here is what hereis my king Vector now tell me guys thisKing Vector actually it is in fiveDimensions so we cannot draw it likethis we cannot draw it like this so seethe word to W model the word to W modelwhich Google has strained it was a modelfrom the Google right so this Google hasStained this particular model on a newsarticle on a Google news article andactually uh the vector they have createdthe vector Vector which they havecreated over there the vector size wasthe 300 Dimension right so the vectorsize was the 300 Dimension so here Ihave just given you the Glimpse rightwith a few vocabulary and the featurenow here uh if you will look into thereal word to model which you candownload from thei or maybe from any NLPLibrary like nltk and all so thedimension you will find out of eachVector which is going to be a 300 rightwhich is going to be a 300so this is called embedding now herehere guys see whenever we are talkingabout whenever we are talking aboutneural network so in a neural networkwhat we are going to do so in thatactually we have three layer one is ainput layer the second is called ahidden layer the third is called aoutput layer so here actually what ishappening see we are passing a input weare passing input now what we arepassing over here

(Editor: python)

Recommended articles
Hot reading