New Wednesday, new Just KNIME It! challenge!
Are you ready to play with the super popular GPT large language models ? The this week’s challenge is for you!
Hone your API interaction skills and build components or data apps to communicate with one of OpenAI’s GPT models!
Here is the challenge. Let’s use this thread to post our solutions to it, which should be uploaded to your public KNIME Hub spaces with tag JKISeason2-11.
Need help with tags? To add tag JKISeason2-11 to your workflow, go to the description panel on the right in KNIME Analytics Platform, click the pencil to edit it, and you will see the option for adding tags right there. Let us know if you have any problems!
Let’s break the ice, here my first attempt:
Thoug using my free account I receive a 429 error, perhaps someone with a subscription can test.
Same as @morpheusTM
My free account keeps giving me 429 error. If some of you have account, please test this and let me know if there is any problems. It would be great helpful for me to understand API workflow.
I checked it with my API key, it works fine!
It was really great to know ! Thanks a lot !
This was my first time to insert GPT API in KNIME and I was not sure if it works well.
I really appreciate your feedback.
KNIME changed my world !
We are so very happy to hear this! Many thanks!
Happy to see it working! Tnx
This is my solution.
New message and ChatGPT response are additionally displayed in the tile view.
It would be helpful if the challenge did not require a paid account.
This one was hard and was SUPER FUN!!!
here is my solution:
I built a simple app (component) that works a little differently than ChatGPT itself, in that the chat history is not retained. It is one question at a time.
Thanks for this challenge: I learned a lot about REST API’s, which i typically get help with from our comp team when adding to workflows in daily work.
I hope you enjoy it!!! It’s very addictive! (or as the kids are saying, addicting…)
Here is my solution. So far it seems that everyone here used pretty much the same approach - thanks to very clear API description and examples by OpenAI.
However I decided to ask ChatGPT to solve this exercise, in my opinion I got quite a good advice:
Trying my bit … facing regular issue of too many values while i havent used the token limit.
@AnilKS ---- i am fascinating by your app header. time for some learnin’!!! thank you for sharing!
Sometimes I publish more than one solution in the wee challenges, today I published new one solution based on Python node and GPT-3: JKISeason2-11 ver 1.1 – KNIME Community Hub
It is necessary to install the OpenAI library on Python environment, then using the follow instruction:
pip install openai
The flow is concise, using Python:
and the exit is similar to my previous solution:
Haha we’re happy you found this one fun! We didn’t want to miss out on the trend.
Yet another nice looking solution by you!
We love it that you give challenges more than one go sometimes! Very creative.
I know, some people aren’t expert using JSON, then I create a new versión using XML: JKISeason2-11 ver 1.2 – KNIME Community Hub
The exit is the same like previous flows