Building a Chatbot to answer questions about your CV

Building a Chatbot to answer questions about your CV

EDIT: I gave in and decided to replace the old chatbot with the OpenAI api. The capabilities of GPT-3 are so incredible and the price is so cheap that I decided to just go for it. Now the chatbot is a lot more interactive and a more fun experience.

 

[OLD]

I’ve recently created a chatbot to answer questions about my CV using ML. The goal of this chatbot is to provide an easy way for people to find out about my work experience by asking a chatbot.

 

The first model that was attempted was an open-source version of GPT-3 (BLOOM & T5 to be exact). However, due to the size of the model (10+ GB), it was not possible to fit it in an AWS Lambda function. Additionally, the model was unpredictable in its answers and often provided incomplete sentences, making it unreliable for this use case.

 

The second type of model I’ve used is extractive QA which is a lot more reliable for this task. This model extracts information from a given context based on the questions asked. However, it also has its shortcomings: It only provides short answers and requires the context to be comprehensive and in the correct format to cover all sorts of questions.

 

To deploy this model in a cost-effective way I’ve used AWS Lambda with + API Gateway. The infrastructure was deployed using Terraform and Docker was used to containerise the model.

 

Ultimately, the goal when designing a chatbot is to make it reliable for the specific task, particularly when it will be used in a business setting. This is why many chatbots may appear more straightforward and less engaging, as it is the best way to ensure that users will receive accurate and consistent responses.

 

Overall, creating a chatbot requires a thoughtful approach in choosing the right model and deployment strategy, as well as being aware of the trade-offs involved.

 

To try it out click on the robot head in the bottom right corner of this page.

Repo: cv-chatbot-repo

chatbot hugging-face React ML Terraform AWS