Simple chat bot using custom documents with langchain
With the ChatGPT and LLM craze going on, I set out to build a simple question answering bot, however the flavor I was interested in was a chatbot that can answer questions about a custom dataset that I point it to. Additionally, I wanted to try langchain - it turned out to be a great idea. Langchain is fantastic for exploratory and prototype work, and I highly recommend it. You can easily connect different solutions. In my example, I needed:
- A dataset composed of text files with information I want to query
- A way to narrow down the context for the LLM model to answer the question
- A way to feed the LLM model with the context and query and get the answer
Langchain basically provides all the necessary building blocks to do this. I’ll go through the steps I took to build a simple question answering bot.
Continue reading >