Back

Chatbot



A chatbot is a software application designed to simulate and process human-like conversations. It allows users to interact with digital systems through text (and sometimes voice) as if they were speaking to a real person. It’s a program designed to understand and respond to your messages, whether you’re typing or speaking. For example, Chatbots on shopping websites help you find the perfect product.



Implementation Steps


The below Chatbot was implemented using a Text2Text Generation model 'FLAN-T5 base' from Hugging Face website
Model: google/flan-t5-base

This model can be found here.

1. Get the API key from Hugging Face Website.
2. Integrate Hugging Face API to the application
3. Pass the text entered to the Chatbot model using API call, which returns back the result as text.

Example


Please try out this Chatbot by asking any questions:

As you can see above, the responses from this Chatbot may not be very accuarte. This is because the Flan-T5 is fine-tuned on a large corpus of text data that was not filtered for explicit content or assessed for existing biases. As a result the model itself is potentially vulnerable to generating equivalently inappropriate content or replicating inherent biases in the underlying data.