Transform how you interact with PDFs using Langchain, Google Gemini Pro, and FAISS Vector DB!
Upload multiple PDFs, extract insights, and chat with them in real-time. πβ¨
π Try the Demo on Streamlit!
AskMyPDF is a Streamlit-powered AI chatbot that lets you upload multiple PDF files and engage in conversations with their content.
Using advanced AI models, it extracts, processes, and understands PDF data, providing instant and accurate responses to your questions.
1οΈβ£ Upload PDFs β Drag and drop multiple PDF files into the app.
2οΈβ£ Text Extraction β The app extracts text from all uploaded files.
3οΈβ£ Text Chunking β Documents are divided into meaningful, searchable chunks.
4οΈβ£ AI Processing β Google's Gemini Pro generates vector embeddings.
5οΈβ£ Similarity Search β The app finds the most relevant text chunks.
6οΈβ£ Response Generation β AI formulates an intelligent response to your query!
πΌοΈ Architecture Overview:

β
Multi-Document Conversational AI β Chat with multiple PDFs at once.
β
Supports PDF & TXT Files β Upload and process documents easily.
β
Smart Adaptive Chunking β Dynamic text segmentation for improved accuracy.
β
Powered by AI β Uses Google Gemini Pro, OpenAI GPT-3, Anthropic Claude, and Llama2.
β
Instant Answers β AI retrieves context-based answers from your PDFs.
β
Easy-to-Use Interface β A clean and responsive UI powered by Streamlit.
git clone https://github.com/YOUR_GITHUB_USERNAME/AskMyPDF.git
cd AskMyPDFpip install -r requirements.txtGet a Google API key from Google MakerSuite.
Create a .env file in the root directory and add:
GOOGLE_API_KEY=<your-api-key-here>
streamlit run app.py1οΈβ£ Launch the App β Run streamlit run app.py to start the chatbot.
2οΈβ£ Upload PDFs β Drag and drop multiple PDF files into the sidebar.
3οΈβ£ Process Files β Click "Process Documents" to extract and prepare data.
4οΈβ£ Ask Questions β Type your queries in the chatbox and get AI-powered responses.
5οΈβ£ Enjoy AI-Powered Insights! π
| π¦ Dependency | πΉ Purpose |
|---|---|
| Streamlit | Web UI framework |
| Google Generative AI | AI-powered responses |
| Langchain | Conversational AI processing |
| FAISS | Vector search for document retrieval |
| PyPDF2 | Extract text from PDF files |
| python-dotenv | Manage API keys securely |
Want to try AskMyPDF without setup? π
π Try the Live App on Streamlit!
πΉ Support for DOCX & PPTX files π
πΉ Integration with Voice Assistants ποΈ
πΉ Advanced Summarization & Report Generation π
This project is licensed under the MIT License. See LICENSE for details.
π If you find this project useful, drop a β on GitHub!
Let me know if you'd like any further customization! π

