Building a chatbot with google’s universal sentence encoder (Open Source)

Original article was published by /u/notreallyhungryhippo on Deep Learning

Hi everyone,

I recently built a simple chatbot with Google’s universal sentence encoder using it as a sentence embedding and finding the best response with cosine similarity. I wrote about it a bit more in my blog post. I tried to simplified some of the explanation since I had trouble understanding embeddings when I first learned it

You can also play around with the chatbot by feeding it your own questions and answers

with the source code for the backend

the source code of the client side is

Would love any feedback!

submitted by /u/notreallyhungryhippo
[link] [comments]