Welcome to ChatPDF - your interactive PDF assistant powered by OpenAI's cutting-edge language model! ChatPDF enables you to interact with your PDFs in a whole new way, extracting information, summarizing content, and much more.
To interact with the OpenAI model, you will need an API key. Follow these steps to obtain one:
- Visit the OpenAI website.
- Sign up for an account if you don't already have one.
- Navigate to the API section and follow the instructions to generate your API key.
Once you have your API key, you'll need to configure the application to use it. In the app.py
file, find the line that looks like this:
os.environ["OPENAI_API_KEY"] = "sk-r7QTNcbEeRBAub8quuJAT3BlbkFJQNnPTgSaUVvGhxxxx"
Replace the placeholder key with your actual API key.
ChatPDF requires several dependencies to run. Install them using the provided requirements.txt
file with the following command:
pip install -r requirements.txt
With your API key set and dependencies installed, you're ready to start the application. Navigate to the root folder of the directory and run:
streamlit run app.py
The application should now be up and running on your local server. Open your web browser and go to the address indicated by Streamlit (usually http://localhost:8501
) to start using ChatPDF.
ChatPDF comes with a plethora of features designed to make your interaction with PDF documents as smooth as possible:
- Information Extraction: Pull out key details or data from your PDF files.
- Content Summarization: Get concise summaries of lengthy documents.
- Q&A with your PDF: Ask questions and get answers based on the content of your PDFs.