This repo is a simple demonstration of doing fact-checking with prompt chaining. How it works:
Run
python3 fact_checker.py 'insert question here'
Be sure to wrap your question in quotes if you're passing it as a command line argument.
Alternatively, you can use the provided fact_checker.ipynb notebook.
Question: "What type of mammal lays the biggest eggs?"
Initial answer: The biggest eggs laid by any mammal belong to the elephant.
Assumptions made:
Verification of assumptions:
New answer: This question cannot be answered because elephants do not lay eggs and most mammals give birth to live young.
Proof of concept by Jasper
5 commits
Jupyter Notebook
70.1%
Python
29.9%
This repo is a simple demonstration of doing fact-checking with prompt chaining. How it works:
Run
python3 fact_checker.py 'insert question here'
Be sure to wrap your question in quotes if you're passing it as a command line argument.
Alternatively, you can use the provided fact_checker.ipynb notebook.
Question: "What type of mammal lays the biggest eggs?"
Initial answer: The biggest eggs laid by any mammal belong to the elephant.
Assumptions made:
Verification of assumptions:
New answer: This question cannot be answered because elephants do not lay eggs and most mammals give birth to live young.
Proof of concept by Jasper
5 commits
Jupyter Notebook
70.1%
Python
29.9%