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