Skip to content

An AI-powered tool that checks whether any statement or news is true or false, delivering a simple 1 (true) or 0 (false) result.

License

Notifications You must be signed in to change notification settings

whymono/CheckPoint

Repository files navigation

CheckPoint

An AI-powered tool that checks whether any statement or news is true or false, delivering a simple 1 (true) or 0 (false) result.

This project is an AI-powered fact-checking tool that verifies whether a statement is true or false.

Here’s how it works:

Statement to Question – Any statement entered is first passed through a local AI model (Ollama). Converting the statement into a question ensures better accuracy in the next steps. (For best results, use a model with at least 10B parameters.)

Google Search Integration – The generated question is sent through a custom Google Search Engine API, which gathers relevant websites and articles related to the query.

Data Extraction – The script extracts key text from the retrieved sites to form a pool of contextual evidence.

Final Verification – Both the extracted site data and the original statement are passed into the AI again, which outputs a binary result:

1 → True

0 → False

⚠️ Note: Using smaller models (e.g., 1B parameters) can increase the chances of inaccurate results.

Quick Setup

  1. Install Ollama: https://ollama.ai/
  2. Pull your model of choice (recommended 10B or larger for best results): ollama pull mistral:10b
  3. Open the OLLAMA_MODEL file and enter your model name (for example: mistral:10b).
  4. Open the SEARCH_API file and paste your Google Custom Search API key.
  5. Run the program: python main.py
  6. Enter any statement you want to verify (for example: The moon landing was fake.)
  7. The program will output: 1 = True 0 = False

About

An AI-powered tool that checks whether any statement or news is true or false, delivering a simple 1 (true) or 0 (false) result.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages