| """ | |
| Smoke test for TruthLens pipeline. | |
| Run this script to quickly verify that the retrieval, ranking and | |
| classification components are connected correctly. It prints a | |
| short summary of the evidence found for a predefined claim. Note | |
| that the quality of results depends on having network access and the | |
| required models installed; if either is missing you may see empty | |
| outputs or fallback behaviour. | |
| """ | |
| from __future__ import annotations | |
| import json | |
| from src.pipeline import process_claim | |
| def main() -> None: | |
| claim = "Electric vehicles reduce CO₂ emissions vs gasoline cars" | |
| result = process_claim(claim, max_pages=2, top_k=5) | |
| print(json.dumps(result, indent=2)) | |
| if __name__ == "__main__": | |
| main() |