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

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

2025-07-11 11:23:45 [php] Source: ByteGenius
and apart from this each andeverything I have career advice podcastexplain you how togenerate a open key how to uh like use aopen a what is chat completion what is afunction calling and all even I havetalked about the basics of the langen aswell so if this part is clear to all ofyou so please do let let me know in thechat if till uh like if the agenda isclear so I just want quick yes in thechat and please do let me know how manyof you you are writing a code along withme because today I will go a little slowso you also can write it down the codealong with me please do let me know guysplease write down thechatgood I think many of you you are writinga codemhm uh just a wait just uh give me asecondfine so let's start with the uh agendanow so here guys you can see I havewritten a agenda and first of all uh letme explain you that what is a len chainwhy we are not using this openi API whywe are using this Len chain and uh whyit is too much important this Len chainand this llama index to so first of alllet me talk about uh the differencesbetween this open Ai and this Len chainand then I will come to theimplementation part so here uh first ofall let me write it down the limitationsof the chatGPT sorry limitations of the open aAPI uh limitations of open AIAPI now here guys see uh if we aretalking about this open API so here youwon't be able to find out a free modelso the first thing actually the firstthing uh in the limitation uh like whichwe are going to talk about so here opena model is not a free one so here let mewrite it down open AI model open AImodel open AI model is not afree now let's see uh let's assume thatokay so the model is not a free one andif I want to use the llm uh like if if Iwant to use the llm capability or thatAI capability in my application I if Idon't have a budget so what I will do Iwill go with the other option other freeoption open sourceoption okay so let's say some XYZorganization some XYZ organizationcreated one llm now I want to use thisparticular llm so yeah definitely whatyou can do you can use the uh APIwhatever API this XYZ company has givento you and by using that particular APIyou can use this particular llm rightnow let's say you don't want to use thisllm you want to use some other llmnow how you will access it by using thedifferent API now let's say if you wantto use some other llm whatever llm isthere let's say uh one LM is over thehugging phas Hub right if you want touse that particular llm large languagemodel from the hugging phase right ifyou want to use it then definitely youcan use it by generating that particularAPI key but guys just think over here uhyes we are using a different differentAPI over here first of all uh we wereusing this openi API but as you knowthat openi model is not a free one foruh uh like if you want to use it sodefinitely we'll have to pay somethingand how we're going to pay it so basedon tokens yesterday actually uh daybefore yesterday I shown you the uh thetoken price and all that how much youwill be a charge if you are going to usethis openi API if you are going to use adifferent different model over there Itold you regarding the input tokensoutput tokens each and everything I havediscussed so just go through and checkwith the previous session okay so if youare not aware about it now let's say ifI want to use any XYZ llm or any otherllm so how you can use it by using theirAPI key but just think that uh justthink on top of it if why not like if wehave any one solution so the onesolution actually it can interact withseveralapis right so here I'm using this openAPI I if I want to access thisparticular model definitely I'm usingthis XYZ API or let's say some othermodel for that I'm using this XYZ API ormaybe I'm downloading it but just thinkon top of it if we have any singlesolution for all the llms with thatparticular solution if we can access allthe llms to that will be well and goodnow so lenen provide you that capabilityLen chain provide you that capability soby using this Len chain you can accessany sort of a llm right I will let youknow that uh what all llm and let's saythis openi is not a free one now let'ssay if you want to access a model fromthis hugging phase let's say you want toaccess one model from the hugging phaseso this length chain gives you thatparticular capability by using the Langchain you can access the model from thehugging face also and from a differentdifferent apis I will show you what allapis this Lang Chen is having I willcome to the documentation so Lang Chenis notrestricted till this open AI it ishaving an access of a multiple API thatis the first thinghere is a limitation and here I told youthe advantage of the Len chain I thinkyou got my point now the second thing ifwe talking about this GPD model uh if weare talking about the GPDmodel you know this have been trainedtill September 2021 data this train tillSeptember 2021 data if I'm going to askanything to my chat GPT or if I'm goingto ask anything to my GPD modeldefinitely it won't be able to reply meand you all agree with this thinggetting my point so if you will ask tothe chat GPT that uh just tell me whowon the recent Cricket World Cup willthe chat GPT uh able to answer thisparticularquestion no it cannot answer to thisparticular question because this havebeen trained till September 2021 data sofor that what I will have to do

(Editor: swift)

Recommended articles
Hot reading