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

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

2025-07-11 11:29:50 [cs] Source: ByteGenius
you that aftergenerating a API key hugging face APIkey how you can geoffrey hinton warningsutilize that particularmodel so each and everything uh we'lltalk about in today's session uhwhatever I have told you and after thatwe'll start with the project so intomorrow's session or maybe day aftertomorrow so I will start with theproject end to end project I will usethis openi concept hugging face conceptlinkchain concept and I will uh show youthat how you can create a webapplication end to end web applicationand then we'll come to the advanced partlike vector databases and some othertopic so I think uh everything is fineuh the agenda is all clear uh so pleasegive me a quick confirmation in the chatif we can start then and whatever I haveexplain you whatever I have explainedyou so far so it is clear or not soplease do let me know in the chat uh ifit is clear and if we can start then I'mwaiting for yourreplyfine so I got the answer now great solet's start uh let's start with thetopic so in this uh uh notebook itselfI'm going to write it down the entirecode uh of the Len chain so whateverthing is there regarding the Len chin Iwill try to do here itself and whateverthing uh things will come into thepicture uh whatever other libraries andall so definitely we'll try to installall those library in the current virtualenvironment now here guys uh I told youthat how to create an environment how touh launch the Jupiter notebook how toinstall the openi over there how to uhlike install the langen each andeverything I have discussed in myprevious session so if you don't knowabout it so please go and check with myprevious session there I did a detaileddiscussion regarding the environmentsetup got it now here guys um already Ihave written some sort of a line some Ulike sort of a quotee for the L chainyesterday actually I I like uh I was uhI I have imported the Lenin and I haveused the key the openi key and basicallyI have imported this openi class and Icreated a object then I uh written aprompt over here and here I was uh likegiving this prompt to my open API and inthe back end it was running the llmmodel and here you can see this is whatthis is my output got it now here I Ihad written actually this this this isthe today's agenda whatever thing we aregoing to discuss in today's session sohugging face API use of Lang CH and allso each and everything we'll try to dohere itself in the uh in today's classitself so first of all let me write itdown each and everything over theBlackboard so with that you will get aclear-cut understanding regarding theagenda and all that whatever the thing Iam going to discuss and after that Iwill come to the code part code sectionso let's start uh with the agenda now intoday's class guys we'll be talkingabout the Len chain so let me write itdown over here in today's session we'regoing to start with the Len chain nowwhat is a len chain why we use Len chainand what is a difference between thisopen a and this Lenin so each andeverything we'll be discussing over hereitself now the first thing the firstthing which we going to discuss in theLen Chen the first thing how to use LenChen or how to use open a uh how to usehow to use open AI by a lang chin so howto use open AI via Len chain that's thefirst thing we'll try to discuss got itafter that I will come to the prompttemplate prompt uh templating so how youcan do a prompt templating by using thisLen chin so the second thing the secondtopic which we're going to talk aboutthat will be a prompttemplating promp templating the thirdthing which we're going to discussinside the Len chain that will be chainswe'll talk about the chains that what isa chains uh how we can utilize thischains what is the meaning of the chainhow uh what all the different differenttype of chains is there each andeverything we talk about over here thenwe'll talk about the agents that what istheagents okay so we'll talk about theagent that what is the agent and what wecan do by using this agent so each andeverything we'll try to discussregarding this agent and here if uh sohere I will show you that how you canuse the Google API so by using the SurAPI so what I will do so by using thesurpAPI I will try to I will try to use theGoogle API Google API Google searchAPI so in the agent section I willexplain you this particular thing andafter the agent the fifth one the fifthtopic which we're going to discussthat's going to be a memory so we'll letyou know that how we can retain thememory how we can retain the memory likechat GPD is doing how we can do the samething if we are using this open API sowe will try to discuss this memory uhmemory part as well and which is a uhlike which is available over here insidethe lench and by using this Len Chen wecan implement this particular featureafter this memory I would come to thatuh document loader so uh how we can loadour different different type ofdocuments so document is nothingdocumented just a file like PDF file CSVfile tsv file or any other file how youand load that particular document sowe'll talk about a document loader aswell so here let me write it downdocumentloader after completing all these thingthen I will come to this huggingphase hugging phase I will show you howyou can I will show you that how you canuh generate a hugging face API keyhugging face API token and how you canutilize any sort of a model whatevermodel is is there over the hugging faceHub so how you can use that particularmodel so I will talk about the huggingface after that and finally we'll moveto the project section so uh this is theagenda for today's session for today'sclass

(Editor: code)

Recommended articles
Hot reading