Welcome to ChatPad AI, the web application that revolutionizes the way you interact with documents and web content! With ChatPad AI, you can upload a PDF or provide a URL, and engage in a natural conversation with the content. Whether you need to extract specific information, clarify complex topics, or simply explore a document in-depth, ChatPad AI makes it effortless and intuitive.
- AI-Powered PDF Interaction: Upload a PDF and ask questions about its content, receiving intelligent responses as if you were chatting with an expert.
- Dynamic URL Interaction: Provide a URL and query the content of the web page, turning static information into an interactive dialogue.
- Smart Follow-up Questions: Continue the conversation with follow-up questions for deeper insights and comprehensive understanding.
- Secure User Authentication: Sign up and sign in to personalize your experience and keep your data secure.
- User-Friendly Interface: Enjoy a sleek, intuitive interface designed for seamless interaction and productivity.
Ensure you have the following installed:
- Python 3.7 or higher
- pip (Python package installer)
-
Clone the repository:
git clone https://github.com/yourusername/ChatPad-AI.git cd ChatPad-AI -
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate -
Install the required packages:
pip install -r requirements.txt
- Obtain an API key from OpenAI by signing up at OpenAI.
- Create a
.envfile in the root directory of the project and add your API key:OPENAI_API_KEY=your_openai_api_key
-
Load the PDF and URL models:
python model/pdf_loader.py python model/url_loader.py
-
Start the database server:
python database/main.py
-
Launch the frontend:
- Open the
frontend/index.htmlfile in your web browser.
- Open the
-
Sign up or sign in to your account.
-
Upload a PDF or enter a URL and start chatting with the content!
The project is organized into three main folders:
- frontend: Contains the web interface of the application.
- database: Manages the database and server-side logic.
- model: Includes scripts for loading and processing PDFs and URLs.
- Sign Up: Create a new account by providing your email and password.
- Sign In: Log in to your existing account using your email and password.
- Click on the "Upload PDF" button.
- Select the PDF file you want to interact with.
- Ask your questions in the chat interface.
- Enter the URL of the web page in the provided field.
- Click "Submit".
- Ask your questions in the chat interface.
- Type your question in the chat box and press "Enter" or click the "Send" button.
- The AI, powered by OpenAI's API, will process your question and provide an answer based on the content of the PDF or web page.
- Continue asking follow-up questions to get more detailed information.
We welcome contributions to ChatPad AI! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeatureName
- Make your changes and commit them:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature/YourFeatureName
- Open a pull request.
For any questions or feedback, please open an issue or contact us at (mailto:abdhullahafthah@gmail.com).
Thank you for using ChatPad AI! Transform your document and web content interaction experience with the power of AI and OpenAI's API.

