├── LICENSE ├── README.md ├── __pycache__ ├── config.cpython-310.pyc ├── factuality.cpython-310.pyc ├── lm_utils.cpython-310.pyc ├── pruning.cpython-310.pyc └── similarity.cpython-310.pyc ├── bottom_up.py ├── card_training.py ├── cards └── readme.md ├── config.py ├── data └── sample.jsonl ├── environment.yml ├── eval_datasets ├── FND │ ├── LUN2.json │ ├── LUN4.json │ └── readme.md └── MidtermQA │ ├── MidtermQA-binary.json │ ├── MidtermQA-fourchoice.json │ ├── MidtermQA-openbook.json │ ├── odqa_utils.py │ └── readme.md ├── factuality.py ├── lm_utils.py ├── pruning.py ├── similarity.py ├── top_down_auto.py └── top_down_explicit.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/README.md -------------------------------------------------------------------------------- /__pycache__/config.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/__pycache__/config.cpython-310.pyc -------------------------------------------------------------------------------- /__pycache__/factuality.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/__pycache__/factuality.cpython-310.pyc -------------------------------------------------------------------------------- /__pycache__/lm_utils.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/__pycache__/lm_utils.cpython-310.pyc -------------------------------------------------------------------------------- /__pycache__/pruning.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/__pycache__/pruning.cpython-310.pyc -------------------------------------------------------------------------------- /__pycache__/similarity.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/__pycache__/similarity.cpython-310.pyc -------------------------------------------------------------------------------- /bottom_up.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/bottom_up.py -------------------------------------------------------------------------------- /card_training.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/card_training.py -------------------------------------------------------------------------------- /cards/readme.md: -------------------------------------------------------------------------------- 1 | trained knowledge cards go here 2 | -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/config.py -------------------------------------------------------------------------------- /data/sample.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/data/sample.jsonl -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/environment.yml -------------------------------------------------------------------------------- /eval_datasets/FND/LUN2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/eval_datasets/FND/LUN2.json -------------------------------------------------------------------------------- /eval_datasets/FND/LUN4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/eval_datasets/FND/LUN4.json -------------------------------------------------------------------------------- /eval_datasets/FND/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/eval_datasets/FND/readme.md -------------------------------------------------------------------------------- /eval_datasets/MidtermQA/MidtermQA-binary.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/eval_datasets/MidtermQA/MidtermQA-binary.json -------------------------------------------------------------------------------- /eval_datasets/MidtermQA/MidtermQA-fourchoice.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/eval_datasets/MidtermQA/MidtermQA-fourchoice.json -------------------------------------------------------------------------------- /eval_datasets/MidtermQA/MidtermQA-openbook.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/eval_datasets/MidtermQA/MidtermQA-openbook.json -------------------------------------------------------------------------------- /eval_datasets/MidtermQA/odqa_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/eval_datasets/MidtermQA/odqa_utils.py -------------------------------------------------------------------------------- /eval_datasets/MidtermQA/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/eval_datasets/MidtermQA/readme.md -------------------------------------------------------------------------------- /factuality.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/factuality.py -------------------------------------------------------------------------------- /lm_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/lm_utils.py -------------------------------------------------------------------------------- /pruning.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/pruning.py -------------------------------------------------------------------------------- /similarity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/similarity.py -------------------------------------------------------------------------------- /top_down_auto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/top_down_auto.py -------------------------------------------------------------------------------- /top_down_explicit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BunsenFeng/Knowledge_Card/HEAD/top_down_explicit.py --------------------------------------------------------------------------------