PaperPal is a web application designed to help users navigate, review, and analyze PDF documents such as contracts using AI. The app uses retrieval-augmented generation (RAG) for question-answering tasks, leveraging Langchain, FAISS, and Google Generative AI to provide detailed insights from uploaded PDFs.
- Upload and analyze multiple PDF contracts
- AI-powered question answering based on document content
- Risk review of uploaded contracts
- Conversation history-aware retrieval and QA
Ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/your-username/paperpal.git cd paperpal
-
Create a virtual environment and activate it
python3 -m venv .venv ource venv/bin/activate # On Windows: venv\Scripts\activate
-
Install required dependencies
pip install -r requirements.txt
-
Set up your environment variables by creating a .env file in the root directory:
GOOGLE_API_KEY=your_google_api_key
Once you have installed all dependencies and configured your environment:
- Start the streamlit app
streamlit run app.py
- The app will be available at http://localhost:8501/