New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

chat-with-pdf

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chat-with-pdf

Chat with PDF document

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

Chat with PDF

Chat with PDF is a command-line application that allows you to have a conversational question-and-answer session with an AI-powered chatbot based on the contents of a PDF document.

Installation

Install the npm Package

To install the Chat with PDF npm package globally, make sure you have Node.js and npm (Node Package Manager) installed on your machine. If not, you can download them from here.

Open your terminal or command prompt and run the following command:

npm install -g chat-with-pdf

Clone the Repository

To clone the GitHub repository, run the following command:

git clone https://github.com/animesharma3/chat-with-pdf.git

Usage

Command Line

  • Open your terminal or command prompt.

  • Set the OPENAI_API_KEY environment variable using the command line:

    export OPENAI_API_KEY=your_openai_api_key
    

    Replace your_openai_api_key with your actual OpenAI API key.

  • Run the application using the following command:

    chat-with-pdf
    
  • Follow the prompts to provide the path to the PDF document and ask questions to interact with the chatbot.

Visual Studio and C++ Development

  • Download and install Visual Studio from here.

  • During the installation process, make sure to select "Desktop development with C++" from the available workloads.

  • Open your terminal or command prompt.

  • Set the OPENAI_API_KEY environment variable using the command line:

    export OPENAI_API_KEY=your_openai_api_key
    

    Replace your_openai_api_key with your actual OpenAI API key.

  • Run the application using the following command:

    node chat
    
  • Follow the prompts to provide the path to the PDF document and ask questions to interact with the chatbot.

License

This project is licensed under the MIT License.

Keywords

chat-with-pdf

FAQs

Package last updated on 19 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts