Skip to content

About

No description, website, or topics provided.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


Typing SVG

β€œKnow your audit gaps before the auditor does.”

PRYSM is an AI-powered audit intelligence platform that helps finance teams, CFOs, CA firms, and SMEs detect compliance gaps, reconciliation mismatches, missing invoices, and audit risks before they become expensive problems.


πŸš€ One-Line Pitch

PRYSM transforms manual audit preparation from weeks of document checking into minutes of AI-powered compliance intelligence.


🧠 Problem Statement

Audit preparation is slow, expensive, and reactive.

Finance teams often spend weeks collecting invoices, GST returns, bank statements, ROC filings, and supporting documents. Critical issues such as GST mismatches, missing invoices, late filings, or unmatched bank entries are usually discovered too late β€” during the audit itself.

This leads to:

  • Delayed audit readiness
  • High CA preparation costs
  • Missed compliance gaps
  • Penalties and interest exposure
  • Poor document traceability
  • Last-minute finance team stress

Businesses should not discover audit risks only when the auditor arrives.


πŸ’‘ Solution Overview

PRYSM acts as a continuous audit intelligence layer.

Users upload financial documents. PRYSM extracts structured entities using OCR and LLMs, runs deterministic compliance checks, detects gaps, explains risks in plain English, and generates a professional audit-ready PDF report.

flowchart LR
    A[Upload Financial Documents] --> B[OCR + PDF Text Extraction]
    B --> C[LLM Entity Extraction]
    C --> D[Structured Data Store]
    D --> E[Compliance Rule Engine]
    E --> F[Risk Dashboard]
    F --> G[Audit-Ready PDF Report]
    F --> H[AI Copilot Explanations]
Loading

✨ Key Features

Feature Description
πŸ“€ AI Document Upload Portal Upload invoices, GST returns, bank statements, ROC filings, and scanned PDFs
πŸ” PDF + OCR Extraction Uses PyMuPDF and Tesseract to extract text from native and scanned documents
🧠 LLM Entity Extraction Extracts GSTIN, invoice number, dates, amounts, HSN codes, vendor names, and tax details
βš–οΈ Compliance Rule Engine Runs 18 deterministic audit and compliance rules
🧾 GST Mismatch Detection Compares invoice data, GST returns, and extracted values
🚨 Missing Invoice Detection Detects invoice sequence gaps and missing financial records
πŸ“Š Risk Dashboard Displays Critical, High, Medium, and Low severity findings
πŸ€– AI Copilot Explains every risk in plain English for CFOs, founders, and finance teams
πŸ“‘ Audit PDF Reports Generates CA-ready audit reports with evidence and remediation steps
🧬 ChromaDB Search Enables semantic search and document intelligence across uploaded files

πŸ› οΈ Tech Stack

Frontend

Backend

AI + Document Intelligence

Deployment


πŸ—οΈ System Architecture

flowchart TD
    U[User Browser] --> FE[React / Next.js Frontend]

    FE -->|REST API| API[FastAPI Backend]

    API --> UPLOAD[Upload Service]
    API --> EXTRACT[Extraction Service]
    API --> ANALYZE[Compliance Analyzer]
    API --> REPORT[Report Generator]
    API --> COPILOT[AI Copilot API]

    UPLOAD --> DOCS[(Uploaded Documents)]

    EXTRACT --> PDF[PyMuPDF Parser]
    EXTRACT --> OCR[Tesseract OCR]
    PDF --> LLM[Groq / LLaMA Entity Extraction]
    OCR --> LLM

    LLM --> DB[(SQLite / PostgreSQL)]
    LLM --> VECTOR[(ChromaDB Vector Store)]

    DB --> RULES[18 Compliance Rules]
    VECTOR --> COPILOT

    RULES --> RISKS[Risk Scoring Engine]
    RISKS --> DASH[Risk Dashboard]
    RISKS --> REPORT

    REPORT --> PDFOUT[Audit-Ready PDF]
Loading

πŸ”„ PRYSM Workflow

sequenceDiagram
    participant User
    participant Frontend
    participant Backend
    participant OCR
    participant LLM
    participant Rules
    participant Report

    User->>Frontend: Upload financial documents
    Frontend->>Backend: POST /upload
    Backend->>OCR: Extract text from PDFs/images
    OCR->>LLM: Send cleaned document text
    LLM->>Backend: Return structured entities
    Backend->>Rules: Run compliance checks
    Rules->>Backend: Return risk findings
    Backend->>Frontend: Display dashboard
    User->>Frontend: Click Export Report
    Frontend->>Report: Generate audit PDF
    Report->>User: Download CA-ready report
Loading

βš™οΈ Installation Guide

1. Clone the Repository

git clone https://github.com/your-username/prysm.git
cd prysm

🧩 Backend Setup

cd backend
python -m venv venv

Activate Virtual Environment

Windows

venv\Scripts\activate

macOS / Linux

source venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Run Backend Server

uvicorn app.main:app --reload

Backend will run on:

http://localhost:8000

API docs will be available at:

http://localhost:8000/docs

🎨 Frontend Setup

cd frontend
npm install
npm run dev

Frontend will run on:

http://localhost:3000

πŸ” Environment Variables

Create a .env file inside the backend folder:

GROQ_API_KEY=your_groq_api_key
DATABASE_URL=sqlite:///./prysm.db
CHROMA_DB_PATH=./chroma_db
UPLOAD_DIR=./uploads
REPORT_DIR=./reports

Create a .env.local file inside the frontend folder:

NEXT_PUBLIC_API_URL=http://localhost:8000

πŸ“‘ API Endpoints

