No video

Returning consistent/valid JSON with OpenAI/GPT

  Рет қаралды 13,475

Learn Data with Mark

Learn Data with Mark

Күн бұрын

In this video, we'll learn how to return a consistent/predictable/valid JSON response to a sentiment analysis prompt using OpenAI.
Blog post - www.markhneedh...
Notebook - github.com/mne...

Пікірлер: 28
@WeiZhou-j5g
@WeiZhou-j5g 8 күн бұрын
Amazing video and content, more openAI videos pls 🙏
@learndatawithmark
@learndatawithmark 8 күн бұрын
Any particular topics?
@naimurhasanrwd
@naimurhasanrwd 5 ай бұрын
This video is super helpful and saved my full day.
@Notigam
@Notigam 3 ай бұрын
This video is amazing, very illustrating example. Just commenting to help get it more attention.
@learndatawithmark
@learndatawithmark 3 ай бұрын
Thanks for your kind words!
@garyjehan8918
@garyjehan8918 6 ай бұрын
Awesome, simple & sharp thanks !
@arkimphiri
@arkimphiri 3 ай бұрын
Super helpful, thank you so much, I was stuck and this helped a lot.
@learndatawithmark
@learndatawithmark 3 ай бұрын
Glad it was useful!
@vikrantkhedkar6451
@vikrantkhedkar6451 2 ай бұрын
Helpful
@knotfoursail6404
@knotfoursail6404 Жыл бұрын
Cool! Didn't even know functions existed 😅. Thanks for the awesome video 👍
@learndatawithmark
@learndatawithmark Жыл бұрын
It was my first time using that functionality too. I think I should probably work out how to use them properly now!
@user-rg4qr4hs5b
@user-rg4qr4hs5b 10 ай бұрын
works like a charm! Thank you so much!
@angeloliver2825
@angeloliver2825 10 ай бұрын
thx so much from Paraguay
@dvnivl9204
@dvnivl9204 7 ай бұрын
appreciate it, thanks!
@leoscott4632
@leoscott4632 Жыл бұрын
nice video
@learndatawithmark
@learndatawithmark 11 ай бұрын
Thanks!
@nicolasbiurrun3549
@nicolasbiurrun3549 4 ай бұрын
Hi! I'm a bit stuck here, how would I be able to instead of feed the function with a list of reviews feed it with a dictionary with an id_review linked to the review? That'd be very useful, thanks in advance and great job!
@learndatawithmark
@learndatawithmark 4 ай бұрын
Can you explain what you want to do a bit more? Email it to me if it's easier - m.h.needham@gmail.com
@ryuzlix4424
@ryuzlix4424 7 ай бұрын
thanks man
@justingiovanetti
@justingiovanetti 10 ай бұрын
Clever stuff
@lol14132
@lol14132 8 ай бұрын
you are so human. - googi
@dato007
@dato007 7 ай бұрын
To the point. Nice. What do u think of pydantic now? Or the updated gpt to output json?
@learndatawithmark
@learndatawithmark 7 ай бұрын
I haven't tried either of those yet. Do they work as well as the function approach?
@michaelhunger6160
@michaelhunger6160 11 ай бұрын
Did you try to put the instructions about the JSON output into the system prompt? Also it helps sometimes to threaten the model that people will get hurt or kittens if it doesn't follow instructions :)
@learndatawithmark
@learndatawithmark 11 ай бұрын
I did try that and most of the time it would work, but occasionally it'd go rogue!
@DANNYEL20122
@DANNYEL20122 11 ай бұрын
Can we get link to the code please 😊
@learndatawithmark
@learndatawithmark 11 ай бұрын
All the code is in the blog post - www.markhneedham.com/blog/2023/07/27/return-consistent-predictable-valid-json-openai-gpt/ And the notebook is here - github.com/mneedham/LearnDataWithMark/blob/main/json-gpt/notebooks/SentimentAnalysis.ipynb
@DANNYEL20122
@DANNYEL20122 11 ай бұрын
@@learndatawithmark thank you
Why OpenAI's new Structured Outputs feature is awesome!
5:50
Learn Data with Mark
Рет қаралды 1,5 М.
GPT function calling in a nutshell
15:36
Henrik Kniberg
Рет қаралды 43 М.
Throwing Swords From My Blue Cybertruck
00:32
Mini Katana
Рет қаралды 11 МЛН
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 457 М.
Mind-maps and Flowcharts in ChatGPT! (Insane Results)
13:05
AI Foundations
Рет қаралды 337 М.
How to access LLMs from hugging face? (Practical Demo)
7:02
AI Researcher
Рет қаралды 2,7 М.
Running a Hugging Face LLM on your laptop
4:35
Learn Data with Mark
Рет қаралды 72 М.
Running Mistral AI on your machine with Ollama
6:25
Learn Data with Mark
Рет қаралды 15 М.
Finally! How to Leverage JSON Mode in OpenAI's New GPT 4 Turbo 128k
14:10
Claude 3.5 Sonnet vs GPT-4o: Side-by-Side Tests
25:10
Patrick Storm
Рет қаралды 123 М.
How I'd Learn AI (If I Had to Start Over)
15:04
Thu Vu data analytics
Рет қаралды 791 М.
Throwing Swords From My Blue Cybertruck
00:32
Mini Katana
Рет қаралды 11 МЛН