notunderctrl / gpt-3.5-chat-bot

Simple Discord chat bot built using the GPT 3.5 Turbo Model from OpenAI
https://youtu.be/CB76_GDrPsE
123 stars 122 forks source link

MongoDB Integration #3

Open instax-dutta opened 1 year ago

instax-dutta commented 1 year ago

can you make a mongodb integration for it so that it can save the responses and retrieve responses of repetitive questions/chats from the db instead of calling the api all the time ?

NanduWasTaken commented 1 year ago

Why do you want that really what's the problem with calling the api all the time?

RobinsonMario commented 1 year ago

Why do you want that really what's the problem with calling the api all the time?

Maybe because of performance so that the replies are given faster. But I see a problem here because if the AI gives a wrong answer once, it will give this wrong answer all the time.

NanduWasTaken commented 1 year ago

Why do you want that really what's the problem with calling the api all the time?

Maybe because of performance so that the replies are given faster. But I see a problem here because if the AI gives a wrong answer once, it will give this wrong answer all the time.

How about making a refresh command so that all the past message of the user does not get involved in the conversationlog array resulting the bot to tell a fresh new reply( but I doubt it will ever happen )