Finally! How to Leverage JSON Mode in OpenAI's New GPT 4 Turbo 128k

  Рет қаралды 6,685

Silicon Society

Silicon Society

Күн бұрын

‪@siliconsociety‬ Lead AI Engineer Robert Sharp shows how to use OpenAI's new GPT-4 Turbo 128 with JSON mode.
We'll be posting more pro tips as we go-if you liked this, please do like the video to appease The Algorithm, and subscribe if you're interested in more 🙂

Пікірлер: 23
@ExplodeReality
@ExplodeReality 9 ай бұрын
This is exactly what I was looking for, thanks!
@stefanrows2589
@stefanrows2589 8 ай бұрын
Cheers. That was helpful. I'm surprised they aren't as clear about these instructions in their documentation...
@faustoalbers6314
@faustoalbers6314 10 ай бұрын
Very inspiring! I reversed your approach to make it create JSON objects with predefined pydantic classes from unstructured text data. The pydantic example guarantees that only the data that is ‘fitting the slots’ is extracted. Added to it, instructions to reason about the most probable information that is not present in the source data, but can be deduced from what it did found! Thanks!
@Zach-rw6jf
@Zach-rw6jf 8 ай бұрын
Awesome! I'm in the process of doing something similar and trying to figure out the best way to get my output as consistent as possible. Will definitely look into using a method like this!
@Bangs_Theory
@Bangs_Theory 10 ай бұрын
Excellent tutorial, thank you. Please provide more.
@BangaloreYoutube
@BangaloreYoutube 7 ай бұрын
What a video, comments section also super helpful. Cheers everyone.
@JT-Works
@JT-Works 10 ай бұрын
Great tutorial, I am surprised you don't have more subscribers.
@adrianobleton
@adrianobleton 11 ай бұрын
This is great! I have been working on a project that needed json output from open API, and was describing the json object in the system prompt. Similar to what you saw it works most of the time, but fails ~5%. I was solving that by making the call again if the output couldn't be parsed, but that eats up a lot more tokens. This seems much more elegant.
@bqmac43
@bqmac43 10 ай бұрын
I was in the same boat. This new approach gives me tons more confidence in the outputs.
@jakeejacobson
@jakeejacobson 11 ай бұрын
very cool, I am using JSON schema to create the structure in the prompt but pydantic looks cool. also wondering if you can just use function calling for this, as you have to define a JSON schema for the function. have you tested the differences between JSON mode and function calling?
@apisindica168
@apisindica168 3 ай бұрын
Wow, so inspiring. Thank you so much
@mikulcek
@mikulcek 7 ай бұрын
You need to start making more content. 👍
@AiTaughtMeHow
@AiTaughtMeHow 10 ай бұрын
great idea, this helped me so much
@Mhmdmine
@Mhmdmine 8 ай бұрын
Whats the difference between using JSON Mode and function calling since both extract structered data? which is more accurate and viable? thanks for the pydentic tip btw
@Steve-Richter
@Steve-Richter 11 ай бұрын
Ask the AI agent to check and increase your font size.
@BangaloreYoutube
@BangaloreYoutube 7 ай бұрын
Yeah fr. Had to play the video on my TV
@KabobTech
@KabobTech 4 ай бұрын
Excellent video!
@chaozhang4751
@chaozhang4751 10 ай бұрын
very helpful, the way to get structured output from gpt API. Just wondering if it supports nested object, such as graph structure G(V, E) with nodes and edges?
@gingerjiang666
@gingerjiang666 10 ай бұрын
This is so cool. Thanks for sharing.
@mostafamoustaghni6980
@mostafamoustaghni6980 9 ай бұрын
I really want to see if this is better way than functions calling?
@akshatkant1423
@akshatkant1423 6 ай бұрын
Hi, i also need to get a json response from the open ai api from my project, the json is kind of big with around 5082 tokens, so after some time the response is gibberrish and completely unrelated to with what it started, do you think there are some alternatives to my problem and if any solution is there
@adityashinde436
@adityashinde436 10 ай бұрын
How can i make user_prompt dynamic, meaning instead RPG as input I want to send some other input?
@GjbnnncngXjkggvcbj-g9h
@GjbnnncngXjkggvcbj-g9h Ай бұрын
Anderson Mary Hall Matthew Martin Amy
Abstract Classes & Interfaces
8:42
Michael Zhao
Рет қаралды 18
OpenAI Assistants API coding tutorial
17:27
Ralf Elfving
Рет қаралды 45 М.
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,2 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 79 МЛН
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 29 МЛН
Polymorphism Code Along Recording
43:25
Brown CS15
Рет қаралды 32
Pydantic is all you need: Jason Liu
17:55
AI Engineer
Рет қаралды 180 М.
Returning consistent/valid JSON with OpenAI/GPT
4:32
Learn Data with Mark
Рет қаралды 14 М.
How I Made AI Assistants Do My Work For Me: CrewAI
19:21
Maya Akim
Рет қаралды 850 М.
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,2 МЛН