Skip to content

PDF Chat App: Chat with an intelligent chatbot powered by OpenAI, extract insights from PDFs, and get instant answers. Simplify PDF interaction with LangChain and Streamlit.

Notifications You must be signed in to change notification settings

Prince-Choudhury/PDF_Chat_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

PDF Chat App

Welcome to the PDF Chat App! This web application allows you to chat with a chatbot powered by the OpenAI language model. It is designed to extract text from uploaded PDF files and answer your questions based on the content of the PDF.

This app is an LLM (Large Language Model)-powered chatbot built using the following technologies:

  • Streamlit: A Python library that simplifies the process of creating web applications, ensuring a seamless and user-friendly experience.

  • LangChain: LangChain provides the natural language processing capabilities that empower the chatbot to understand and generate human-like text.

  • OpenAI LLM Model: The app harnesses the power of the OpenAI Large Language Model to provide accurate and context-aware responses in natural language.

Getting Started

Follow these steps to set up the PDF Chat App on your local machine:

Prerequisites

  1. Python: Make sure you have Python installed on your system. You can download it from python.org.

Installation

  1. Clone this repository to your local machine.

    git clone https://github.com/yourusername/pdf-chat-app.git
    
  2. Create a virtual environment (optional but recommended) for the project. You can use venv or virtualenv.

    python -m venv venv
    
  3. Activate the virtual environment:

    venv\Scripts\activate
    
  4. Install the required Python libraries from the requirements.txt file.

    pip install -r requirements.txt
    
  5. Create a .env file in the project directory to store your OpenAI API key. OPENAI_API_KEY=your-api-key-here

  6. Run the PDF Chat App using Streamlit.

    streamlit run app.py
    
  7. The app should now be running locally. You can access it in your web browser at http://localhost:XXXX.

Usage

  • Upload a PDF file by clicking the "Upload your PDF" button.
  • Wait for the app to process the PDF and create a searchable index.
  • Enter your questions about the PDF in the text input field.
  • The app will provide answers based on the content of the PDF.

Contributing

If you'd like to contribute to this project, please open an issue and discuss your ideas or create a pull request with your proposed changes.

Connect with Me

If you have any questions, suggestions, or just want to connect, you can reach me on:

Happy coding and keep practicing!

About

PDF Chat App: Chat with an intelligent chatbot powered by OpenAI, extract insights from PDFs, and get instant answers. Simplify PDF interaction with LangChain and Streamlit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published