SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.15131 · ACL · 2024

Interactive-KBQA: Multi-Turn Interactions for Knowledge Base Question Answering with Large Language Models

Junwei Bao, Wen Zhao, Guanming Xiong

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 4 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.15131.json · badge: /api/ran/2402.15131.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
jimxionggm/interactive-kbqa marked official in Papers with Code
Papers with Code archive
7 ran · 3 no recorded run
FunctionStatusWhere it lives
ChatCompletionMessage Ran
ran on a synthesized input · constructed an object; no result was computed
jimxionggm/interactive-kbqa/predict/dialog_predictor.py
pointer only (licence: NONE) · get_code("897e89203d507722")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimxionggm/interactive-kbqa when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Choice Ran
ran on a synthesized input · constructed an object; no result was computed
jimxionggm/interactive-kbqa/predict/dialog_predictor.py
pointer only (licence: NONE) · get_code("710bae971cb2b906")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimxionggm/interactive-kbqa when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

StoppingCriteriaSub Ran
ran on a synthesized input · constructed an object; no result was computed
jimxionggm/interactive-kbqa/predict/dialog_predictor.py
pointer only (licence: NONE) · get_code("21dfc4e2ab6279a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimxionggm/interactive-kbqa when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

check_and_format_history Ran
ran; our contract draft was wrong, not the code
jimxionggm/interactive-kbqa/predict/dialog_predictor.py
pointer only (licence: NONE) · get_code("40beb3c0fb58cc9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimxionggm/interactive-kbqa when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

history_to_input Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jimxionggm/interactive-kbqa/predict/dialog_predictor.py
pointer only (licence: NONE) · get_code("74fb329db01ef4a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimxionggm/interactive-kbqa when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_responce Ran
ran; our contract draft was wrong, not the code
jimxionggm/interactive-kbqa/predict/dialog_predictor.py
pointer only (licence: NONE) · get_code("cf84595e9a4296ef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimxionggm/interactive-kbqa when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

process_stop_words Ran
ran; our contract draft was wrong, not the code
jimxionggm/interactive-kbqa/predict/dialog_predictor.py
pointer only (licence: NONE) · get_code("196fea4558be7d10")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimxionggm/interactive-kbqa when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_model Not yet run
unverified (harvested, no recorded run)
jimxionggm/interactive-kbqa/predict/dialog_predictor.py
pointer only (licence: NONE) · get_code("1bfcd9f0963c988d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimxionggm/interactive-kbqa when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_tokenizer Not yet run
unverified (harvested, no recorded run)
jimxionggm/interactive-kbqa/predict/dialog_predictor.py
pointer only (licence: NONE) · get_code("e9916eef46c98f37")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimxionggm/interactive-kbqa when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

predictor_history Not yet run
unverified (harvested, no recorded run)
jimxionggm/interactive-kbqa/predict/dialog_predictor.py
pointer only (licence: NONE) · get_code("33db2544cd4ff8c4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jimxionggm/interactive-kbqa when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This study explores the realm of knowledge base question answering (KBQA). KBQA is considered a challenging task, particularly in parsing intricate questions into executable logical forms. Traditional semantic parsing (SP)-based methods require extensive data annotations, which result in significant costs. Recently, the advent of few-shot in-context learning, powered by large language models (LLMs), has showcased promising capabilities. However, fully leveraging LLMs to parse questions into logical forms in low-resource scenarios poses a substantial challenge. To tackle these hurdles, we introduce Interactive-KBQA, a framework designed to generate logical forms through direct interaction with knowledge bases (KBs). Within this framework, we have developed three generic APIs for KB interaction. For each category of complex question, we devised exemplars to guide LLMs through the reasoning processes. Our method achieves competitive results on the We-bQuestionsSP, ComplexWebQuestions, KQA Pro, and MetaQA datasets with a minimal number of examples (shots). Importantly, our approach supports manual intervention, allowing for the iterative refinement of LLM outputs. By annotating a dataset with step-wise reasoning processes, we showcase our model's adaptability and highlight its potential for contributing significant enhancements to the field. 1 * Corresponding author. Thought: "tv.tv_program.tvrage_id" is the one I want. Now, I can construct the SPARQL query. Action: ExecuteSPARQL('SELECT DISTINCT ?x WHERE { ?e0 type.object.name "Shawnee Smith"@en . ?e0 tv.tv_actor.starring_roles ?c . ?c tv.regular_tv_appearance.series ?x . ?x tv.tv_program.tvrage_id ?id . } ORDER BY DESC(xsd:integer(?id)) LIMIT 1') Thought: Let's first decouple this complex problem into simple triples: (shawnee smith, played in, target tv program), (target tv program, tvrage_id, ?v), (order by, ?v). Action: SearchNodes("shawnee smith") Q: What is the tv program with the largest "tvrage_id" that shawnee smith played in? Observation: ['Shawnee Smith | Description: Shawnee Rebecca Smith is an American film and television actress and singer.', ... ] Thought: "Shawnee Smith" is what I want. Next, I need to search for a predicate about "played in". Action: SearchGraphPatterns('SELECT ?e WHERE { ?e type.object.name "Shawnee Smith"@en . }', semantic="played in tv program") Observation: [..., (?e, tv.tv_actor.starring_roles -> tv.regular_tv_appearance.series, "30 Days of Night: Dust to Dust"), ...] Thought: The predicate "tv.tv_actor.starring_roles -> tv.regular_tv_appearance.series" is correct. Next, I need to find the predicate that corresponds to "tvrage_id" for a TV program.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.15131")
get_code_for_paper("2402.15131")
have("2402.15131")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.15131.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.15131.svg)](https://syntology.ai/paper/2402.15131)

Connect an agent — have() is free.