-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add "hello there" to introductory words list for better greeting… #198
base: master
Are you sure you want to change the base?
fix: add "hello there" to introductory words list for better greeting… #198
Conversation
@AritraDey-Dev is attempting to deploy a commit to the Pratik0112's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @AritraDey-Dev, Welcome to 💖TelMedSphere !!! 🎊
Thanks for raising a PR! Your effort makes this project better. 🙌
Please wait for the PR to be reviewed.
Happy Coding!! ✨
Hi @AritraDey-Dev, you have update the INTRO_WORDS list which could improve the responses but it will still not fix the issue. |
Refer |
Hi @AdityaBavadekar , I’ve implemented the suggested change by adding a system prompt as the first message in the array. This will now provide the model with the necessary context and instructions for more accurate and relevant responses. Let me know if there are any further improvements needed! |
} | ||
|
||
const updatedMessages = [...messages, newMessage]; | ||
const updatedMessages = [systemMessage, ...messages, newMessage]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it will be added to updatedMessages
directly it will be displayed in UI chat box, but the system message is just for model context and not for the UI.
That is why I suggested to add it in chatMessages
from processMessageToGemini
method.
Test the changes locally also. |
Fixes Issue 🛠️
Closes #166
Description 👨💻
Added
"hello there"
to the list of introductory words in theINTRO_WORDS
array to ensure the chatbot detects the phrase and responds appropriately. This improves the chatbot’s greeting functionality, particularly for users typing"hello there"
.Type of Change 📄
Checklist ✅
Screenshots/GIF 📷
N/A (No UI changes, functionality improvement only)