Chit-Chat-Org / chit-chat-nextjs

Easily Integrate Your Chatbot into your website within few minutes
https://chit-chat.tech/
9 stars 13 forks source link

[Feature]Addition of logic for setting context for chatgpt #27

Open litesh1123 opened 4 months ago

litesh1123 commented 4 months ago

Is your feature request related to a problem? Please describe.** As project chit chat creating chatbot and leveraging chatgpt's potential It's crucial we use it to full extent When user will be able to set context for chatgpt it will perform outstandingly For ex-

I am developing web app for medical assistance than I would give chatgpt context imagine yourself as an expert in providing medical assistance I am developing webapp for law enforcement than context would be different in case of business queries it would be different hence context setting by user important would cater wide variety of users

Describe the solution you'd like

Would be using prompt template Would edit logic in backend accordingly

litesh1123 commented 4 months ago

@apurvjha123 please go through idea if u like it I would work on it ,this will add lot of weightage to project ,it would cater wide variety of organization

apurvjha123 commented 4 months ago

This feature can be added in advance setting option but our main goal is to provide chatbot, not something like chat with document or something like that

litesh1123 commented 4 months ago

@apurvjha123 I understood your idea of providing chatbot, but my opinion is imagine a businessman wants a chatbot in his business platform ,his business is related to medical field or anything in such case user can chat and get engaged . Another case think of student working in major project or hackathon where if they want to integrate chatbot powered by chatgpt in such case with help of your service it can be Integrated than setting context feature is very important

apurvjha123 commented 4 months ago

In my POV, I think Providing more flexibility over prompt to user might cause misuse.

here is prompt https://github.com/Chit-Chat-Org/Chit-Chat/blob/c1644adb462f19aceada7eb04800310dceb85051/utils/utils.js#L562

I think we can pass one string parameter to Prompt function which can change be change to from AI Assistant to any thing that user provide.

litesh1123 commented 4 months ago

Ya this may be an issue ,your suggestion are correct