mindriddler / discord-bot

Discord bot
GNU General Public License v3.0
2 stars 1 forks source link

Remember conversation #17

Open mindriddler opened 1 year ago

mindriddler commented 1 year ago

Right now the bot cannot remember conversations There was ways to fix this, will have to look into it

One solution is to store the history of a just in a python dict.. but i think that will be messy and also kinda bad.

The better solution would be to store the data in a small database,

Postgres? SQLite? MySQL? https://medium.com/@avra42/how-to-build-a-chatbot-with-chatgpt-api-and-a-conversational-memory-in-python-8d856cda4542

PapaPeskwo commented 1 year ago

Pinecone can solve this problem and provides an API https://www.pinecone.io/

mindriddler commented 1 year ago

Pinecone can solve this problem and provides an API https://www.pinecone.io/

Yeah, but since the free tier is gated behind a waitlist and the standard paid tier is quite expensive.. $70 per month as the cheapest option, which is way to much.

Also, I think it would be better to not be dependant on more things then what the bot already is (OpenAI and Discord)

Its an option, but I think some other solution, and cheaper, will be better.