OpenAI Structured Output - All You Need to Know

  Рет қаралды 33,669

Dave Ebbelaar

Dave Ebbelaar

Күн бұрын

Пікірлер: 60
@JimMendenhall
@JimMendenhall 3 ай бұрын
Dude, thanks for being about the only person on youtube that goes beyond reading the press release!
@aiamfree
@aiamfree 3 ай бұрын
yea cause they’re mostly just reporters. A couple of devs but if you know who I’m talking about they’re just there for the hype and dgaf
@hatemjaber
@hatemjaber 3 ай бұрын
I love the full transparency and honesty, one of my favorite AI channels!
@IsaacMeisner-l2x
@IsaacMeisner-l2x 3 ай бұрын
Was excited to see the blog post, even more excited to see Dave uploaded a video about it!!
@maciej.wolosewicz
@maciej.wolosewicz 3 ай бұрын
Hi Dave! Thanks for next wonderful material. I really appreciate your work and a way you are explaining things. The best in class IMO. The small technical note - I noticed that there are some noticeable mouth clicks and harsh high-frequency sounds in the recording. It would improve the overall audio quality if you could address these issues. Keep up the wonderful job!
@daveebbelaar
@daveebbelaar 3 ай бұрын
Thanks and I will definitely look into this!
@therealjohnshelburne
@therealjohnshelburne 3 ай бұрын
Dude THANK YOU for the detailed explanation. I had no idea about pydantic
@WesleySilva-zr1yd
@WesleySilva-zr1yd 2 ай бұрын
Super interesting. I'm captivated by structured output. It would be great if you had a comparison between methods/frameworks. It seems that Instructor is still the best.
@bigdlamz
@bigdlamz 3 ай бұрын
Excellent video, I hope your channel grows to millions of subscribers!
@VivekHaldar
@VivekHaldar 3 ай бұрын
Great coverage and examples. Appreciated the comparison with Instructor. Thanks!
@sumitbindra
@sumitbindra 3 ай бұрын
Great job yet again! Would love a tutorial on using this new release for UI components.
@maxedvideo
@maxedvideo 2 ай бұрын
Wonderful explanation, straight to the point, thank you! Subscribed ✅
@faustoalbers6314
@faustoalbers6314 3 ай бұрын
Great content, I'm very curious to see how Instructor will utilize these updates
@MrMiguelaao
@MrMiguelaao 3 ай бұрын
Thank you! Very clear and helpful.
@viorelteodorescu
@viorelteodorescu 3 ай бұрын
Great stuff, just what I needed to make my project err a bit less
@catalincrisan4840
@catalincrisan4840 3 ай бұрын
Nice! Will give it a try, definitely. Thanks for sharing this.
@daveebbelaar
@daveebbelaar 3 ай бұрын
You're welcome Catalin!
@DavidDiazDev
@DavidDiazDev 3 ай бұрын
Awesome video Dave, thanks a lot!
@chrismachabee3128
@chrismachabee3128 3 ай бұрын
Excellent instructiion.
@artificialintelligencechannel
@artificialintelligencechannel 3 ай бұрын
This great and very hands-on
@BrockMesarich
@BrockMesarich 3 ай бұрын
Killing it Dave!
@daveebbelaar
@daveebbelaar 3 ай бұрын
Thanks Brock! 🙏🏻
@daffertube
@daffertube 3 ай бұрын
I love this channel
@Markyroson
@Markyroson 2 ай бұрын
What IDE is it that you are using? That's cool that you can step through it like that.
@HrishikeshSarma-k1c
@HrishikeshSarma-k1c 3 ай бұрын
Full machine learning project please 🙏
@brianmorin5547
@brianmorin5547 3 ай бұрын
Can you help me understand when or why I would ever use function calling now? If I get all of the necessary arguments in a structured output, I can make my own conditional logic on what functions to call and which arguments to send
@DangRenBo
@DangRenBo 3 ай бұрын
Vercel has already updated their AI SDK to support this. Example: const { object } = await generateObject({ model: openai('gpt-4o-2024-08-06', { structuredOutputs: true, }), schema: z.object({ recipe: z.object({ name: z.string(), ingredients: z.array( z.object({ name: z.string(), amount: z.string(), }), ), steps: z.array(z.string()), }), }), prompt: 'Generate a lasagna recipe.', });
@acanizares_
@acanizares_ 2 ай бұрын
Is possible to maintain the context with assistants and still using structured outputs Vía API? For several interactions with an assistant
@ahmadzaimhilmi
@ahmadzaimhilmi 3 ай бұрын
Haven't been able to make it work consistently using 4o-mini. Need to resubmit the response several times for it to work.
@noahjaffe3094
@noahjaffe3094 3 ай бұрын
Great video! I have a question about the API itself. I notice you are using the openAI client, rather than a python requests library call or the like. Is there a reason for this? I have seen some sources online recommend against using the client when possible because of dependency issues, but wondering where you stand on this. Thanks!
@daveebbelaar
@daveebbelaar 3 ай бұрын
Thanks! Either way is fine. The Python OpenAI client does have dependencies, but so has the API interface that gets an update every now and then. Just track your OpenAI pip version in the requirements.txt.
@CryptoMaN_Rahul
@CryptoMaN_Rahul 3 ай бұрын
Sir I'm working on my final year project there are 2 main modules in it 1) previous year paper detailed analysis system along with sample paper generation as per trends ,and study roadmap provider 2) notes generation module from textbook content I'm confused what to use where .. whether fine tuned llm , or RAG or anything other ? Can you please explain, it is for engineering students (1st -4th semester, each one has 6 subjects ), there are 7 different branches.
@Vimalnarain
@Vimalnarain 3 ай бұрын
Can we use these new updated with RUNS also where we are using multiple function calls?
@xugefu
@xugefu 2 ай бұрын
Thanks!
@daveebbelaar
@daveebbelaar 2 ай бұрын
Thanks!! 🙏🏻
@VanCliefMedia
@VanCliefMedia 3 ай бұрын
I could be very wrong her but as for using less than or equal within a call and pedantic, wouldn't it work the same as in instructor if you just create a class for that and then use those named variables?, they have an example in the documentation like what I put below. Or am i reading into it wrong? is that a different use case from what you were saying at 20:40? Love the video thankyou ! class Operator(str, Enum): eq = "=" gt = ">" lt = "
@MrAhsan99
@MrAhsan99 3 ай бұрын
This JSON scema thing is new to me? Did you write this manually? Isn't this difficult to learn?
@HerroEverynyan
@HerroEverynyan 3 ай бұрын
You can generate that JSON schema using Pydantic. He talks about that at 16:00
@MrAhsan99
@MrAhsan99 3 ай бұрын
@@HerroEverynyan Got it, Thanks
@mrlions420
@mrlions420 3 ай бұрын
Have you managed to get this working with batch processing? If you could make a video on structured outputs with batch processing I'd be eternally grateful
@nabeelkhaan
@nabeelkhaan 3 ай бұрын
Awesome Videos man
@PhotoshoppersStop
@PhotoshoppersStop 3 ай бұрын
Hi Bro, love your videos, need your advice on how to add memory in sql_agent? conversationbuffermemory is not good enough, Using langgraph can we have a tutorial? Thanks
@kanishkasah4383
@kanishkasah4383 2 ай бұрын
Error occurred: 'ChatCompletion' object is not subscriptable
@catalincrisan4840
@catalincrisan4840 3 ай бұрын
Hey Dave, was just trying it, but with Azure OpenAI... do you know if it works with AzureOpenAI or just with the direct client from OpenAI?
@daveebbelaar
@daveebbelaar 3 ай бұрын
The new model and API will probably be available in the next days (this is usually what happens with new releases)
@isfrank
@isfrank 3 ай бұрын
Lekker bezig, Dave! Goeie video weer. Kleine vrijblijvende tip; Je woorden met TH klinken wat 'droog'. (wat bij veel nederlanders zo is.) Een oefening die daarbij goed werkt is om je tong net over je tanden heen uit te steken en terwijl je je randje van je tong tegen alleen je boventanden houd, spreek je op 0,5x speed "this" en "that" en "these" uit, waarbij je je tong tegen je boventanden probeert te houden voor de hele T-sound, de H volgt daardoor automatisch. Elke dag even oefenen & mensen kunnen straks misschien niet eens meer horen dat je nederlands bent! Niet dat mijn Engels perfect is, maar toch zeker minstens zo goed als het jouwe 🤩 Niet dat ik hier kwam om je uitspraak te bashen 😂 maar deze tip heb ik zelf een keer gekregen en dat hielp mij
@SantiagoRobaina-xn1kk
@SantiagoRobaina-xn1kk 3 ай бұрын
Hey! Has anyone came up with this error message? AttributeError: 'Beta' object has no attribute 'chat' I'm using python 3.12.3 and openai 1.40.5
@GayathriG-h5h
@GayathriG-h5h 3 ай бұрын
How to use those with LCEL
@haralc
@haralc 3 ай бұрын
Is it just me or there's something in the audio that irritates my eardrums? 🤔
@Daytwoo
@Daytwoo Ай бұрын
Ya he needs to eq and compress his audio channel - the high end is accentuating his s’s and high end noise
@Solo2121
@Solo2121 3 ай бұрын
I'm not showing the 04_structured_output.py in the repo just fyi.
@daveebbelaar
@daveebbelaar 3 ай бұрын
Thanks for that! Something got stuck in git. Here's the link: github.com/daveebbelaar/openai-python-tutorial/blob/main/04%20Structured%20Output/04_structured_output.py
@DebiprasadGhosh
@DebiprasadGhosh 3 ай бұрын
gr8!
@Divyv520
@Divyv520 3 ай бұрын
Hey Dave, really nice video ! I was wondering if I could help you with more Quality Editing in your videos and also make a highly engaging Thumbnail and also help you with the overall youtube strategy and growth ! Pls let me know what do you think ?
@edendjanashvili2963
@edendjanashvili2963 3 ай бұрын
How can this be done with Langchain?
@catalincrisan4840
@catalincrisan4840 3 ай бұрын
I think it can't yet. Have a feeling is working only by using Open AI API directly
@magicismagic123
@magicismagic123 3 ай бұрын
Can someone explain to me like a kid. (honest qs) What's the purpose of openai structure output?
@viorelteodorescu
@viorelteodorescu 3 ай бұрын
Great stuff, just what I needed to make my project err a bit less
Building Reliable LLM Apps with OpenAI (Instructor Tutorial)
48:03
Dave Ebbelaar
Рет қаралды 11 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 6 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 4,5 МЛН
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 45 МЛН
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 285 М.
5 Steps to Build Your Own LLM Classification System
21:15
Dave Ebbelaar
Рет қаралды 11 М.
OpenAI Function Calling - Full Beginner Tutorial
28:24
Dave Ebbelaar
Рет қаралды 82 М.
Why I stopped using Jupyter Notebooks
11:17
Dave Ebbelaar
Рет қаралды 24 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 86 М.
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 495 М.
AI Pioneer Shows The Power of AI AGENTS - "The Future Is Agentic"
23:47
Improve RAG with This Simple API (code included)
16:53
Dave Ebbelaar
Рет қаралды 10 М.
OpenAI Assistants Tutorial for Beginners
27:03
Dave Ebbelaar
Рет қаралды 68 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 6 МЛН