AI Fact Check is a full-stack tool built to fight misinformation on social media.
Select any zone on your screen, and within seconds get a clear verdict: True ✅ False ❌ Misleading
[Screen Capture] → [Multilingual OCR] → [Claim Extraction] → [Live Web Search] → [Verdict]
- The Chrome Extension captures the selected screen zone
- OCR.space extracts the text (Arabic, French, English)
- Groq / Llama 3 isolates the main claim
- Tavily API searches live web sources in real time
- FastAPI returns a structured verdict with a trust score and summary
factcheck-extension/ ← Chrome Extension (MV3)
backend/ ← FastAPI Cloud Backend
- Area Selector — drag-and-drop zone selection directly on any webpage
- DPR Scaling — supports Retina, 4K, and high-density displays
- Service Worker — handles all API calls from
background.js, bypassing CORS - Multilingual OCR — Arabic (cursive), French, and English support
- Clone or download this repository
- Open Chrome →
chrome://extensions/ - Enable Developer mode (top-right toggle)
- Click Load unpacked
- Select the
factcheck-extension/folder - The 🔍 icon appears in your Chrome toolbar — you're ready
- Async pipeline — FastAPI + Uvicorn for low-latency execution
- Claim isolation — Groq (Llama 3) distills noisy social media text into a clean query
- Live search — Tavily API queries high-authority news and fact-checking sources
- Structured output — returns verdict, trust score, summary, and sources
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txtCreate a .env file in the backend/ folder:
GROQ_API_KEY=your_groq_api_key
GROQ_MODEL=llama3-8b-8192
TAVILY_API_KEY=your_tavily_api_keyuvicorn app.main:app --reloadServer runs at http://localhost:8000
Swagger docs at http://localhost:8000/docs
Runs the full RAG pipeline on the provided text and returns a fact-check report.
Request
{
"post_content": "Text extracted from the social media image..."
}Response
{
"verdict": "مضلل",
"trust_score": 25,
"summary": "Explanation generated in Arabic based on verified live web sources.",
"sources": [{ "title": "Source title", "url": "https://..." }]
}| Field | Type | Description |
|---|---|---|
verdict |
string | صحيح / خاطئ / مضلل (True / False / Misleading) |
trust_score |
integer | Reliability score from 0 to 100 |
summary |
string | Contextual explanation in Arabic |
sources |
array | List of sources used for verification |
| Layer | Technology |
|---|---|
| Chrome Extension | JavaScript, HTML5, CSS3 — Manifest V3 |
| OCR | OCR.space API — Engine 3 |
| Backend | Python, FastAPI, Pydantic v2, Uvicorn |
| AI Engine | Groq Cloud SDK — Llama 3 |
| Web Search | Tavily API |
MIT — open-source, free to use, fork, and improve.
Pull requests are welcome.