Your AI-Powered PDF Assistant
📚 Tired of scrolling through long PDFs? With AskYourPDF, just upload your document and ask any question — the AI will instantly provide answers based on the content, saving you valuable time and effort.
AskYourPDF is powered by LangChain, RAG, and Gradio, making it an intelligent, user-friendly solution for getting the information you need — fast.
AskYourPDF doesn’t just save you time — it gives you back the freedom to focus on what truly matters. Whether you're doing research, studying for exams, or managing important business documents, this app makes the process smarter, faster, and easier.
- 📄 Effortless PDF Upload: Drop your PDF into the app and let it work its magic.
- 🔍 Instant Answers: No more scrolling! Ask any question and receive accurate answers drawn directly from the PDF.
- 🧠 AI-Powered Precision: We use the best AI tools like LangChain, Google Generative AI embeddings, and Groq’s Llama3 model to ensure you get contextually relevant responses.
- 🧑💻 No More Tedious Searching: Whether for research, study, or work, find exactly what you need without the hassle.
- Upload Your PDF: Drag-and-drop or browse to upload your document.
- Ask a Question: Type your question about the document’s content.
- Get Your Answer: Receive an immediate, structured response based on the PDF’s context.
It’s that simple! No more endless scrolling through pages — just fast, accurate answers, right at your fingertips.
- Gradio: A sleek and intuitive interface for easy interactions.
- LangChain: Efficient document processing and question answering.
- FAISS: High-speed document search for instant results.
- Groq AI: Provides high-quality answers based on deep learning.
- Google Generative AI: Enhances context understanding with advanced embeddings.
- Python 3.8+
- Install dependencies:
pip install -r requirements.txt
- API Keys: Set up your API keys for Groq AI and Google Generative AI in the .env file:
GROQ_API_KEY=your_groq_api_key GOOGLE_API_KEY=your_google_api_key
- Clone the repository:
git clone https://github.com/your-username/askyourpdf.git cd askyourpdf
- Run the app:
python main.py
- Visit http://localhost:7860 to use the app. For online access, deploy the app on Hugging Face Spaces.
We’re constantly improving AskYourPDF to make it even better for you:
- Multi-Format Support: Soon, you’ll be able to upload and query Word, PowerPoint, and HTML files.
- Conversation Memory: Keep the context across multiple questions for even smoother interactions.
- Faster Processing: With caching and indexing, large PDFs will be processed even faster.
- Batch Upload: Upload multiple PDFs at once for mass query handling.
We welcome contributions from the open-source community! If you’d like to contribute to AskYourPDF, whether by improving features, fixing bugs, or suggesting new ideas, feel free to open an issue or submit a pull request.
- Fork the Repository: Click the "Fork" button at the top of this page.
- Create a New Branch: Make your changes or improvements in a separate branch.
- Submit a Pull Request: Once your changes are ready, submit a pull request to merge them into the main project.
We value your feedback! If you encounter issues or have suggestions to improve the app, feel free to open an issue or reach out via discussions.
Thank you for helping us make this project even better!
This project is open-source and available under the MIT License.