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 https://app.papercups.io/bot/demo

with the source code for the backend https://github.com/papercups-io/papercups-simple-chatbot

the source code of the client side is https://github.com/papercups-io/papercups/blob/master/assets/src/components/demo/BotDemo.tsx

Would love any feedback!

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