Spaces:
Sleeping
title: ClarityGuard
emoji: π
colorFrom: blue
colorTo: purple
sdk: docker
pinned: true
license: apache-2.0
short_description: Neuro-inclusive communication clarity assistant
tags:
- gemma4
- rag
- jina
- neurodiversity
- accessibility
models:
- CharlieBonito/clarity-guard-gemma4-7b
π ClarityGuard β Neuro-inclusive Communication Assistant
Winner Submission: Gemma 4 Good Hackathon 2026
ClarityGuard helps neurodivergent individuals decode ambiguous workplace and personal messages by analyzing message structureβnot the user's ability to understand.
Active Model
| Property | Value |
|---|---|
| Model repo | CharlieBonito/clarity-guard-gemma4-7b |
| Active version | ClarityGuard v2 |
| Training checkpoint | 750 |
| Base model | Unsloth Gemma 4 E4B IT BNB 4-bit |
| Architecture | Gemma 4 |
| Parameters | 7.52B |
| Quantization | GGUF / Q4_K_M |
| Model context metadata | 131072 tokens |
| Space deployed context | 12288 tokens |
| Multimodal | Yes, via mmproj-ClarityGuard-v2.gguf |
Active production files:
ClarityGuard-v2.ggufβ main modelmmproj-ClarityGuard-v2.ggufβ multimodal projector
Deprecated checkpoint-375 files are not the active deployment artifacts:
Checkpoint-375-Ollama-Clean-7.5B-Q4_K_M.ggufmmproj-Checkpoint-375-Ollama-Clean-BF16.gguf
π― Problem
Neurodivergent people (autistic, ADHD, dyslexic) often struggle with:
- Ambiguous instructions that lack clear action items
- Corporate speak that hides expectations
- Double deadlines (stated vs. implied)
- Vague feedback without observable criteria
This isn't a cognitive deficitβit's a protocol mismatch. When a message lacks a clear subject, deadline, or measurable criterion, confusion is the logical response.
π‘ Solution
ClarityGuard uses the C.F.R.V.A. Framework to analyze messages:
| Factor | What It Detects |
|---|---|
| Context | Undeclared context or hidden assumptions |
| Framing | Undefined terms or missing criteria |
| Responsibility | Ghost "we" or unclear ownership |
| Validation | Approval conditioned on not asking |
| Ambiguity | Jargon, metaphors, or unwritten support |
The model then generates:
- Analysis β What's missing from the message
- Cognitive Protection β Validation that confusion is appropriate
- Read-Back Question β A concrete clarification to send
- Follow-up Plan β If ambiguity persists
ποΈ Architecture
User Message β Jina Embeddings (RAG) β ClarityGuard v2 / Gemma 4 E4B IT β Structured Analysis
β
Knowledge Base (Chatty System)
Components:
- ClarityGuard v2 / Fine-tuned Gemma 4 E4B IT (Unsloth) β 7.52B parameters, Q4_K_M quantization, checkpoint 750
- Jina Embeddings v3 β Semantic search over knowledge base
- RAG Documents β Chatty 231051 framework + manipulation awareness content
- Hugging Face GPU Space β CUDA-accelerated llama.cpp inference
π Technical Details
Model Training
- Base: Unsloth Gemma 4 E4B IT BNB 4-bit
- Fine-tuning: Unsloth Studio
- Active checkpoint: 750
- Quantization: Q4_K_M for deployment
- Multimodal support:
mmproj-ClarityGuard-v2.gguffor vision/audio projector support
RAG System
- Embeddings: Jina v3 (1024 dimensions)
- Documents: 3 knowledge base files (Chatty framework, manipulation awareness)
- Retrieval: Top-k semantic search
Categories
- Digital Equity & Inclusivity β Breaking down communication barriers
- Safety & Trust β Transparent, explainable AI framework
- Unsloth Track β Fine-tuned with Unsloth Studio
- llama.cpp Track β Optimized deployment with CUDA
π Knowledge Base
ClarityGuard draws from:
- Chatty 231051 β Symbolic framework for ethical analysis
- Manipulation Awareness β Recognition of gaslighting patterns
- Workplace Communication β Structural analysis of corporate messaging
π§ Setup
Environment Variables
JINA_API_KEY=your_jina_api_key # For RAG embeddings
Run Locally
pip install -r requirements.txt
python app.py
π Example Usage
Input:
"We need to fix that soon."
Analysis (C.F.R.V.A. Score: 35/50):
π Analysis: This message has no clear subject ("fix what?"), no deadline ("soon" is undefined), and no assigned responsibility ("we" is a ghost subject).
π Cognitive Protection: Your confusion is not a failure. "We need to fix that soon" cannot be executed with certainty by anyoneβthe ambiguity is in the message, not your processing.
βοΈ Suggested Clarification: "To make sure I understand: when you say 'fix that,' do you mean [specific item]? What does 'fixed' look like? And by when do you need it?"
π Awards Categories
- Digital Equity & Inclusivity ($10,000)
- Safety & Trust ($10,000)
- Unsloth Special Track ($10,000)
- llama.cpp Special Track ($10,000)
π₯ Team
Charlie Lengemann β Fine-tuning, architecture, knowledge base design
π License
Apache 2.0
Built with β€οΈ for the neurodivergent community