SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.09779 · 2026

KGCaRe: Explainable Complex Conditional Question Answering using Automatic Knowledge Graph Construction and Context Retrieval with LLMs

Hui Su, Paul Buitelaar, Ghanshyam Verma, Simanta Sarkar, Devishree Pillai, Hotaka Shiokawa, Yourong Xu, Fiona Veazey, Peter Hubbert

arXiv · PDF · Open in the Atlas

Code that ran

15 of 23 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (11 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 12 have no contract verdict; 2 failures of our instrument; 8 no recorded run), measured 2026-11-22; 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/2608.09779.json · badge: /api/ran/2608.09779.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
GhanshyamVerma/KGCaRe community
Papers with Code archive
15 ran · 8 no recorded run
FunctionStatusWhere it lives
ChunkRecord Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("82d86980adbcb3dc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

ClueDecision Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("8caf3bf625e8a6e0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

FaissChunkStore Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("11044bacb7389d59")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

Neo4jConfig Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("9231d199e392ebd4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

OpenAIChatClient Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("bb74a808b6ab2074")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

OpenAIEmbeddingClient Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("244efd3028f1a611")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

PrunedTripleSelection Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("5f26ca29ea6999fd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

ReasoningDecision Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("f40673452b8afe75")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

TripleCandidate Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("04de04ca6de2aa5d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

TripleRecord Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("abb71c3254a1965b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

VectorMetadata Ran
ran on a synthesized input · constructed an object; no result was computed
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("a5c003159f444845")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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_stopwords Ran
ran on a synthesized input
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("72048e14412219a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

_normalize Ran
ran, violated the contract we drafted
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("c9ffc15ec5f6e72d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

extract_keywords_given_response Ran
ran; our contract draft was wrong, not the code
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("9c9dec5b74e71fc0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

read_jsonl_models Ran
ran; our contract draft was wrong, not the code
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("1f8e6ac5b5c2358d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

HybridKGCaReRetriever Not yet run
unverified (harvested, no recorded run)
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("49d737ccc39c47ab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

KGCaReTraversal Not yet run
unverified (harvested, no recorded run)
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("f761fd0384de1313")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

Neo4jTripleStore Not yet run
unverified (harvested, no recorded run)
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("9b37d6077ae6a2cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

PruneDecision Not yet run
unverified (harvested, no recorded run)
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("2b5cc11b4a1a2425")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

RetrievalResult Not yet run
unverified (harvested, no recorded run)
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("5aa1c36b6f92d335")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

TraversalStepTrace Not yet run
unverified (harvested, no recorded run)
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("5e63a73f4f8f1603")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

TraversalTrace Not yet run
unverified (harvested, no recorded run)
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("8859d6cf101fa7f3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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.

write_jsonl_models Not yet run
unverified (harvested, no recorded run)
GhanshyamVerma/KGCaRe/KGCaRe/kgcare/retriever.py
pointer only (licence: NONE) · get_code("e80af6e9e88928d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GhanshyamVerma/KGCaRe 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 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 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 23 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-22.

Repositories linked to this paper

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

Abstract

Answering complex conditional questions using Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG) remains a challenge, particularly in domain-specific contexts where general-purpose LLMs and RAG tend to underperform. We hypothesize that augmenting RAG with unstructured and structured knowledge, extracted from both documents and knowledge graphs (KGs), can improve reasoning and answer accuracy for such tasks. To test this, we propose KGCaRe, a hybrid approach that combines neural retrieval with symbolic reasoning over LLM-generated KGs. KGCaRe constructs a KG from documents using a multi-prompt extraction strategy and stores it in a graph database. Simultaneously, the documents are embedded into a vector store

For agents

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

get_harvested_code_for_paper("2608.09779")
get_code_for_paper("2608.09779")
have("2608.09779")

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

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

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

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

Connect an agent — have() is free.