{"data":{"slug":"jagilley-fact-checker","name":"fact-checker","tagline":"Fact-checking LLM outputs with self-ask","github_url":"https://github.com/jagilley/fact-checker","owner":"jagilley","repo":"fact-checker","owner_avatar_url":"https://avatars.githubusercontent.com/u/37783831?v=4","primary_language":"Jupyter Notebook","stars":308,"forks":40,"topics":["llm","python"],"archived":false,"github_pushed_at":"2023-10-23T21:08:13+00:00","maintenance_label":"Dormant","url":"https://www.graphcanon.com/tools/jagilley-fact-checker","markdown_url":"https://www.graphcanon.com/tools/jagilley-fact-checker.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/jagilley-fact-checker","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=jagilley-fact-checker","description":"Fact-checking LLM outputs with self-ask","homepage_url":null,"license":null,"open_issues":0,"watchers":5,"ai_summary":null,"readme_excerpt":"# fact checking with prompt chaining\n\nThis repo is a simple demonstration of doing fact-checking with prompt chaining. How it works:\n- you ask your desired LLM a question\n- the LLM generates an initial answer to the question\n- the LLM self-interrogates what the assumptions were that went into that answer\n- the LLM sequentially determines if each of these assumptions are true\n- the LLM generates a new answer to the question, incorporating the new information\n\n## to run\n\nRun\n\n`python3 fact_checker.py 'insert question here'`\n\n*Be sure to wrap your question in quotes if you're passing it as a command line argument.*\n\nAlternatively, you can use the provided `fact_checker.ipynb` notebook.\n\n## example\n\nQuestion: *\"What type of mammal lays the biggest eggs?\"*\n\n\n**Initial answer:**\nThe biggest eggs laid by any mammal belong to the elephant.\n\n**Assumptions made:**\n- The elephant is a mammal \n- Mammals lay eggs \n- Eggs come in different sizes \n- Elephants lay bigger eggs than other mammals\n\n**Verification of assumptions:**\n- The elephant is a mammal: TRUE \n- Mammals lay eggs: FALSE - Most mammals give birth to live young.\n- Eggs come in different sizes: TRUE \n- Elephants lay bigger eggs than other mammals: FALSE - Elephants do not lay eggs.\n\n**New answer:**\nThis question cannot be answered because elephants do not lay eggs and most mammals give birth to live young.\n\n## credits\nProof of concept by [Jasper](https://twitter.com/0xjasper)","github_created_at":"2022-12-06T23:58:18+00:00","created_at":"2026-07-11T10:50:04.54907+00:00","updated_at":"2026-07-12T02:28:20.190441+00:00","categories":[{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"},{"slug":"vector-databases","name":"Vector Databases","url":"https://www.graphcanon.com/categories/vector-databases","markdown_url":"https://www.graphcanon.com/categories/vector-databases.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/vector-databases"}],"tags":[{"slug":"jupyter-notebook","name":"jupyter notebook"},{"slug":"llm","name":"llm"},{"slug":"python","name":"python"}],"trust":{"provenance":{"is_fork":false,"github_id":575183014,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-07-11T10:50:05.206Z","maintenance":{"label":"Dormant","score":18,"methodology":"github_public_v1","releases_90d":0,"days_since_push":991,"last_release_at":null},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T10:50:10.266Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-07-11T10:50:09.846Z"},"languages":{"value":["jupyter notebook"],"source":"github.language","observed_at":"2026-07-11T10:50:09.846Z"}}}}