Skip to content

Dhruv2550/fair

 
 

Repository files navigation

FAIR: Fast AI-Assisted Investigation and Review

FAIR is an AI-assisted investigation and review system developed for the New Jersey Attorney Generals Office Division on Civil Rights (DCR) to streamline case handling, improve documentation consistency, and accelerate investigative workflows.

Homepage Summary

What It Does

FAIR is an AI-assisted investigation and review system with three key components:

Transcript Processing

  • Converts video recordings into structured, searchable transcripts
  • Significantly improves accuracy by 36% compared to current Microsoft Teams transcription
  • Creates consistent documentation that follows standardized formatting

Interview Summarization

  • Generates concise, context-aware summaries based on transcripts
  • Structures summaries according to DCR's preferred format for investigative documentation
  • Highlights key elements such as allegations, respondent statements, and supporting evidence
  • Easy ‘revision’ button to alter summary based on additional context or personal preferences

Interactive Chat Interface

  • Allows users to ask natural language questions about the interview content
  • Retrieves targeted insights without requiring full transcript review
  • Enables efficient information retrieval without technical search expertise

Architecture

Architecture Flow

Tech Stack

Layer Tools & Frameworks
Frontend Next.js, Tailwind CSS, Azure Static Web Apps
Backend Flask (Python), Azure Container Apps, Docker, Azure Container Registry (ACR)
Database PostgreSQL, Azure Database for PostgreSQL
AI/ML GPT4o Transcribe (OpenAI), GPT-4o (OpenAI)
Security & Networking Secruity through the cloud
Infra/DevOps Docker, Azure Container Registry, Azure Infrastructure (scalable, highly available)
Data Privacy Uploaded documents are not stored; they are deleted immediately after processing

Setup

Implementation Guide
To find the cloud deployment instructions go the deployment section on page 6 and follow the link to the instructions.

Core Modules

Module Description
interview_summarizer.py Contains the Prompt for Generating the Summary
chat.py Contains the Prompt for Initializing the AI Assistant
app.py Backend File
page.tsx Frontend File
requirements.txt Contains All the Requirements
.github/workflows Folder Containing GitHub Workflow Files to Push Updates to Azure

Security & Privacy

  • Documents are processed in-memory only and nothing is saved to a database after the summary is generated
  • No document data is persisted once the request completes.
  • API is CORS-enabled but can be locked down to authenticated roles via Azure Static Web Apps config.
  • Secrets are stored in environment variables.

Roadmap

  • Integration with DCR Tech Stack: Host tool on DCR's Azure cloud account and make accessible through NJ BIAS
  • User Feedback Mechanism: Add feedback buttons to summary and home pages
  • Expand multi-language support for diverse New Jersey communities
  • Develop domain-specific models trained on civil rights legal terminology

Contributions

If you are contributing please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a pull request.

License

MIT License – see LICENSE.md for details.

Authors & Acknowledgements

Built by Arinjay Singh & Dhruv Reddy Tekulapalli
In partnership with the New Jersey Attorney Generals Office Divison on Civil Rights

About

Designed, developed, and deployed ‘Fast AI-Assisted Investigation & Review’ (FAIR), a generative AI product, for the NJ AG Office - Division on Civil Rights, to help investigators and legal specialists speed up case processing times and reduce backlogs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 78.3%
  • Python 20.2%
  • Other 1.5%