Skip to content

Ask Your PDF is a Python application that allows users to ask questions about PDF documents and get answers using OpenAI. The application uses the PyPDF2 library to extract text from PDF documents, the Langchain library to split the text into chunks and create embeddings, and the Streamlit library to create the user interface.

Notifications You must be signed in to change notification settings

SimonMagusPY/AskPDF

Repository files navigation

Ask Your PDF 📃

This is a Python application that allows users to ask questions about PDF documents and get answers using OpenAI.

NB

Current implementation is using text-davinci-003 ( next iteration will be using chat-gpt API , reducing cost.

Getting Started

Prerequisites

  • Python 3.7 or later
  • Streamlit
  • PyPDF2
  • Langchain

Installation

  1. Clone the repository

    git clone https://github.com/SimonMagusPY/AskPDF.git
  2. Install the required packages:

    pip install -r requirements.txt

Usage

  1. Run the app:
    streamlit run app.py
  2. Upload a PDF file.
  3. Ask a question about the PDF document.
  4. Get the answer from the OpenAI model.

Contributing

Contributions are welcome! If you have any suggestions or find any bugs, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Ask Your PDF is a Python application that allows users to ask questions about PDF documents and get answers using OpenAI. The application uses the PyPDF2 library to extract text from PDF documents, the Langchain library to split the text into chunks and create embeddings, and the Streamlit library to create the user interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published