Skip to content

Ahmed-I-Abdullah/gpt-pdf-retrieval-and-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDFChat

PDFChat is a web application that allows users to upload a PDF document and ask questions about its content. The application uses the OpenAI GPT-3.5-turbo model to answer user queries, and it's built with Python, Streamlit, and asyncio.

Features

  • Upload and process PDF documents
  • Chat-like interface for asking questions about the uploaded document
  • Utilizes OpenAI GPT-3.5-turbo model for generating responses
  • Stylish and responsive design

Installation and Setup

To get started with PDFChat, follow these steps:

  1. Clone the repository:
git clone [email protected]:Ahmed-I-Abdullah/gpt-pdf-retrieval-and-analysis.git
  1. Change to the pdfchat directory:
cd pdfchat
  1. Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Set your OpenAI API key in a .env file
# .env
OPENAI_API_KEY=<your_api_key>
  1. Run the Streamlit application:
streamlit run main.py
  1. Open the provided link in your browser to start using PDFChat.

Usage

  1. Upload a PDF document using the file uploader.
  2. Wait for the application to process the document and load the chat interface.
  3. Type your questions about the document in the chat input box and press "Send".
  4. PDFChat will provide answers based on the content of the uploaded document.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published