Hi Parth,
There is only one solution. It has two parts in which you will implement 2
design patterns for the chatbot.
*Singleton* and *Observer*.
RE : Where would you use it?
nikola = Chatbot() # it is called instantiating the chatbot
Wherever it is required :P
The idea is to create one and
Thanks a lot for your reply !
In the first part of your reply. I didn't really understand where exactly
would I actually use this
nikola = Chatbot()
and in which files would I import it? Can you please elaborate on the
second solution a bit?
On Sunday, 19 May 2019 02:59:30 UTC+5:30, Chetan
What you need is to implement 2 design patterns in your django app. Which
ones?
1. *Singleton* Design Pattern for the Chatbot. All the users and all of
their sessions are using the same chatbot instance.
Why?
Because when a new session is created for a user, he will be referring to
the same
I am currently implementing a Chatbot purely in python.
In my current implementation, each time the user starts a new chat from a
session, another Chatbot instance is launched and hence the Chatbot starts
from the initial state.
I wish to change that behaviour and make it similar to let’s
4 matches
Mail list logo