PDFs to Bot: Empowering Chatbots with Custom PDFs Knowledge Using LLM

Published:

PDFs to Bot: Empowering Chatbots with Custom PDFs Knowledge Using LLM

Table of Contents

About the Project

PDFs to Bot is a chatbot question answering application designed to empower users with customized knowledge extracted from uploaded PDF documents. Leveraging the capabilities of free embedding and the LLM from Hugging Face, specifically the instructor text embeddings and the FLAN-T5 LLM model. The user-friendly interface is built using Streamlit, ensuring a seamless and intuitive experience. Powered by the Langchain framework, PDFs to Bot delivers tailored responses and enhances document accessibility, making it a versatile tool for various knowledge-driven applications.

Setup

  1. install the dependecies needed
    pip install -r requirements.txt
  2. Add yout huggingface API key to the .env file in your directory
    HUGGINGFACEHUB_API_TOKEN=your_secrit_api_key

Usage

  1. Ensure that you have installed the required dependencies adn added the huggingface API key to the .env file
  2. In the terminal, run this command:
    streamlit run app.py
  3. The app will launch in you default web, displaying the UI
  4. Upload your PDF
  5. Ask the question!

Shoutout!

Special thanks to Alejandro AO for being an invaluable source of knowledge and guidance in helping me learn more about LLM and its applications. Be sure to check out his informative content on his YouTube channel

Know more about me!

github repository: This project’s repository link
linkedin: linkedin.com/in/mhamidasn
github: github.com/mhamidasn

Check my other project here!

🌌Here's to pushing boundaries, unraveling mysteries, and creating a future woven with the threads of innovation🌌