Query Symbolically or Retrieve Semantically? A Dataset and Method for Semi-Structured Question Answering

Mateusz Czyżnikiewicz, Ryszard Tuora, Adam Kozakiewicz, Tomasz Ziętkiewicz, Mateusz Galiński +4 more
5/26/2026
1 citation
cs.AI
benchmark-datasetrag

Official code: corneliocristina/DualGraphRAG (2 stars, Python, MIT, last commit 2026-05-21).

Abstract

Retrieval-Augmented Generation (RAG) systems for question answering typically retrieve evidence by semantic similarity between the query and document chunks. While effective for unstructured text, this approach is less reliable on semi-structured corpora where answering may require exact filtering, aggregation, or exhaustive retrieval over structured attributes across multiple documents.

Show full abstract

Symbolic approaches support such operations, but they are often brittle on noisy natural-language corpora. We address this gap with DualGraph, a RAG framework that represents documents through two complementary views: a Textual Knowledge Graph for semantic retrieval and a Symbolic Knowledge Graph for symbolic querying over typed subject--predicate--object triples. Building on these two components, we provide multiple strategies for selecting or combining semantic and symbolic evidence.We also introduce SpecsQA, a benchmark from a commercial shopping website with semi-structured product documents and manually curated questions spanning open-ended and specification-oriented retrieval. Experiments show that DualGraph consistently outperforms state-of-the-art dense-retrieval, GraphRAG, symbolic, and table-oriented baselines across question types.Code and data are available at https://github.com/corneliocristina/DualGraphRAG.

View on arXivView PDF

Code Implementations(1)

MIT
20PythonMar 4, 20266 months agoMIT

Similar Papers

Cite this paper

@article{czynikiewicz2026query,
  title  = {Query Symbolically or Retrieve Semantically? A Dataset and Method for Semi-Structured Question Answering},
  author = {Mateusz Czyżnikiewicz and Ryszard Tuora and Adam Kozakiewicz and Tomasz Ziętkiewicz and Mateusz Galiński and Michał Godziszewski and Michał Karpowicz and Timothy Hospedales and Cristina Cornelio},
  year   = {2026},
  eprint = {2605.27164},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.27164v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.27164.svg)](https://codeofpaper.com/paper/2605.27164)

Discussion