Method Endpoint Description
GET /health Check backend server health
POST /upload Upload financial documents
POST /extract Extract text and entities from uploaded documents
POST /analyze Run compliance rules and generate risks
GET /risks/{doc_id} Fetch risk findings for a document
POST /copilot Ask AI Copilot questions about audit risks
GET /report/{doc_id} Generate and download audit-ready PDF report

πŸ“ Project Structure

PRYSM/
β”‚
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ main.py
β”‚   β”‚   β”œβ”€β”€ routers/
β”‚   β”‚   β”‚   β”œβ”€β”€ upload.py
β”‚   β”‚   β”‚   β”œβ”€β”€ extract.py
β”‚   β”‚   β”‚   β”œβ”€β”€ analyze.py
β”‚   β”‚   β”‚   β”œβ”€β”€ risks.py
β”‚   β”‚   β”‚   └── report.py
β”‚   β”‚   β”‚
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   β”œβ”€β”€ pdf_parser.py
β”‚   β”‚   β”‚   β”œβ”€β”€ ocr_service.py
β”‚   β”‚   β”‚   β”œβ”€β”€ llm_extractor.py
β”‚   β”‚   β”‚   β”œβ”€β”€ compliance_engine.py
β”‚   β”‚   β”‚   β”œβ”€β”€ risk_scoring.py
β”‚   β”‚   β”‚   └── report_generator.py
β”‚   β”‚   β”‚
β”‚   β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”‚   β”œβ”€β”€ document.py
β”‚   β”‚   β”‚   β”œβ”€β”€ entity.py
β”‚   β”‚   β”‚   └── risk.py
β”‚   β”‚   β”‚
β”‚   β”‚   β”œβ”€β”€ core/
β”‚   β”‚   β”‚   β”œβ”€β”€ config.py
β”‚   β”‚   β”‚   └── database.py
β”‚   β”‚   β”‚
β”‚   β”‚   └── rules/
β”‚   β”‚       └── rules.json
β”‚   β”‚
β”‚   β”œβ”€β”€ requirements.txt
β”‚   └── README.md
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ UploadPortal.tsx
β”‚   β”‚   β”œβ”€β”€ RiskDashboard.tsx
β”‚   β”‚   β”œβ”€β”€ RiskCard.tsx
β”‚   β”‚   β”œβ”€β”€ CopilotPanel.tsx
β”‚   β”‚   └── ReportViewer.tsx
β”‚   β”‚
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ package.json
β”‚   └── README.md
β”‚
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ architecture.md
β”‚   β”œβ”€β”€ api-contract.md
β”‚   └── demo-script.md
β”‚
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ backend/
β”‚   └── frontend/
β”‚
└── README.md

πŸ§ͺ Demo Flow for Judges

flowchart LR
    A[1. Open PRYSM Landing Page] --> B[2. Upload Sample Documents]
    B --> C[3. Watch AI Extract Entities]
    C --> D[4. Risk Dashboard Loads]
    D --> E[5. Click Critical Risk]
    E --> F[6. View Plain-English Explanation]
    F --> G[7. Export Audit PDF]
    G --> H[8. Judges See Audit Readiness in Minutes]
Loading

Judge Demo Script

Step Action What Judges See
1 Open PRYSM Premium fintech-style landing page
2 Upload documents Invoice, GST return, bank statement upload
3 Run extraction GSTIN, invoice number, dates, amounts appear
4 View dashboard Critical and High risks highlighted
5 Open risk details Evidence, explanation, and remediation steps
6 Ask AI Copilot Plain-English answer about the compliance issue
7 Export report Professional audit-ready PDF download
8 Closing line β€œKnow your audit gaps before the auditor does.”

πŸ‘₯ Team Ragnarok

Member Role Responsibility
Shreekumar Team Lead / System Architect Architecture, integration, backend design, demo strategy
Santheesh Backend Lead FastAPI, OCR pipeline, database, compliance engine
Tharun BL Frontend Lead React / Next.js UI, dashboard, upload portal, UX
Vishal Research Lead GST rules, compliance logic, prompt engineering
Sharun Testing & CI/CD Lead Testing, deployment, QA, CI/CD pipeline

πŸ›£οΈ Roadmap

timeline
    title PRYSM Product Roadmap

    Hackathon MVP
        : Upload documents
        : OCR extraction
        : LLM entity extraction
        : 18 compliance rules
        : Risk dashboard
        : Audit PDF export

    Phase 2
        : Continuous monitoring
        : Daily reconciliation
        : Audit readiness score
        : GSTN API integration

    Phase 3
        : Human review workflow
        : CA firm mode
        : Evidence tracking
        : Tally and Zoho integration

    Phase 4
        : AI Copilot
        : Vendor risk scoring
        : Fraud indicators
        : Predictive compliance

    Phase 5
        : Multi-tenant SaaS
        : Enterprise security
        : SSO and RBAC
        : Global compliance packs
Loading

🧠 Future Enhancements

  • Multi-agent audit workflow
  • Human-in-the-loop compliance review
  • Tally and Zoho Books integration
  • GSTN API integration
  • Vendor risk scoring
  • Fraud pattern detection
  • Multi-client CA firm dashboard
  • Enterprise RBAC and SSO
  • Continuous audit readiness monitoring
  • Predictive compliance alerts

πŸ† Why PRYSM Stands Out

PRYSM is not just another document parser.

It combines:

  • AI extraction for speed
  • Deterministic rules for trust
  • Risk scoring for prioritization
  • Plain-English explanations for clarity
  • Audit-ready reports for real-world usability

PRYSM does not replace auditors.
It makes every finance team audit-ready before the auditor arrives.


πŸ“œ License

This project is licensed under the MIT License.

MIT License

Copyright (c) 2026 Team Ragnarok

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files, to deal in the Software
without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software.

PRYSM

Know your audit gaps before the auditor does.

Built with dedication by Team Ragnarok.

About

No description, website, or topics provided.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages