AsoBozorg commited on
Commit
cedfae3
Β·
verified Β·
1 Parent(s): adc3a3a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +53 -13
README.md CHANGED
@@ -8,20 +8,60 @@ sdk_version: 5.46.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
- short_description: I built a public TruthLens demo that answers controversial c
12
- ---
13
- title: Truthlens Claim Verifier
14
- emoji: 🌍
15
- colorFrom: indigo
16
- colorTo: indigo
17
- sdk: gradio
18
- sdk_version: 5.46.0
19
- app_file: app.py
20
- pinned: false
21
- license: apache-2.0
22
- short_description: I built a public TruthLens demo that answers controversial c
23
  ---
24
 
25
  # 🧭 TruthLens – Misinformation-Aware RAG
26
 
27
- TruthLens is a **fact-checking AI demo** ...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
+ short_description: Fact-checking demo with RAG, citations, and safety.
 
 
 
 
 
 
 
 
 
 
 
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.