Skip to content

hhh4164/hackbu2026

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackbu2026

ClearDocs

ClearDocs is a web application that allows users to analyze contracts and medical bills instantly using AI. It scans uploaded PDFs, automatically omits sensitive information, and highlights key issues, hidden clauses, or confusing parts in the document.


Features

  • Scan PDFs Instantly – Upload contracts or medical bills and ClearDocs processes them quickly.
  • Protect Sensitive Data – Automatically removes names, addresses, and IDs before analysis.
  • Highlight Key Issues – Shows flags, suggested solutions, and relevant quotes from the document.
  • Easy-to-read Results – Each result is displayed as a clean card for better readability.

Tech Stack

  • Frontend: React, TypeScript, TailwindCSS
  • Backend: FastAPI
  • AI Analysis: Custom backend logic or integration with AI model
  • File Uploads: FormData via HTTP POST

Installation

git clone https://github.com/hhh4164/hackbu2026.git
cd cleardocs
cd frontend 
npm i
npm run dev
cd ../backend
python -m venv venv
# macOS/Linux
source venv/bin/activate
# Windows
venv\Scripts\activate

pip install -r requirements.txt
uvicorn main:app --reload --host 127.0.0.1 --port 8000

Usage

  1. Open the frontend at http://localhost:5173 (Vite default port).
  2. Select Contract or Medical Bill
  3. Upload your PDF file
  4. Click Analyze PDF
  5. View the results displayed as cards showing Flag, Solution, and optional Quote.

Example Result JSON

[
  {
    "flag": "Late Payment Fee",
    "solution": "Notify the client about the 10% penalty and interest",
    "quote": "Late payments will incur a 10% penalty plus 1.5% monthly interest"
  },
  {
    "flag": "Hidden Cancellation Fee",
    "solution": "Make sure to cancel at least 30 days before renewal",
    "quote": "Early termination will result in a $250 fee"
  }
]

Folder Structure

cleardocs/ ├─ frontend/ # React + Tailwind app │ ├─ src/ │ │ ├─ components/ │ │ │ ├─ Card.tsx │ │ │ └─ ResultCard.tsx │ │ └─ pages/ │ │ └─ Home.tsx ├─ backend/ # FastAPI server │ ├─ main.py │ ├─ redactor.py # Handles sensitive information redaction │ └─ requirements.txt


Disclaimer

The README and the text on the cards are all generated by AI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors