While building RAG (Retrieval-Augmented Generation) pipelines and indexing scraped web articles into vector databases, I kept running into a hidden cost: modern web content is flooded with repetitive LLM filler ("In today's fast-paced digital landscape...", "It is important to note...", "game-changer").
Indexing this noise bloats vector databases, degrades semantic search accuracy, and wastes LLM context tokens without adding any factual signal.
To solve this without sending sensitive company data to third-party APIs, I built AI Slop Cleaner Enterprise API—a lightweight, Dockerized Python/FastAPI service that runs 100% on your own infrastructure.
How It Works Under the Hood
Instead of relying on a single regex filter, the engine uses a 3-Layer Hybrid Detection pipeline:
- Perplexity Scoring: Evaluates token predictability via any OpenAI-compatible or local endpoint.
- Goh-Barabási Burstiness Analysis: Measures sentence-length and structural variance across sliding windows to catch uniform machine cadence.
- Offline Multilingual Heuristic Engine (EN/TR): Zero-latency pattern scoring that runs completely offline.
Live Benchmark Example
Here is a real test run on a mixed document containing two AI filler sentences and one critical sensor reading:
Input Document (66 tokens):
"In todays fast-paced digital landscape, artificial intelligence plays a pivotal role in transforming modern businesses. It is important to note that this paradigm shift is a game-changer. At 09:15 AM, turbine pressure dropped from 4.8 bar to 3.1 bar due to a cracked valve."
Cleaned Output (27 tokens):
"At 09:15 AM, turbine pressure dropped from 4.8 bar to 3.1 bar due to a cracked valve."
Telemetry Result (/v1/usage):
- AI Probability Score:
0.8624(ai_dominant) - Token Reduction:
66 → 27 tokens(59% token savings) - Data Retention:
Zero(100% in-memory on your own server)
Get Started
- Documentation & Architecture: Check out the full benchmark details on GitHub.
- Production Docker Bundle: Grab the compiled, ready-to-deploy FastAPI package (with commercial single-server license) on Gumroad.
How are you currently filtering low-signal or AI-generated fluff before indexing into your vector DBs? Let me know in the comments!



