polakowo / gpt2bot

Your new Telegram buddy powered by transformers
MIT License
429 stars 107 forks source link

Learning mode #12

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi,

Hope you are all well !

I was wondering if it is possible to add a learning mode to gpt2bot too ?

I found this example but the code is not really as neat as yours ^^.

Thanks for any inputs or insights on that that question.

Cheers, X

polakowo commented 4 years ago

I can't fully understand what learning mode is, the code is a little bit of a mess. The model in this example doesn't learn anything new, it simply adds some context prior to the dialogue.

ghost commented 4 years ago

That's what I though while testing it... Thanks for the confirmation :-)

I guess that a learning mode could be added with a separate skill by using something like https://deeppavlov-agent.readthedocs.io/ with https://github.com/deepset-ai/haystack for the QA system.

Have you ever tested those stacks ?

I would be curious to see what kind of results it gives, as I tested haystack with fairly good results so far, with gpt2bot+deeppavlov agent+haystack

Another (sorry if a dumb one!!! ^^) question, is it possible to apply reinforcement learning to a chatbot ?

polakowo commented 4 years ago

Can't comment on these tools as I haven't used them in this setting.

You may find papers training an RL agent for conversation. You would need to establish a reward function such as human likeness, answer coherence, etc. Can't tell whether it's effective though.

breadbrowser commented 2 years ago

https://machinelearning.veravandeseyp.com/

breadbrowser commented 2 years ago

https://parl.ai/