lvyufeng/ChatPDF

Python

28

6 commits

updated May 19, 2024

See the code

README

ChatPDF

The ChatPDF(PDF Chatbot) is an application that allows users to upload PDF files and interact with pdf using a chatbot. Users can ask questions or provide input, and the chatbot will generate responses based on the provided information.

Technologies Used

  • MindSpore
  • MindNLP
  • ms2vec
  • msimilarities

Demo Video

Demo Video

ChatPDF

Installation

  1. Clone the repository:

    git clone https://github.com/lvyufeng/ChatPDF.git
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    

Usage

  1. Run the application:

    # complex version
    python simple_ui.py
    # complex version
    python complex_ui.py
    
  2. Access the application in your web browser as specified in the console.

  3. To preview a PDF file, click the "Upload PDF" button and select the PDF file from your local machine. The application will display a preview of the PDF file.

  4. Use the chatbox to ask questions or have a conversation with the chatbot. The chatbot will generate responses based on the input.

lvyufeng/ChatPDF

Python

28

6 commits

updated May 19, 2024

See the code

README

ChatPDF

The ChatPDF(PDF Chatbot) is an application that allows users to upload PDF files and interact with pdf using a chatbot. Users can ask questions or provide input, and the chatbot will generate responses based on the provided information.

Technologies Used

  • MindSpore
  • MindNLP
  • ms2vec
  • msimilarities

Demo Video

Demo Video

ChatPDF

Installation

  1. Clone the repository:

    git clone https://github.com/lvyufeng/ChatPDF.git
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    

Usage

  1. Run the application:

    # complex version
    python simple_ui.py
    # complex version
    python complex_ui.py
    
  2. Access the application in your web browser as specified in the console.

  3. To preview a PDF file, click the "Upload PDF" button and select the PDF file from your local machine. The application will display a preview of the PDF file.

  4. Use the chatbox to ask questions or have a conversation with the chatbot. The chatbot will generate responses based on the input.