guidov / AskPDF

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:Python 74.0%Language:Jupyter Notebook 26.0%