The AI PDF Reader is an innovative web application that empowers users to interact with the content of their PDF documents through a chat interface. With this tool, users can seamlessly upload their PDF files, engage in conversations based on the document content, and even ask follow-up questions for deeper insights. Dive into your PDFs like never before and unlock the potential of intelligent document interaction with the AI PDF Reader.
├── client # Frontend
├── server # Backend
├── README.md # Readme file
├── ...
├── src
│ ├── assets # Svg files
│ ├── components # Source files for UI Interface
│ ├── App.js
│ ├── index.js
└── ...
├── ...
├── main.py # Main backend code
├── requirements.txt # Dependency file
└── ...
Follow these steps to set up and run the AI PDF Reader application on your local machine.
- Git
- Node.js
- Python 3.x
- npm (Node Package Manager)
Clone the AI-PDF Reader repository to your local machine:
- clone repo
git clone https://github.com/parthy007/aipdfreader.git
- Go to client
cd client
- Install frontend dependencies
npm install
- Run frontend
npm run start
- Go to server directory
cd .. cd server
- Create a Python virtual environment:
python3 -m virtualenv my_env
- Install the Python dependencies using pip:
pip install -r requirements.txt
Create a .env file in the server directory and add your OpenAI API key:
- Add the following line to the .env file:
OPENAI_API_KEY = YOUR_OWN_API_KEY
You can create your own api key using the OpenAI API
- Run the server
uvicorn main:app --reload