mrmichaeladavis / FlexKBQA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FlexKBQA

This repository is the official implementation of FlexKBQA.

FlexKBQA: A Flexible LLM-Powered Framework for Few-Shot Knowledge Base Question Answering

Framework

image

Usage

Automatic Program Sampling

  • 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

Low-Resource Program Translation

  • cd run_scripts
  • sh run.sh/ sh run_turbo.sh

Execution-Guided Self-Training

  • cd flexkbqa/execution-guided self-training

Inherent Reasoning

  • cd flexkbqa/inherent reasoning

Under Construction...

About


Languages

Language:Python 96.1%Language:Shell 3.9%