This workflow issues POST requests to the OpenAI API, and uses the model that powers ChatGPT to create a chat dashboard.
This is a companion discussion topic for the original entry at https://hub.knime.com/-/spaces/-/latest/~L1Wc6IcyxchsP1SB/
This workflow issues POST requests to the OpenAI API, and uses the model that powers ChatGPT to create a chat dashboard.
Thank you Robert. I would not have been able to do that!
I still have a small improvement. The message does not support multi line input at the moment.
To make this possible I added a string manipulation (replace($user-message$, “\n”, “\n”)) in the chat dashboard, between node 1687 and node 1689.
Hello,
Thanks a lot for the nice Chat Dashboard! Is there any way to get the ‘Write your message’ box moving to the bottom of the page (where the last answer and the user focus resides)? Background: if my very first question leads to a long answer from ChatGPT then the answer box starts above the message box, continues in the background of the message box and shows up again below. In other words, the ‘Write your message’ box remains fixed whereas new answers from ChatGPT are added to the bottom of the page. Thanks a lot for any advice?!
All the best,
LittleJoe
Let me tag the author of the workflow, @roberto_cadili, for followup
Hi @LittleJoe thanks for your question .
However, I’m not 100% sure I’m getting what you’re asking. I’ve just tried the workflow, increasing the number of max tokens and asking questions that would require longer answers. As you can see below (case with very long answer and case with multiple medium-long answers), the “Write your message” box dynamically adjusts to stay consistently at the bottom of the dashboard.
Can you maybe expand on what your issue is and share a screenshot?
Happy KNIMEing,
Roberto
Hi @roberto_cadili,
My screen looks as follows:
You can see the overlap I described. I have to confess, however, that I disconnected/connected the widgets several times during investigation, since I wanted to add additional widgets for selecting prompt templates. But the CSS file is still the original one… I am using KNIME 4.6.4.
Thanks a lot for your support!
Have a nice evening,
Josef
Hi @LittleJoe thanks for the extra info and screenshot .
I was able to replicate the issue. I believe this is due to: KNIME version in which the workflow was created vs. KNIME version that you’re using to execute the workflow.
When you first imported the workflow in 4.6.4, you were warned with the following message:
While we make sure that workflows built in older versions are still executable in newer ones, the opposite can cause issues, some of which may be unexpected or hard to track.
What can you do?
Short-term (workaround - not recommended): if you can’t switch to the latest version of KNIME Analytics Platform, it looks like that enlarging the window size of the dashboard moves the “Write your message” box to the bottom and lets you see neatly the answer. This workaround seems to work fine if you are on a big screen and if you don’t have too many long answers - but it obviously has some limits. As soon as you’re on a laptop with a tiny screen, you are inevitably faced with the issue.
Long-term (recommended): Upgrade to the latest version of KNIME Analytics Platform. This brings many benefits, such as ability to run smoothly workflows created in older versions, new extensions, UI, bug fixes, etc.
Hope it helps,
Roberto