IdeaCredIdeaCred

AyushCoder9/ContraLegal-AI

41

An AI-powered legal dashboard that uses NLP and Machine Learning to instantly identify, classify, and cluster high-risk clauses in PDF commercial contracts.

What's novel

An AI-powered legal dashboard that uses NLP and Machine Learning to instantly identify, classify, and cluster high-risk clauses in PDF commercial contracts.

Code Analysis

21 files read · 5 rounds

A Streamlit-based contract risk analysis tool that classifies PDF contract clauses as High/Medium/Low risk using a hybrid of ML (Legal-BERT or TF-IDF+Random Forest) and weighted keyword matching, with optional RAG-powered LLM chat, clause explanation/rewriting, and PDF highlighting.

Strengths

Well-structured multi-layer architecture with clean separation between data pipeline, inference, model training, and UI; the BERT training pipeline with class-weighted loss, early stopping, and ablation study is legitimate ML engineering; the RAG/LLM integration with multi-provider support and structured prompts is well-implemented.

Weaknesses

No test suite whatsoever; the 'clause segmentation' is just character-based chunking, not semantic clause detection; the training data is synthetically labeled with a simple keyword heuristic rather than real legal annotations, undermining the ML model's validity; the PDF annotator's text matching is fragile with wrapped text.

Score Breakdown

Innovation
4 (25%)
Craft
31 (35%)
Traction
8 (15%)
Scope
46 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+1

Craft

Ci+0
Tests+0
Polish+0
Releases+0
Has License+0
Code Quality+17
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+0
Has Dependency Mgmt+5

Traction

Forks+6
Stars+6
Hn Points+0
Watchers+0
Early Traction+0
Devto Reactions+0
Community Contribs+2

Scope

Commits+8
Languages+5
Subsystems+5
Bloat Penalty+0
Completeness+6
Contributors+7
Authored Files+12
Readme Code Match+3
Architecture Depth+5
Implementation Depth+8

Evidence

Commits

67

Contributors

3

Files

36

Active weeks

2

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

2

Forks

1

License