IdeaCredIdeaCred

Ashik245-commits/LLM-Filter-Probe

72

๐Ÿ•ต๏ธโ™‚๏ธ Analyze and reverse engineer keyword filtering in large language models to enhance compliance and operational insights.

What's novel

๐Ÿ•ต๏ธโ™‚๏ธ Analyze and reverse engineer keyword filtering in large language models to enhance compliance and operational insights.

Code Analysis

10 files read ยท 3 rounds

A tool that reverse-engineers LLM API gateway content filters by using binary search and bidirectional squeeze algorithms to precisely identify which keywords/phrases trigger blocking, with dynamic masking to minimize API calls.

Strengths

The core algorithm is genuinely well-designed: the hybrid binary-search-to-precision-squeeze pipeline, iso-length lazy masking to maintain coordinate consistency, and the 'find once, mask globally' optimization show deep thought about the problem. Error handling is thorough with explicit distinction between network errors and safe responses, retry logic via tenacity, and multiple fallback strategies in the precision scanner.

Weaknesses

No test files exist in the project despite the complexity of the algorithms, which is a significant gap. The README is misleading โ€” it describes a simple 'enter text, click analyze' desktop app, while the actual code is a sophisticated async web application with a Vue frontend, WebSocket real-time updates, and complex algorithmic scanning. There's also code duplication between scan_strategy.py and binary_searcher.py implementing similar logic.

Score Breakdown

Innovation
5 (25%)
Craft
60 (35%)
Traction
8 (15%)
Scope
82 (25%)

Signal breakdown

Innovation

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

Craft

Ci-1
Tests-1
Polish+1
Releases+1
Has License+5
Code Quality+21
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+2
Has Dependency Mgmt+5

Traction

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

Scope

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

Evidence

Commits

24

Contributors

3

Files

115

Active weeks

4

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

1

Forks

0

License

GPL-3.0