DocSense
1.0.0

This project provides a web application for comparing PDF documents using different cosine similarity scans and a chatbot interface to interact with the processed PDFs. The application is built using Streamlit, FastAPI, and LangChain.
Clone the repository:
git clone https://github.com/lakshya324/DocSense.git
cd DocSenseInstall the required packages:
pip install -r requirements.txtSet up environment variables:
Create a .env file in the root directory and add your environment variables:
GOOGLE_API_KEY=your-google-api-key
DEPLOYED=False
Set up LLAMA 3 and OLLAMA: Install LLAMA 3 (8B) and OLLAMA by running the following command:
ollama run llama3Run the Streamlit app:
streamlit run app.pyNavigate to the Home Page:
Navigate to the ChatBot Page:
├── app.py # Main Streamlit application
├── compare.py # PDF comparison logic
├── pdf_extractor.py # PDF text extraction logic
├── text_preprocessing.py # Pre-processing of PDF text
├── LLM
│ ├── gemini.py # Google Gemini LLM integration
│ ├── llama3.py # LLAMA 3 LLM integration (OLLAMA)
│ ├── prompt.py # Prompt generation logic
├── embeddings
│ ├── CountVectorizer.py # Count Vectorization logic
│ ├── TfidfVectorizer.py # TF-IDF Vectorization logic
│ ├── all_MiniLM_L6_v2.py # All-MiniLM-L6-v2 Vectorization logic
├── result.py # Chatbot result processing
├── requirements.txt # Required Python packages
└── .env # Environment variables (not included in the repository)
This project is licensed under the MIT License - see the LICENSE file for details.