Conversing with AI - Build a Chatbot

Chatbot UI you'll build in this tutorial

Chatbot UI you'll build in this tutorial

In this tutorial, you will learn how to build a chatbot along with an UI using Streamlit - running 100% locally. We’ll use a local language model that has access to a list of files and can answer questions about them. You’ll learn how to parse PDF files and pass their content (along with text and markdown files) to the chatbot.

Tutorial Goals

In this tutorial, you will:

  • Parse PDF files and extract their contents
  • Pass your local files as knowledge base to your chatbot
  • Create and manage chat history
  • Create UI for the chatbot using Streamlit

Project Setup

MLExpert is loading...

References

Footnotes

  1. CogVault on GitHub

  2. Ollama

  3. pypdfium2

  4. Streamlit

  5. DeepSeek R1