PaperPilot is a contract management platform designed to streamline document creation, revision, and distribution—empowering small business owners to save time, money, and stress.
Whether through our own experiences or those of our friends and family, we understand that small business owners often find themselves burdened by an abundance of paperwork they need to draft, revise, and distribute. We set out to develop a solution that does all three in one, simplifying contract management for the modern business owner.
-
Document Generation:
Prompt the user for input and automatically generate documents (contracts, invoices, etc.) based on their description. -
Seamless Revision:
Interact directly with our AI to revise the document until it meets your needs. -
Effortless Distribution:
When satisfied, email the document straight from your dashboard.
-
Frontend:
Built with Next.js for a fast, responsive, and modern user interface. -
Backend:
Flask and MongoDB power our backend services. -
AI & Models:
Our model is built around the Gemini API, pretrained using LaTeX templates scraped from the web. We also implemented a Retrieval-Augmented Generation (RAG) architecture to enhance performance and consistency during document revisions. -
Note:
You must add your own API keys for Gemini in the configuration files. Ensure you set up the appropriate environment variables or configuration settings before running the application.
Upcoming features and improvements include:
- Enhanced security features.
- Better prompt engineering for improved AI responses.
- More robust document distribution options.
- Node.js and npm (for the Next.js frontend)
- Python 3.8+ (for the Flask backend)
- MongoDB
- pip
- Gemini API access (remember to add your own API keys)
-
Clone the Repository:
git clone https://github.com/yourusername/paperpilot.git cd paperpilot -
Frontend Setup (Next.js):
cd frontend npm install npm run dev -
Backend Setup (Flask):
cd ../backend python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt
-
Configure Environment Variables: Create a .env file in the backend folder and add your Gemini API key along with other required settings:
GEMINI_API_KEY=your_gemini_api_key_here
MONGODB_URI=your_mongodb_connection_string
SECRET_KEY=your_flask_secret_key-
Run the Backend:
python app.py
-
Upload Documents:
Upload contracts, invoices, or other documents through the web interface. -
Preprocess & Annotate:
Our system cleans, vectorizes, and indexes documents for efficient retrieval. AI-driven annotation can be used for further enhancements. -
Search & Retrieve:
Use semantic search to quickly find relevant contract sections. -
Revise & Distribute:
Interact with our AI to make revisions, then distribute the final document via email directly from your dashboard.
Contributions to PaperPilot are welcome! If you’d like to contribute, please:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.
PaperPilot is released under the MIT License. See LICENSE for more information.