- Frontend: Next.js (coming soon)
- Backend: Django
- DevOps: AWS (coming soon)
A paralegal uploads, and reviews a scanned police report using this feature. The application extracts the text and displays it next to the original document for easy comparison and editing. It then generates a summary, tags, and extracted details, which the user reviews, edits, and confirms.
-
Upload scanned police report via New Case form
-
View extracted text next to the original document
-
Edit or confirm the extracted text
-
Backend saves final text and document embedding
-
View system-generated summary, tags, entities, and locations
-
Approve or edit the
date,city,summaryortype of crimeeach item -
Click "Save" to complete the process
- Install Docker Desktop
- Clone project
git clone https://github.com/pkafei/Police-Report-Processing - Navigate to the project directory:
cd Police-Report-Processing - Copy the environment file:
cp .env.example .env - In the project root run:
docker-compose down -v && docker-compose up --build⚠️ This will take a little while on the first run as Docker builds the containers - Once running, open the app in your browser: http://localhost:8000/upload in your browser ⌛️ It takes about a minute to process the uploaded document
- Add Next.js/Typescript frontend
- Connect Next.js frontend to Django API
- Better error handling for views
- Add tests
- Create POST, UPDATE, and GET endpoints
Put app in Docker container- Add AWS Lambda function to process documents (Extracts text from PDF, and generating tags)
- Add AWS S3 bucket to store documents (prevent bloating the Postgres database)
- Add a CLI/CD tests (pytest) pipeline using GitHub Actions and Pipeline