OpenAI GPT-4 Function Calling: Unlimited Potential

preview_player
Показать описание
Function calling is a new capability for OpenAI's GPT-4 and GPT-3.5 via the API. Function-calling allows you to extract structured outputs from the GPT model.

Рекомендации по теме
Комментарии
Автор

His authentic happiness shows just how much of a bombshell function calling will be, and for them to nonchalantly release it is interesting.

princemars
Автор

Big love for you my bro. I remember when I was first introduced to Python in what you would call elementary school and I loved it. So I went home to watch your Python game tutorials (the tank one was my favorite, even tho I had no clue even what a quadratic was, somehow I got it to work lol). Completing those felt so rewarding and it really inspired me. Now I'm 19 and soon to be an apprentice at a software company which was my goal. Seeing this video from you after so long felt nostalgic and I'm so happy to see that you're still making videos. You make dreams come true you absolute legend.

finnbuhse
Автор

Wow this is what I always wanted! It was so cumbersome to get this functionality before. Now it's supported and reliable! Your idea of providing functions which don't exist is awesome, I would have never thought about that 😮

sciencelab
Автор

21:18 - THIS!! I've been reading blogs and watching videos about function calls wanting to really understand what all the fuzz was about and no one, NO ONE has highlighted this extremely important point more than you did. THANK YOU!!!

jzam
Автор

I actually made a system to do this back in April and it was a lot of work!! This is great. My system had a function with description, parameters etc and then vectorise the description, then when you could ask the bot to do a task and it would search the index for the closest match to the task and use ChatGPT to get the parameters from the original task and if it needed more requests it from the user. (I also had a loop to write a function if the function didn’t exist which for basic tasks worked about 80% of the time). It would then execute the function and return the result.

danielpaull
Автор

Been hoping to see a video on this new feature. Everyone is talking about the larger 16k context but not much mention about these intelligent functions. This is a game changer. Great explanation & great job!!

getgonged
Автор

This is actually very cool. It's definitely tough to constrain the response to something that can be reliably integrated into a system. It seems like with this new feature we can now directly pass these constrained responses into an api. Super cool.

jeffreycordova
Автор

This is how I imagine the programming in star trek. If you've ever watched the show and someone writes a program or a subroutine, I imagine their just putting in basic functions and descriptions and the computer turns it into actual code.

This is so cool and I am super hyped to see this evolve

illustratum
Автор

I'm using ChatGPT to make a choose your own adventure game, and this looks like a perfect way to get back JSON that is formatted correctly! I can get it correctly 70% of the time, but this looks perfect

alexdacat
Автор

Just want to thank you again for this awesome video. I’m a dev as well and I’ll be holding a presentation at my company on Friday, echoing a lot of the amazing points I learned in this video.

It really seems like people haven’t really understood how powerful this Function Calling feature really is. This video I feel is the only one where the true potential of this new tech is revealed, with how *any* kind of structured data can be generated using the almost magical smarts of these LLM systems.

dawid_dahl
Автор

This is EXACTLY what my business partner and I have needed for our project, can’t wait to implement this!

software_development
Автор

Slick. Much better than the, "Give me the results in the following json format {'foo':'bar'}" that was required before.
Im excited to try a set up 2 functions for input to gpt as well as output.

dirty_haute
Автор

Thanks for covering this. It's funny, I feel like simultaneously this opens up so many doors, but also I have no idea what those doors could even be. I find it really hard to think of applications for this kind of thing

BlueyMcPhluey
Автор

Looked at other videos then replayed yours. Finally clicked. Your stream of consciousness chatter and enthusiasm was tops.

bobsalita
Автор

I think you could probably have hundreds of functions stored somewhere in SQL or a vector database and use a search function (any algorithm really) to get the top X relevant/necessary commands. With this new feature you could even let the LLM write an array of queries to use for searching relevant commands. After that you would then pass that into the functions array with the prompt like you showed.

I know that would be an additional prompt, but in the long run, that would probably be cheaper than filling up the context size with all existing commands!

GoldnetGaming
Автор

Now the trick is to implement this into an assistant, and if the current input cannot find a function, we ask to program, to ask gpt4 to create this function syntax with the description and anything + the actual code that would execute this function, an auto-writing/evolutive AI assistant

redship
Автор

Dude - you continue to provide the best content for a technical audience. Can I give you money or something? It's been like 10 years of just binging your content and getting inspiration and training for so many great things.

jeffreycooper
Автор

Aww your genuine enthusiasm made this so much more engaging and entertaining :)

TeamUpWithAI
Автор

I gave it filesystem functions to write and read files and it can create multi-file applications from a single prompt now (with recursive prompting)

unconv
Автор

It should be possible to write a Python library that automatically extracts GPT function specs from functions with docstrings.

memespdf