**Exploring the Eiffel Tower, Louvre Museum, and Notre Dame Cathedral with Dolly**
Going to be the Eiffel Towers in Paris the L Museum in Paris okay good and the nraam De Paris front view all right this looks pretty good so this will get the three most popular tourist attractions so I guess he kind of already knew that from the uh gp4 engine it's running on right so let's just let this run and check out these three images okay so here we have the images the Eiffel Tower the L and the cathedral so let's have a look at them uh okay here's the Eiffel Tower beautiful the mum huh that didn't work that was strange and the kri okay so something wrong with but I guess kind of shows out what you can do that was a bit strange but let's just remove this okay so yeah you can see it can create three images at the same time and it didn't take too long I would say like 30 seconds maybe a bit more let's try something else
I am doing some research on London aka the year 1600 can you write two paragraphs about the most important happenings also include some image for my piece so here I don't specifically tell it how many images I want uh I haven't tried this so let's just see what happens so first we're going to check out what kind of functions it's going to call here of course it's going to be the dolly function and it's going to be the doly function and that's about it okay so it's going to do the internal writing here with GT4 all right we got something here in the year 1600 London was experiencing period of growth and cultural flourish Queen Elizabeth I William Shakespeare and Christopher Marlo captivated audience in the Globe Theater and other venues okay yeah and it goes yeah it WR a pretty good stuff about the London here from the year 1600 and here is kind of the image so this is showcasing the bustling cityscape the Globe Theater and the river chames all right so this is the globe I guess yeah that's not too bad pretty cool
all right so that was pretty successful if you ask me let's uh try uh one more thing I need the coordinates to the biggest settlement in Antarctica the weather and an image of the settlement also search Google if they sell pizza there uh I couldn't make up anything else so let's see what happens here so we're going to call the weather McMurdo Station okay so we figured that out of course McMurdo Station the largest settlement in Antarctica that is our prompt for Dolly Pizza sale at McMurdo Station Antarctica we got to search Google for that all right let's hope they have some pizza there the largest settlement in antara is McMurdo Station here are the details requested so we get the coordinates yeah that looks good we could have search those up but I'm going to trust it the temperature now is minus 17° here's an image of it all right I can't confirm or deny and what about the pizza what is This MC Muro Pizza I don't know I don't know what this is I think we're just going to leave that for now but at least it tried I guess was there any other links let's try this one okay so here is the station so here it is and here is the image oh not bad that's not too bad but I don't think there's any pizza there but that's fine okay
so I think we're going to call it there uh of course I didn't kind of showcase the best use cases for this today I just wanted to show you kind of how Dynamic this is and I found it really interesting like I haven't really wrapped my head around how Dynamic this is I know I said a dynamic lots of times in this video but that is the best word I could find for this and it can kind of adapt to what kind of functions you have so it kind of gets very good at using tools and yeah I don't know why I didn't think of this before how how functional this is that's another word but uh like I said before if you want to try this out yourself you can just support me by becoming a member in the link below and I will give you access to the GitHub you can download the code or you can just look at mine and try to copy it that's fine too I'm just here to kind of give you some ideas and I also want if you have any great use cases for this uh please leave a comment and I can try it out uh because I haven't really explored that yet so many people if people what and to so I haven't really explored that yet uh but I think that's it for today like I said really happy with this and I'm definitely going to explore it more so look out for that uh have a great day and I see you again yeah probably on Sunday maybe before
"WEBVTTKind: captionsLanguage: entoday we are looking at how you can use the parallel function calling with the assistance API and to be honest I did not realize fully how powerful and dynamic this is before I created this video so you definitely don't want to miss out on this one so I think we just going to go over to the flow shart and start off there so this was kind of my attempt of explaining this as easy as I could so basically we start with the user writing in a query so it could be like find the best pizza place in New York and the weather so this kind of asks for two different things right and now the assistant has to call the function it thinks we will need to execute to fulfill this query so you can see here we kind of have four available functions we have the vther API gbd4 Google search and do3 and for this query of course we need the weather API and to find the best pizza place a Google search would do right so now we can do this in parallel you see I kind of put this up up here as we'll see soon it doesn't have to be like it first searches for the pizza place and then it searches for the weather we can do this simultaneously so you can see these functions will need to be executed simultaneously so that's good because we save time right and then the response from those functions will be collected and passed on from the assistant to the user so basically I hope you kind of understood this this is very simplified but it's not much more to say really I think we just going to go straight to an example and then we go back to the code a bit and then we do more examples so we kind of get the grasp of this and we can really see how functionable and dynamic this is right so just to show you how this works now let's just enter our message so we're just going to go with the find the best pizza place in New York and the weather so I just hit enter so this is kind of the user query right and now the assistant is going to look at the functions we have and you can see we use something called tool calls here so you can see we are going to search for best pizza place in New York and we're going to use the get organic result that's a Google Search and we're going to search for New York and get weather so here the kind of the assistant picked out um kind of the functions we need to execute on this user query and here we got the results backs that was quite quick right so you can see we have four different lead in here and as for the weather in New York the temperature is at 0.3 CI with clear sky it sounds like a good time to enjoy Pizza indoors that was a bit funny so we can click on these links okay where to find the iconic pizzas let's try this one okay 29 best pizza places in New York so this clearly works right so you can kind of see how simple this was to set up and it's very dynamic because it adjusts what the user types in looks for what functions can we use and you can see here it runs them in like parallel so it doesn't do it in a series it just goes and does everything at once it can even call like Google with the Google function two times if that's the best solution right so I just thought it was good to start off with this example so you kind of get the grasp of what a code is going to do so I think we going to head over to the python code now and try to explain a bit what is happening and then we're going to do more examples because we can create images we can do other cool stuff too so yeah let's uh hop over to the python code okay so like I mentioned we have four different functions right so you can see the first one here this is basically just dolly3 we can call this to generate an image here is the get weather function this is just a free API we can use open weather map here is the function to use Google search this is from Ser API and here you you can see we have get chat response here we actually can call gp4 to help us write stuff so you're on helpful assistant help the user with writing so this is we can kind of call gp4 inside gp4 if you know what I mean and we can set our own system message for this so that is basically why I put that in and here we have the tools this is a list of tools we have available we know this now these are four functions so Google search Dolly and get the weather and get chat response so these are the tools that are available for the assistant right and the first step is to of course create assistant uh we gave it a name parallel function we gave it like some instructions so you're an assistant capable of fetching news articles I could have said capable of searching Google right I think that's better generating images providing weather writing based on user queries and here we select the newest model tools equals list tools and I just added some colors because that's better easier to see we need to start a thread so this is from the assistance API documentations we start a thread we need to add a message to the thread so this is kind of the user input so the enter message part right and then we need to run it so we just going to run the assistant so I think I put up like a small flow shart of this let me just quickly show you okay so I don't know how good you can see this but kind of I wanted to so you can see import libraries read the files and here we come to the uh run assistant so it's going to monitor the Run status and if the run is completed then we're going to retrieve and print the response from the uh assistant but uh if it's not completed uh if it has to if the Run requires an action this is kind of executing the functions right so it first has to identify what actions needs to be taken so this could be yeah doing a Google search creating an image and it's going to submit the outputs from the tools we used right so of course all these action has to be completed before the run is complete and if the assistance is processing we just going to wait and print this waiting for assistant to process and we got to continue monitoring so this this has to be completed before we kind of get to this output so we just keep monitoring until the assistant has executed all the functions we required and then kind of the script or the true Loop breaks and we get the response so this it's a bit annoying I know that but I I don't know how else to explain this yeah I like like I said this is just going to monitor until we are kind of ready to print the output uh I put this to Yellow here from the assistant but the interesting thing is that we can add loads of functions here I haven't checked how many but I think we can add much more and then you can kind of begin to see how Dynamic this can be uh let's say we add yeah like a code function I guess we have that with gp4 I don't have anything on my mind right now but let's say we add 10 more functions then we can get really Dynamic so we are definitely going to try that out someday but uh today I think these are fine so I think we just going to run a few more examples now try to trigger all the functions at the same time test some different stuff and yeah just to see how we end up and you can kind of see how Dynamic this is going to be now okay so let's start off by trying to trigger all the four function so hello I am traveling to La I need the weather an image of the Hollywood sign best sushi place and write an email from Chris to Julie telling her about La okay so this SL has the opportunity now to call the weather function the do E3 function the Google search function and like the GPT 4 function if it needs to it also has the ability to write with just the assistant so it doesn't have to call the gb4 function we'll see okay that was pretty quick so you can here requires action so all of these are in parallel so we're going to Tool calls we're going to search for La that is going to be for the weather yeah that's good uh Hollywood sign in LA with clear blue sky in the background that is going to be the dolly function that's good uh Google search function best Su place in La okay so we didn't actually call the dpd4 function but I think the assistant has the opportunity to write also so they could just solve it that way so let's just this process and check out the results okay that wasn't too long maybe 30 40 seconds here's the information you need for a trip to LA weather as of now the weather is clear skies 11° C here is an image of the Hollywood Sign Hollywood misses an L but I guess it's an image all right and here is the best sushi places in La so we can La eater okay the 20 essential sushi restaurants in La we get the map holy Woodland Hills okay pretty cool and yeah we got some other suggestions too lastly let's craft an email from Chris to Julie I hope this email finds you well I couldn't wait to tell you about the fascinating Aura of La the weather here is generously clear skies with almost every day uh okay so it didn't mention the temperature I additionally included some exceptional culinary experiences particular with sushi so it kind of takes off from the other other searches we did and try to incorporate that into the mail that's pretty cool La boats an array of sushi joints racing from Coy to high-end establishments looking forward to sharing more stories once I'm back warm regards Chris all right I guess this was kind of perfect it asked it did everything we asked for right wrote the email find the sushi places sign and the weather pretty good pretty good now let me try to call like multiple functions so let me just clear this so let's go with the I am going to Paris create an image of the three most popular tourist attractions so of course it's going to call the dolly function maybe it's going to call a Google function I'm not quite sure so let's just see here okay so it's going to call the doll e function once twice okay so it's just going to call it three times so the first is going to be the Eiffel Towers in Paris the L Museum in Paris okay good and the nraam De Paris front view all right this looks pretty good so this will get the three most popular tourist attractions so I guess he kind of already knew that from the uh gp4 engine it's running on right so let's just let this run and check out these three images okay so here we have the images the Eiffel Tower the L and the cathedral so let's have a look at them uh okay here's the Eiffel Tower beautiful the mum huh that didn't work that was strange and the kri okay so something wrong with but I guess kind of shows out what you can do that was a bit strange but let's just remove this okay so yeah you can see it can create three images at the same time and it didn't take too long I would say like 30 seconds maybe a bit more let's try something else I am doing some research on London aka the year 1600 can you write two paragraphs about the most important happenings also include some imag for my piece so here I don't specifically tell it how many images I want uh I haven't tried this so let's just see what happens so first we're going to check out what kind of functions it's going to call here of course it's going to be the dolly function and it's going to be the doly function and that's about it okay so it's going to do the internal writing here with GT4 all right we got something here in the year 1600 London was experiencing period of growth and cultural flourish Queen Elizabeth I William Shakespeare and Christopher Marlo captivated audience in the Globe Theater and other venues okay yeah and it goes yeah it WR a pretty good stuff about the London here from the year 1600 and here is kind of the image so this is showcasing the bustling cityscape the Globe Theater and the river chames all right so this is the globe I guess yeah that's not too bad pretty cool all right so that was pretty successful if you ask me let's uh try uh one more thing I need the coordinates to the biggest settlement in Antarctica the weather and an image of the settlement also search Google if they sell pizza there uh I couldn't make up anything else so let's see what happens here so we're going to call the weather McMurdo Station okay so we figured that out of course McMurdo Station the largest settlement in Antarctica that is our prompt for Dolly Pizza sale at McMurdo Station Antarctica we got to search Google for that all right let's hope they have some pizza there the largest settlement in antara is McMurdo Station here are the details requested so we get the coordinates yeah that looks good we could have search those up but I'm going to trust it the temperature now is minus 17° here's an image of it all right I can't confirm or deny and what about the pizza what is This MC Muro Pizza I don't know I don't know what this is I think we're just going to leave that for now but at least it tried I guess was there any other links let's try this one okay so here is the station so here it is and here is the image oh not bad that's not too bad but I don't think there's any pizza there but that's fine okay so I think we're going to call it there uh of course I didn't kind of showcase the best use cases for this today I just wanted to show you kind of how Dynamic this is and I found it really interesting like I haven't really wrapped my head around how Dynamic this is I know I said a dynamic lots of times in this video but that is the best word I could find for this and it can kind of adapt to what kind of functions you have so it kind of gets very good at using tools and yeah I don't know why I didn't think of this before how how functional this is that's another word but uh like I said before if you want to try this out yourself you can just support me by becoming a member in the link below and I will give you access to the GitHub you can download the code or you can just look at mine and try to copy it that's fine too I'm just here to kind of give you some ideas and I also want if you have any great use cases for this uh please leave a comment and I can try it out uh because I haven't really explored that yet so many people if people what and to so I haven't really explored that yet uh but I think that's it for today like I said really happy with this and I'm definitely going to explore it more so look out for that uh have a great day and I see you again yeah probably on Sunday maybe beforetoday we are looking at how you can use the parallel function calling with the assistance API and to be honest I did not realize fully how powerful and dynamic this is before I created this video so you definitely don't want to miss out on this one so I think we just going to go over to the flow shart and start off there so this was kind of my attempt of explaining this as easy as I could so basically we start with the user writing in a query so it could be like find the best pizza place in New York and the weather so this kind of asks for two different things right and now the assistant has to call the function it thinks we will need to execute to fulfill this query so you can see here we kind of have four available functions we have the vther API gbd4 Google search and do3 and for this query of course we need the weather API and to find the best pizza place a Google search would do right so now we can do this in parallel you see I kind of put this up up here as we'll see soon it doesn't have to be like it first searches for the pizza place and then it searches for the weather we can do this simultaneously so you can see these functions will need to be executed simultaneously so that's good because we save time right and then the response from those functions will be collected and passed on from the assistant to the user so basically I hope you kind of understood this this is very simplified but it's not much more to say really I think we just going to go straight to an example and then we go back to the code a bit and then we do more examples so we kind of get the grasp of this and we can really see how functionable and dynamic this is right so just to show you how this works now let's just enter our message so we're just going to go with the find the best pizza place in New York and the weather so I just hit enter so this is kind of the user query right and now the assistant is going to look at the functions we have and you can see we use something called tool calls here so you can see we are going to search for best pizza place in New York and we're going to use the get organic result that's a Google Search and we're going to search for New York and get weather so here the kind of the assistant picked out um kind of the functions we need to execute on this user query and here we got the results backs that was quite quick right so you can see we have four different lead in here and as for the weather in New York the temperature is at 0.3 CI with clear sky it sounds like a good time to enjoy Pizza indoors that was a bit funny so we can click on these links okay where to find the iconic pizzas let's try this one okay 29 best pizza places in New York so this clearly works right so you can kind of see how simple this was to set up and it's very dynamic because it adjusts what the user types in looks for what functions can we use and you can see here it runs them in like parallel so it doesn't do it in a series it just goes and does everything at once it can even call like Google with the Google function two times if that's the best solution right so I just thought it was good to start off with this example so you kind of get the grasp of what a code is going to do so I think we going to head over to the python code now and try to explain a bit what is happening and then we're going to do more examples because we can create images we can do other cool stuff too so yeah let's uh hop over to the python code okay so like I mentioned we have four different functions right so you can see the first one here this is basically just dolly3 we can call this to generate an image here is the get weather function this is just a free API we can use open weather map here is the function to use Google search this is from Ser API and here you you can see we have get chat response here we actually can call gp4 to help us write stuff so you're on helpful assistant help the user with writing so this is we can kind of call gp4 inside gp4 if you know what I mean and we can set our own system message for this so that is basically why I put that in and here we have the tools this is a list of tools we have available we know this now these are four functions so Google search Dolly and get the weather and get chat response so these are the tools that are available for the assistant right and the first step is to of course create assistant uh we gave it a name parallel function we gave it like some instructions so you're an assistant capable of fetching news articles I could have said capable of searching Google right I think that's better generating images providing weather writing based on user queries and here we select the newest model tools equals list tools and I just added some colors because that's better easier to see we need to start a thread so this is from the assistance API documentations we start a thread we need to add a message to the thread so this is kind of the user input so the enter message part right and then we need to run it so we just going to run the assistant so I think I put up like a small flow shart of this let me just quickly show you okay so I don't know how good you can see this but kind of I wanted to so you can see import libraries read the files and here we come to the uh run assistant so it's going to monitor the Run status and if the run is completed then we're going to retrieve and print the response from the uh assistant but uh if it's not completed uh if it has to if the Run requires an action this is kind of executing the functions right so it first has to identify what actions needs to be taken so this could be yeah doing a Google search creating an image and it's going to submit the outputs from the tools we used right so of course all these action has to be completed before the run is complete and if the assistance is processing we just going to wait and print this waiting for assistant to process and we got to continue monitoring so this this has to be completed before we kind of get to this output so we just keep monitoring until the assistant has executed all the functions we required and then kind of the script or the true Loop breaks and we get the response so this it's a bit annoying I know that but I I don't know how else to explain this yeah I like like I said this is just going to monitor until we are kind of ready to print the output uh I put this to Yellow here from the assistant but the interesting thing is that we can add loads of functions here I haven't checked how many but I think we can add much more and then you can kind of begin to see how Dynamic this can be uh let's say we add yeah like a code function I guess we have that with gp4 I don't have anything on my mind right now but let's say we add 10 more functions then we can get really Dynamic so we are definitely going to try that out someday but uh today I think these are fine so I think we just going to run a few more examples now try to trigger all the functions at the same time test some different stuff and yeah just to see how we end up and you can kind of see how Dynamic this is going to be now okay so let's start off by trying to trigger all the four function so hello I am traveling to La I need the weather an image of the Hollywood sign best sushi place and write an email from Chris to Julie telling her about La okay so this SL has the opportunity now to call the weather function the do E3 function the Google search function and like the GPT 4 function if it needs to it also has the ability to write with just the assistant so it doesn't have to call the gb4 function we'll see okay that was pretty quick so you can here requires action so all of these are in parallel so we're going to Tool calls we're going to search for La that is going to be for the weather yeah that's good uh Hollywood sign in LA with clear blue sky in the background that is going to be the dolly function that's good uh Google search function best Su place in La okay so we didn't actually call the dpd4 function but I think the assistant has the opportunity to write also so they could just solve it that way so let's just this process and check out the results okay that wasn't too long maybe 30 40 seconds here's the information you need for a trip to LA weather as of now the weather is clear skies 11° C here is an image of the Hollywood Sign Hollywood misses an L but I guess it's an image all right and here is the best sushi places in La so we can La eater okay the 20 essential sushi restaurants in La we get the map holy Woodland Hills okay pretty cool and yeah we got some other suggestions too lastly let's craft an email from Chris to Julie I hope this email finds you well I couldn't wait to tell you about the fascinating Aura of La the weather here is generously clear skies with almost every day uh okay so it didn't mention the temperature I additionally included some exceptional culinary experiences particular with sushi so it kind of takes off from the other other searches we did and try to incorporate that into the mail that's pretty cool La boats an array of sushi joints racing from Coy to high-end establishments looking forward to sharing more stories once I'm back warm regards Chris all right I guess this was kind of perfect it asked it did everything we asked for right wrote the email find the sushi places sign and the weather pretty good pretty good now let me try to call like multiple functions so let me just clear this so let's go with the I am going to Paris create an image of the three most popular tourist attractions so of course it's going to call the dolly function maybe it's going to call a Google function I'm not quite sure so let's just see here okay so it's going to call the doll e function once twice okay so it's just going to call it three times so the first is going to be the Eiffel Towers in Paris the L Museum in Paris okay good and the nraam De Paris front view all right this looks pretty good so this will get the three most popular tourist attractions so I guess he kind of already knew that from the uh gp4 engine it's running on right so let's just let this run and check out these three images okay so here we have the images the Eiffel Tower the L and the cathedral so let's have a look at them uh okay here's the Eiffel Tower beautiful the mum huh that didn't work that was strange and the kri okay so something wrong with but I guess kind of shows out what you can do that was a bit strange but let's just remove this okay so yeah you can see it can create three images at the same time and it didn't take too long I would say like 30 seconds maybe a bit more let's try something else I am doing some research on London aka the year 1600 can you write two paragraphs about the most important happenings also include some imag for my piece so here I don't specifically tell it how many images I want uh I haven't tried this so let's just see what happens so first we're going to check out what kind of functions it's going to call here of course it's going to be the dolly function and it's going to be the doly function and that's about it okay so it's going to do the internal writing here with GT4 all right we got something here in the year 1600 London was experiencing period of growth and cultural flourish Queen Elizabeth I William Shakespeare and Christopher Marlo captivated audience in the Globe Theater and other venues okay yeah and it goes yeah it WR a pretty good stuff about the London here from the year 1600 and here is kind of the image so this is showcasing the bustling cityscape the Globe Theater and the river chames all right so this is the globe I guess yeah that's not too bad pretty cool all right so that was pretty successful if you ask me let's uh try uh one more thing I need the coordinates to the biggest settlement in Antarctica the weather and an image of the settlement also search Google if they sell pizza there uh I couldn't make up anything else so let's see what happens here so we're going to call the weather McMurdo Station okay so we figured that out of course McMurdo Station the largest settlement in Antarctica that is our prompt for Dolly Pizza sale at McMurdo Station Antarctica we got to search Google for that all right let's hope they have some pizza there the largest settlement in antara is McMurdo Station here are the details requested so we get the coordinates yeah that looks good we could have search those up but I'm going to trust it the temperature now is minus 17° here's an image of it all right I can't confirm or deny and what about the pizza what is This MC Muro Pizza I don't know I don't know what this is I think we're just going to leave that for now but at least it tried I guess was there any other links let's try this one okay so here is the station so here it is and here is the image oh not bad that's not too bad but I don't think there's any pizza there but that's fine okay so I think we're going to call it there uh of course I didn't kind of showcase the best use cases for this today I just wanted to show you kind of how Dynamic this is and I found it really interesting like I haven't really wrapped my head around how Dynamic this is I know I said a dynamic lots of times in this video but that is the best word I could find for this and it can kind of adapt to what kind of functions you have so it kind of gets very good at using tools and yeah I don't know why I didn't think of this before how how functional this is that's another word but uh like I said before if you want to try this out yourself you can just support me by becoming a member in the link below and I will give you access to the GitHub you can download the code or you can just look at mine and try to copy it that's fine too I'm just here to kind of give you some ideas and I also want if you have any great use cases for this uh please leave a comment and I can try it out uh because I haven't really explored that yet so many people if people what and to so I haven't really explored that yet uh but I think that's it for today like I said really happy with this and I'm definitely going to explore it more so look out for that uh have a great day and I see you again yeah probably on Sunday maybe before\n"