Generative AI Full Course – Gemini Pro, OpenAI, Llama, Langchain, Pinecone, Vector Databases & More - Ep115
2025-07-11 11:50:39 [javascript] Source: ByteGenius
short promptis nothing there we are space exploration storiesgiving uh somesort of a direction actually some sortof a direction or some sort of aninstruction in inside the prompt itselfso this typee of prompt actually iscalled a few short of prompting now herewe are giving an instruction to our llmbased on this particular prompt now hereyou can see uh this is what this is mytemplate uh and here I need to mentionthis particular template over here andthis is what this is my input variableright this is what this is my inputvariable now we have H five inputvariable so one is text so whatever texton whatever text actually I want togenerate McQ so that particular text I'mgoing to pass over here uh meansbasically based on the text itself I'mgoing to generate an McQ now there is anumber of McQ there is a grade okay soto which grade actually uh the studentbelong now here is a tone tone meanssimplicity so means different differentlabel of the quizzes so simple quiz ormaybe hard quiz intermediate quiz andhere is a response Jon so there you willfind out the response and here in acurly bis actually I have mentioned thisuh like uh I have mentioned thisparticular thing this particularvariable now let me do one thing see uhhere I have mentioned the subject andhere I'm writing this grade so let mechange this particular value here I canwrite on the subject so now everythingis fine everything is clear so this iswhat guys this is my input prompt thisis what what I have created I havecreated an input prompt now let me uhcreate a chain object so here alreadyyou can see I have like I have importedmy llm chain and why we use this chainif we want to connect two component sowe first uh at the first place we have allm the second one we have a prompttemplate if you want to connect both uhthis both component so for that we areusing this llm chain so now let mecreate a object for this llm chain andfor creating object for this llm chainso first of all let me assign to thevariable quiz uh chain and here is thisis what this is my object now in thisparticular object I'm going to pass twovalue two parameter the first value isgoing to be llm itself now here is whathere is my llm which I already calledwhich I already uh got from here and thesecond thing the second value is goingto be a a prompt okay so here I'm goingto be write the prompts and this is whatthis is my prompt quiz generation promptso here I just need to uh here I justneed to combine two component the firstone is LM and the second one is a promptso here is what here is my quiz chaingot it so this is the first chainactually which I have created and thiseach and everything each and every uhlike uh thing actually I have explainedyou in my previous classes even in my uhlike yesterday's class now guys seewhatever um output I will get aftergenerating a quiz from here from thetemplate so that thing I'm going to keepinside my uh inside my variable and thevariable is going to be let me writedown the variable over here so thevariable is going to be output uncore keis equal to and here let me write downthe quiz so here I'm going to collectall the output inside this quiz insidethis a particular variable now let memention one more parameter the parameteris going to be a barbos so what is themeaning of the bbos barbos is nothing ifI want to see the execution whateverexecution is happening if I want to seeon my terminal itself so for that we usethis bbos parameter now let me write itdown here verbos is equal to True verosis equal to true so here I hope each andeverything is clear whatever I haveexplained you uh if it is clear thenplease do let me know in the chat areyou following me are you following meguys tell me guys fast yes orno what was the command for creating avirtual environment so let me give youthe command for creating a virtualenvironment cond create hyphone p andvirtual environment name p EnV and hereuh python version python3.8 and here hyph y so this is thecommand uh which you can use forcreating a virtual environment I givenyou the chat you can copy fromthere tell me guys first so if you areuh able to follow me till here then uhplease write down the chat and if youare liking the uh if you liking thecontent if you are liking the class thenplease please hit the like buttonalso if you have any uh sort of a doubtany type of doubt you can mention in thechat section you can uh tell me yourdoubt I will try to solve thatparticular doubt and then I will moveforward please tell me guys I'm waitingfor your reply so yes chat is open forall of you please hit the like buttonplease ask your doubt and if everythingis done uh then please say yes at leastokay so let's move forwardgreat so here uh you can see this iswhat this is my first template which I'mpassing to my model now at the secondplace what I need to do so I I'm goingto create one more template forevaluating this quiz so whatever quizzesand all uh basically we are going togenerate so I want to evaluate aparticular quiz now for evaluating thequiz here I'm going to create a one moretemplate U Already I did it if you willlook into my in uh this if you look intomy ipnb file so yesterday itself I haveI had created this uh like differentdifferent prompts and all so this was myfirst template this is my first promptand this was my second one for checkingthe quizzes and all so whatever quiz andall which we are going to generate andhere is a template now let me copy itfrom here and let me paste it down sowhere I'm going to paste it I'm going topaste it over here inside
(Editor: cpp)
Related content
Web3 Developer in 2024 Roadmap_ Solidity, Smart Contract, and Blockchain Development [Full Course] - Ep30
Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep57
Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep55
XRP Ripple LIVE Senate Brad Garlinghouse - FROM WALL STREET TO WEB3 - Martyn Lucas Investor - Ep13
Web3 Developer in 2024 Roadmap_ Solidity, Smart Contract, and Blockchain Development [Full Course] - Ep26
- Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep112
- Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep125
- Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep151
- Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep110
- Bloodhound Q50 Tells His Life Story (Full Interview) - Ep9
- Web3 Developer in 2024 Roadmap_ Solidity, Smart Contract, and Blockchain Development [Full Course] - Ep45
- Web3 & Crypto Will Change The World As We Know It! Yat Siu - Ep10
- Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep154
Recommended articles
-
doesn't happen do thiswhich is very similar to a lot ofprogramming languages if you're used toit you ...[Details]
-
staking contract andwe'll cover that contract in a littlebit more detail right now so coming backto ...[Details]
-
Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep84
the same buthard hat won't necessarily know aboutdifferent contract factories anddifferent pieces an ...[Details]
-
doesn't happen do thiswhich is very similar to a lot ofprogramming languages if you're used toit you ...[Details]
-
Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep116
run after we'vedeployed some code just to see ifeverything is working approximately theway we want i ...[Details]
-
Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep12
youknow my name like you know PatrickCollins this is the hash that's going torepresent Patrick Colli ...[Details]
-
come over to ourchain list Tool uh we'll drop the linkdown in the description below if youneed to re ...[Details]
-
Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep19
different but all thenodes are trying as many as possible totry to get this answer first why because ...[Details]
-
Harvard CS50’s Artificial Intelligence with Python – Full University Course - Ep20
of calculation I was doinga little bit more bookkeeping keepingtrack of things keeping track all the ...[Details]
-
XRP Ripple LIVE Senate Brad Garlinghouse - FROM WALL STREET TO WEB3 - Martyn Lucas Investor - Ep22
You can askquestions directly to me, directly toSensei, anybody else on the panel, andwe can discuss ...[Details]
Hot reading
Random content
- GenAI Essentials – Full Course for Beginners - Ep134
- Solana Developer Bootcamp 2024 - Learn Blockchain and Full Stack Web3 Development - Projects 1-9 - Ep21
- Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep292
- Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep239
- Solana Developer Bootcamp 2024 - Learn Blockchain and Full Stack Web3 Development - Projects 1-9 - Ep32
- Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep159
- Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep89