PDF-Chatbot / README.md
JeeKay's picture
Added configurations to the readme file.
046e488 verified

A newer version of the Streamlit SDK is available: 1.56.0

Upgrade
metadata
title: PDF Chatbot
emoji: πŸ“„
colorFrom: green
colorTo: red
sdk: streamlit
sdk_version: 1.45.1
app_file: app.py
pinned: false

PDF Chatbot with LLaMA

Python 3.12 License Streamlit PyTorch Transformers

Overview

A powerful PDF chatbot application that allows users to upload PDF documents and ask questions about their content. Built with Streamlit for the frontend and leveraging LLaMA-based models for natural language processing, this application provides an intuitive interface for document-based question answering.

Features

πŸ“„ Upload and process PDF documents

πŸ’¬ Chat interface for asking questions about document content

⚑ Fast response generation using LLaMA-based models

🧠 Context-aware answers based on document content

🎨 Clean, user-friendly interface

πŸ” Sample PDF with demo questions included

Installation

  1. Clone the repository:
git clone https://github.com/Muzenda-K/PDF-Chatbot.git
cd pdf-chatbot
  1. Create and activate a virtual environment (recommended):
python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Run the Streamlit application:
streamlit run app.py
  1. The application will open in your default browser at http://localhost:8501
  2. Either use the provided sample PDF or upload your own document
  3. Start asking questions about the document content

Project demo

Demo

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License.