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-j5g8 күн бұрын
Amazing video and content, more openAI videos pls 🙏
@learndatawithmark8 күн бұрын
Any particular topics?
@naimurhasanrwd5 ай бұрын
This video is super helpful and saved my full day.
@Notigam3 ай бұрын
This video is amazing, very illustrating example. Just commenting to help get it more attention.
@learndatawithmark3 ай бұрын
Thanks for your kind words!
@garyjehan89186 ай бұрын
Awesome, simple & sharp thanks !
@arkimphiri3 ай бұрын
Super helpful, thank you so much, I was stuck and this helped a lot.
@learndatawithmark3 ай бұрын
Glad it was useful!
@vikrantkhedkar64512 ай бұрын
Helpful
@knotfoursail6404 Жыл бұрын
Cool! Didn't even know functions existed 😅. Thanks for the awesome video 👍
@learndatawithmark Жыл бұрын
It was my first time using that functionality too. I think I should probably work out how to use them properly now!
@user-rg4qr4hs5b10 ай бұрын
works like a charm! Thank you so much!
@angeloliver282510 ай бұрын
thx so much from Paraguay
@dvnivl92047 ай бұрын
appreciate it, thanks!
@leoscott4632 Жыл бұрын
nice video
@learndatawithmark11 ай бұрын
Thanks!
@nicolasbiurrun35494 ай бұрын
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!
@learndatawithmark4 ай бұрын
Can you explain what you want to do a bit more? Email it to me if it's easier - m.h.needham@gmail.com
@ryuzlix44247 ай бұрын
thanks man
@justingiovanetti10 ай бұрын
Clever stuff
@lol141328 ай бұрын
you are so human. - googi
@dato0077 ай бұрын
To the point. Nice. What do u think of pydantic now? Or the updated gpt to output json?
@learndatawithmark7 ай бұрын
I haven't tried either of those yet. Do they work as well as the function approach?
@michaelhunger616011 ай бұрын
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 :)
@learndatawithmark11 ай бұрын
I did try that and most of the time it would work, but occasionally it'd go rogue!
@DANNYEL2012211 ай бұрын
Can we get link to the code please 😊
@learndatawithmark11 ай бұрын
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