Skip to content

chonguschonguschongus/PDF-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PDF Reader

Table of Contents

Description

This project levarages OpenAI embeddings and Langchain to train OpenAI's GPT model on your own PDF files. This allows us to ask questions about our own data and allow the large language model to analyse and answer us.

Features

  • Train ChatGPT's AI model on your own documents in seconds.
  • Extract salient information easily by asking questions.
  • Ask for summaries or specific information.

Setup

Requirements

  • Python 3.8+
  • Pip package installer for Python
  • Internet connection for downloading dependencies

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/chonguschonguschongus/PDF-reader.git
  2. Navigate to project directory

    cd PDF-reader
  3. Install the required dependencies:

    pip install python-dotenv streamlit PyPDF2 langchain chromadb
  4. Obtain your OpenAI API key

  5. Insert your OpenAI API key

    OPENAI_API_KEY = "YOUR_KEY_HERE"

Usage

Starting the PDF reader

Open terminal and run streamlit run pdfreader.py

Uploading your own documents

Click the "Browse files" button to browse locally and select your desired document.

browse button

Ask away!

Ask any questions you might have and the chatbot will reply you with information from your document!

example image

Acknowledgements

  • OpenAI for providing the GPT model.
  • Python Software Foundation for the Python programming language.

About

Train ChatGPT on your own documents!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages