chatbot-leads.webp

<aside> 📱

App link:

https://huggingface.co/spaces/danielsuarez-mash/chat_with_your_document

</aside>

Introduction

One of the new skills data scientists and other tech professionals are learning is how to build a chatbot. The rise of large language models have increased the effectiveness of chatbots and thus many industries are adopting them for their employees and their customers to use. There are endless use cases for large language models. Some of the popular use cases people are developing are:

I was interested in the first two and started working on them last year (it’s taken a while to get this finished).

In a nutshell, instead of just providing a question to a chatbot, a technique called retrieval augmented generation (RAG) enables you to provide context + question. The ability to provide context means that you are able to ask questions about your own personal data. This leads to two interesting use-cases:

How do we build a chatbot like this?

Firstly, let’s run through the necessary tooling for this. We need 3 main tools:

and if you want a chatbot capable of querying documents, you’ll need