How yukta2505/trust-agent-misinformation-detection works
TRUST-AGENT detects out-of-context claims by analyzing an uploaded image and claim, gathering image and web evidence, applying specialized reasoning agents, and returning an explainable verdict. The main user path runs from the React dashboard through FastAPI into a LangGraph orchestrator, then presents scores and evidence. The repository also includes a VERITE benchmark toolkit. Connections are limited to excerpted calls, source-index references, or README statements; unsampled implementation details and some optional integrations are not asserted.
Main entry points: graph_nodes.py Pipeline nodes · App.jsx Dashboard · orchestrator.py Pipeline orchestrator · llm_client.py LLM client
Components 27
Web dashboard
- Dashboard
frontend/src/App.jsx - Upload form
frontend/src/components/UploadForm.jsx - Verdict view
frontend/src/components/VerdictCard.jsx - Agent scores
frontend/src/components/AgentScores.jsx - Evidence list
frontend/src/components/EvidenceList.jsx
API and orchestration
- Analysis API
api/main.py - Pipeline orchestrator
orchestrator.py - Shared state
graph_state.py - Configuration
backend/config.py
Analysis pipeline
- Pipeline nodes
graph_nodes.py - Image captioning
backend/captioning2.py - Entity extraction
backend/entity_extraction.py - Metadata extraction
backend/metadata_extractor.py - Evidence retrieval
backend/evidence_retrieval.py - Evidence filtering
backend/evidence_filter.py - Historical index
historical_index.py
Reasoning and verdict
- Entity agent
agents/entity_agent.py - Temporal agent
agents/temporal_agent.py - Credibility agent
agents/credibility_agent.py - CLIP agent
agents/clip_agent.py - Plausibility agent
agents/plausibility_agent.py - Verdict aggregator
agents/aggregator_agent.py - LLM client
backend/llm_client.py
VERITE benchmark
- Benchmark preparation
image-text-verification/prepare_datasets.py - Feature extraction
image-text-verification/extract_features.py - Benchmark experiments
image-text-verification/experiment.py
Other components
- User
Connections 30
- User → Upload form: provides image and claim
README.md - Upload form → Dashboard: submits form
frontend/src/App.jsx - Dashboard → Analysis API: posts analysis
frontend/src/App.jsx - Analysis API → Pipeline orchestrator: runs analysis
api/main.py - Pipeline orchestrator → Pipeline nodes: builds graph
orchestrator.py - Pipeline orchestrator → Shared state: uses state schema
orchestrator.py - Pipeline orchestrator → Configuration: loads settings
orchestrator.py - Pipeline nodes → Image captioning: generates caption
graph_nodes.py - Pipeline nodes → Entity extraction: extracts entities
graph_nodes.py - Pipeline nodes → Metadata extraction: extracts metadata
graph_nodes.py - Pipeline nodes → Evidence retrieval: retrieves evidence
graph_nodes.py - Pipeline nodes → Evidence filtering: filters evidence
graph_nodes.py - Pipeline nodes → Historical index: searches index
graph_nodes.py - Pipeline nodes → CLIP agent: runs visual check
graph_nodes.py - Pipeline nodes → Entity agent: runs agent
graph_nodes.py - Pipeline nodes → Temporal agent: runs agent
graph_nodes.py - Pipeline nodes → Credibility agent: runs agent
graph_nodes.py - Pipeline nodes → Plausibility agent: runs agent
graph_nodes.py - Pipeline nodes → Verdict aggregator: fuses results
graph_nodes.py - Entity agent → LLM client: requests reasoning
agents/entity_agent.py - Temporal agent → LLM client: requests reasoning
agents/temporal_agent.py - Credibility agent → LLM client: requests reasoning
agents/credibility_agent.py - Plausibility agent → LLM client: requests reasoning
agents/plausibility_agent.py - Verdict aggregator → LLM client: requests synthesis
agents/aggregator_agent.py - Pipeline orchestrator → Dashboard: returns result
- Dashboard → Verdict view: renders verdict
frontend/src/App.jsx - Dashboard → Agent scores: renders scores
frontend/src/App.jsx - Dashboard → Evidence list: renders evidence
frontend/src/App.jsx - Benchmark preparation → Feature extraction: prepares inputs
- Feature extraction → Benchmark experiments: supplies features