AsoBozorg commited on
Commit
8f9be47
·
verified ·
1 Parent(s): ac2901a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +55 -1
README.md CHANGED
@@ -11,4 +11,58 @@ license: apache-2.0
11
  short_description: 'Here’s TruthLens – Lite: a public demo that verifies claims '
12
  ---
13
 
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  short_description: 'Here’s TruthLens – Lite: a public demo that verifies claims '
12
  ---
13
 
14
+ # 🧭 TruthLens Misinformation-Aware RAG
15
+
16
+ TruthLens is a **fact-checking AI demo** that shows how modern GenAI can be made **responsible, transparent, and safe**.
17
+ It verifies controversial claims (vaccines, climate, elections, etc.) using **retrieval-augmented generation**, checks its own answers for **faithfulness**, and applies **safety filters**.
18
+
19
+ ---
20
+
21
+ ## 🚀 How it works
22
+ 1. **Input a claim/question**
23
+ Example: *“Did humans cause global warming?”*
24
+
25
+ 2. **Retrieve sources**
26
+ The app looks at trusted sources (WHO, IPCC, election reports). You can also paste your own text.
27
+
28
+ 3. **Generate grounded answer**
29
+ TruthLens writes an answer with [1], [2] style citations from those sources.
30
+
31
+ 4. **Self-check**
32
+ It tests how well the answer actually matches the sources (faithfulness score).
33
+
34
+ 5. **Safety filters**
35
+ - Removes personal info (PII redaction).
36
+ - Flags toxicity levels if the language is harmful.
37
+
38
+ ---
39
+
40
+ ## 🛠️ Tech stack
41
+ - **Gradio** (UI & deployment)
42
+ - **Transformers** (Flan-T5 generation, DeBERTa NLI, BERT NER, Toxic-BERT)
43
+ - **SentenceTransformers** (MiniLM embeddings)
44
+ - **CrossEncoder** (MS-MARCO reranker)
45
+ - **scikit-learn / pandas / numpy / matplotlib**
46
+
47
+ All models are **CPU-friendly**, so the demo runs in a free Hugging Face Space.
48
+
49
+ ---
50
+
51
+ ## 🌍 Why it matters
52
+ - Tackles **misinformation** around health, climate, and politics.
53
+ - Demonstrates **responsible AI practices** (grounding, self-checking, safety).
54
+ - Shows how a **Lead AI Developer** designs not just models, but **systems** ready for production.
55
+
56
+ ---
57
+
58
+ ## ▶️ Try it
59
+ 1. Enter a claim or question.
60
+ 2. (Optional) Paste your own text sources.
61
+ 3. Click **Run TruthLens** → see answer, citations, faithfulness score, and safe-share version.
62
+
63
+ ---
64
+
65
+ ## 👔 About this project
66
+ Created by **Aso Bozorgpanah** as a portfolio demo for **Lead AI Developer** roles.
67
+ Focus: Explainability, safety, and production-readiness in Generative AI.
68
+