This repository is the official implementation of FlexKBQA.
FlexKBQA: A Flexible LLM-Powered Framework for Few-Shot Knowledge Base Question Answering
cd flexkbqa/automatic_program_sampling
python step_wise_grounding.py
python post_process_grounding_1.py
python post_process_grounding_2.py
python parse_sparql.py / python parse_sparql_grail.py
cd run_scripts
sh run.sh/ sh run_turbo.sh
cd flexkbqa/execution-guided self-training
cd flexkbqa/inherent reasoning
If you find our repo useful, please kindly consider citing:
@misc{li2023flexkbqa,
title={FlexKBQA: A Flexible LLM-Powered Framework for Few-Shot Knowledge Base Question Answering},
author={Zhenyu Li and Sunqi Fan and Yu Gu and Xiuxing Li and Zhichao Duan and Bowen Dong and Ning Liu and Jianyong Wang},
year={2023},
eprint={2308.12060},
archivePrefix={arXiv},
primaryClass={cs.CL}
}