0% found this document useful (0 votes)
6 views2 pages

AI Chatbot for PDF Files Offline

Uploaded by

saifulmallik4343
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

AI Chatbot for PDF Files Offline

Uploaded by

saifulmallik4343
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Chat with Your PDF Using AI – Python +

LangChain + Local LLM with Flask UI


This project demonstrates how to create a local AI chatbot that can read and answer
questions from PDF files. Using Python, LangChain, a local LLM (GPT4All), and Flask for the
web interface, you can upload any PDF and start chatting with it – all offline, without using
any third-party APIs.

🎯 Features
• Upload and preview PDF files.

• Ask questions about the PDF and get contextual answers.

• All processing is done locally with no internet or API required.

• Real-time typing effect for responses.

• Clear chat functionality.

Tech Stack
• Python 3.10+

• Flask

• LangChain

• GPT4All (local model)

• FAISS (for vector similarity search)

• HuggingFace Sentence Transformers

• HTML + CSS + JavaScript

🚀 Installation Steps
1. Clone or download the project folder.

2. Install dependencies:
pip install -r [Link]

3. Download the local LLM model (e.g., [Link]) and place it in the
models folder.
4. Run the Flask app:
python [Link]

5. Open your browser and visit [Link]

📁 Folder Structure
project/
├── [Link]
├── uploads/
├── models/
│ └── [Link]
├── static/
│ └── [Link]
├── templates/
│ └── [Link]
└── [Link]

📌 Note
This system works completely offline. However, initial model download (GPT4All) and
dependencies like HuggingFace models may require one-time internet access.

🔗 Credit
Made with ❤️by [Link] – AI Projects, Source Code, and Video Tutorials.

You might also like