Skip to content

snowsadh/themis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Themis

Themis is a browser-based moot court simulator where two players argue opposite sides of real Indian constitutional and fundamental rights cases. Present arguments, rebut opposing claims, and respond to judicial questioning. Every action you take can and will affect your scoreboard matrix in realtime.

Your performance is tracked across four dimensions: Legal Application, Issue Relevance, Argument Flow, and Bench Handling. The judge can question you, interrupt, or transfer control.

Is this for me?

If you're a law student grinding moots, or just someone who finds courtroom drama interesting, then yesss.

How to Setup

Coming soon

How to use

  1. Pick a case from the carousel and read the case brief
  2. Choose your side — petitioner or respondent
  3. Argue your case, rebut the opponent, respond to the judge
  4. Watch your scores update live after every argument
  5. Verdict delivered at the end — the better arguer wins

The verdict is based on argument quality, not the original court ruling.

Tech Stack

  • Frontend — React + Vite
  • Backend — FastAPI + WebSocket
  • AI Judge — Llama 3.2-3B fine-tuned via QLoRA (Unsloth + TRL)
  • Case Data — Indian Kanoon (50+ constitutional and fundamental rights cases)

Model Performance

Fine-tuned Llama 3.2-3B on 504 moot court argument-scoring examples using Unsloth + QLoRA (r=16) on Kaggle T4x2.

Metric Value
Final Training Loss 0.8544
Final Eval Loss 0.8986
Train/Eval Gap 0.044 (no overfitting)

The base model produced 51/51 parse failures on the evaluation set. After fine-tuning, Themis Judge produced 0/51 failures — valid structured judicial output on every example.

Scoring Criteria MAE (evaluated on held-out 51 examples)

Criterion MAE
Legal Application 1.7255
Issue Relevance 0.9608
Argument Flow 0.5490
Bench Handling 1.0000
Average 1.0589

Scores range from -3 to +3. Gold standard generated by DeepSeek V4 Flash. Human evaluation pending.

Model: snowsadh/themis-judge-3b · LoRA: snowsadh/themis-judge-lora · Dataset: snowsadh/multiturn-legal-argumentation

Graphics Inspired By

Ace Attorney

About

Moot Court Simulator

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Contributors