Building Chatbots with Python: Using Natural Language Processing and Machine Learning by Sumit Raj
Now that we have a token being generated and stored, this is a good time to update the get_token dependency in our /chat WebSocket. We do this to check for a valid token before starting the chat session. In order to use Redis JSON's ability to store our chat history, we need to install rejson provided by Redis labs. Next, we test the Redis connection in main.py by running the code below.Read more …