Back to Projects

Paper Trial

Next.js
FastAPI
PostgreSQL
pgvector
RAG
Gemini 2.5 API
Deepgram
ElevenLabs
PyMuPDF
Landing & Thesis Ingestion
View

Landing & Thesis Ingestion

Semantic Analysis & Attack Synthesis
View

Semantic Analysis & Attack Synthesis

Live Voice Defense Interrogation
View

Live Voice Defense Interrogation

Pre-Defense Radar & Metric Review
View

Pre-Defense Radar & Metric Review

Final Defense Scorecard & PDF Export
View

Final Defense Scorecard & PDF Export

Defending a thesis is one of the most high-stakes hurdles in an academic career. Paper Trial simulates an adversarial thesis committee: it ingests research papers, pinpoints methodological and statistical flaws using Gemini 2.5, and conducts a live bidirectional voice interrogation over Deepgram STT and ElevenLabs TTS while penalizing students who alt-tab to cheat.

Vector Grounding & Semantic RAG Pipeline

Ingests academic thesis PDFs using PyMuPDF to parse structured text and preserve exact page coordinates. Documents are semantically chunked and indexed into a PostgreSQL pgvector database, allowing the model to cross-reference spoken student arguments against their actual citations in milliseconds.

Low-Latency Adversarial Voice Loop

Streams microphone audio over WebSockets to Deepgram STT, tracking speech cadence, hesitation markers, and words per minute. Google Gemini 2.5 synthesizes targeted methodological critiques, which are streamed back via ElevenLabs TTS to deliver an authoritative, natural-sounding oral examination.

Browser Integrity Tracking & PDF Scorecards

Enforces defense realism through browser visibilitychange listeners that dock integrity points if students alt-tab to check external notes. The session evaluates answers across five academic dimensions mapped onto Recharts radar graphs, generating a multi-column PDF audit report via fpdf2.

✦
Hey there! 👋

Abhinandan Ghosh

Based in West Bengal, India•
IST
Crafted with code & chai ☕