Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-PDF Chatbot 🤖

Multi-PDF Chatbot is an advanced AI-powered document analysis tool using Google Gemini. It enables users to upload multiple PDFs, ask intelligent questions, and receive precise, context-aware responses through a user-friendly Streamlit interface. The application leverages semantic search and intelligent retrieval for comprehensive document interaction.

🚀 Key Features

The Multi-PDF Chatbot is an intelligent document interaction tool that allows users to:

  • Intelligent Document Processing: Upload and analyze multiple PDFs simultaneously.
  • Contextual AI Interaction: Ask precise questions and receive semantic search-driven responses.
  • Advanced Search Intelligence: Leverage AI-powered deep document comprehension.
  • Persistent Knowledge Management: Save, load, and track comprehensive chat histories.
  • Seamless Session Continuity: Resume previous interactions with intelligent chat recovery.

📷 Chatbot Interface

User Input & Customization

1

Generated Response

2

🛠 Technical Specifications

  • Frontend: Streamlit
  • PDF Processing: PyPDF2
  • AI Backend:
    • Google Generative AI (Gemini)
    • LangChain
  • Vector Database: FAISS
  • Embeddings: Google Generative AI Embeddings

⚙️ System Architecture

WhatsApp Image 2024-11-14 at 23 17 55_431a4fbb

  • Recursive text splitting for document processing
  • Semantic similarity search
  • Conversational question-answering chain
  • Dynamic chat history management

📦 Getting Started

  1. Clone the repository
git clone https://github.com/CodeWizardl/multi-pdf-chatbot.git
cd multi-pdf-chatbot
  1. Install dependencies
pip install -r requirements.txt
  1. Set up environment variables
  • Create a .env file
  • Add your Google API key: GOOGLE_API_KEY=your_api_key_here
  1. Run the application
streamlit run app.py
  1. Access the Application: Open your browser and navigate to http://localhost:8501 to start interacting with the chatbot.

⚙️ Challenges and Solutions

Document Processing

  • Challenge: Handling large and diverse PDF documents
  • Solution:
    • Recursive text splitting
    • Semantic embedding for accurate context retrieval

Chat History Management

  • Challenge: Persistent storage of chat sessions
  • Solution:
    • JSON-based chat history storage
    • Dynamic filename generation
    • Timestamp-based organization

📚 Conclusion

The Multi-PDF Chatbot represents an innovative solution for intelligent document interaction, leveraging cutting-edge AI technologies to transform how users engage with PDF content.

📄 License

This project is licensed under the MIT License.

About

Multi-PDF Chatbot, powered by Google Gemini, enables intelligent Q&A on multiple PDFs, leveraging semantic search and retrieval within a user-friendly Streamlit interface.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages