REVIEW 3 major objections 5 minor 14 references
Design and testing of an agent chatbot supporting decision making with public transport data
T0 review · 3 major / 5 minor · reviewed 2026-08-07 · deepseek-v4-flash
Pith's one-line read An agent chatbot with SQL tools answers 53% of transport questions correctly.
desk verdict A useful applied text-to-SQL paper for GTFS data whose headline accuracy figure is misleadingly scoped and rests on a single gold-query interpretation that the authors themselves know is ambiguous. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The load-bearing component is the agent architecture: a core LLM surrounded by an orchestration layer and by tools that generate a SQL query, check it for syntactic and logical errors, execute it, and build plots or maps from the retrieved data. A structured XML-like prompt carries the full database schema, query rules, and a small set of retrieved example queries that the model is told to adapt. The evaluation mechanism is a question-template workflow: base questions are completed with real data and varied wording, a gold SQL query is manually written for each, and the generated result set or value is compared with the gold one.
What would settle it
Have a second annotator independently write gold SQL queries for the same 146 test questions and measure how often two independent gold queries return identical results; if they often differ, the reported accuracy figures are mostly measuring interpretation ambiguity rather than chatbot correctness.
Extended reading notes
Core claim
The paper's central claim is that a natural-language chatbot for public transport data can be built from a single LLM agent that delegates query generation, error checking, execution, plotting, and map drawing to separate tools, and that the same system can be evaluated quantitatively by a template-based test pipeline rather than by subjective impressions. Its measured result is that, for the two simpler question types, the chatbot returns exactly the gold-query result set in 59 of 112 cases, returns a superset in 2 cases, a subset in 10, and a disjoint set in 14; for the aggregate question type it returns the correct value in only 6 of 34 cases, all from two repeated questions. The paper takes this as showing that the chatbot recognizes relevant example queries and modifies them well, but fails when the required query differs substantially from the examples in its prompt.
Load-bearing premise
The load-bearing premise is that each test question has exactly one correct interpretation, so the manually written gold SQL query is the single standard of truth; if the question admits other reasonable readings, a query that follows one of them is counted as an error.
Editorial extensions
If this is right
- At the measured 53% exact-match rate on simple lookup questions, the chatbot can already serve as a query assistant for questions such as which routes serve a given municipality, provided a human checks the results.
- The stored test questions, generated queries, and retrieved data form a reusable regression benchmark for future versions of the chatbot and for comparing prompt or tool changes.
- The error breakdown points to concrete fixes, such as correcting the type mismatch that makes the model treat a textual direction column as an integer, and improving the model's ability to rewrite an example query when the new question adds conditions.
- The authors' stated next step is a multi-agent graph architecture in which separate agents handle sub-tasks; they expect this to improve answer accuracy and plot and map creation.
Reading between the lines
- Because the gold query is one specific interpretation, a generated query that computes a different but defensible reading of the question is scored as wrong; the paper leaves implicit that the 53% and 18% figures therefore understate how often the user receives a useful answer.
- The same template pipeline could be extended to measure answer-level acceptability, asking annotators whether the returned result set answers the question, which would separate query-construction failures from interpretation ambiguity.
- A direct next experiment would be to run the same 146 questions with different underlying language models and prompt variants; the released template dataset makes this comparison cheap and would show whether the bottleneck is the model, the prompt, or the tool workflow.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. This paper presents an agent-based chatbot for interrogating public transport (GTFS) data with natural language. The system uses GPT-4-Turbo as a central decision maker, augmented with tools for SQL generation, syntax checking, query execution, and map creation. The authors also propose an evaluation methodology: three question templates are instantiated with real data (some with added conditions or deliberate errors), a gold SQL query is manually written for each question, and the chatbot's generated query result sets are compared with the gold results. For templates 1–2, 59 of 112 questions produced exact matches, reported as 'around 53%'; for template 3, 6 of 34 questions produced correct results. The paper concludes that the chatbot is good at recognizing and adapting relevant examples but struggles with queries requiring larger modifications.
Significance. If taken at face value, the paper demonstrates a working natural-language interface to GTFS data that integrates SQL querying and geospatial visualization, and it proposes a template-based evaluation pipeline that compares retrieved result sets rather than only surface-level text. The main strengths are the concrete system description and the explicit reporting of failure modes (syntax errors, incorrect joins, partial result sets). The evaluation is a useful first step, but its current form does not yet provide a reliable quantitative estimate of system performance, because the gold-query convention is not uniquely defined and the headline accuracy figure is computed on a subset of the test set. The contribution is likely of interest to practitioners in public transport data analysis and to developers of text-to-SQL systems.
major comments (3)
- [VI-B] The sentence 'Overall, the chatbot provided the correct answers for around 53% of the questions' is based on the 59/112 exact matches from templates 1–2 only. When the 6/34 correct results from template 3 (Section VI-C) are included, the overall correctness is 65/146 = 44.5%. This is a scope error in the report of the main result; please correct the aggregate statement and any conclusions that depend on it.
- [VI-A and V] The evaluation scores a generated query as correct only if its result set matches a single manually written gold query. However, Section V explicitly acknowledges that the average-trips question admits multiple defensible aggregation choices, such as considering a specific date range, a working day, or all working days, and whether to compute a sum or an average. The paper provides no inter-annotator check, no alternative-answer analysis, and no stated procedure for resolving this ambiguity. As a result, the reported rates (59/112 and 6/34) are not well-defined; a different but equally reasonable gold-query convention could materially change the counts. This is load-bearing because the paper's central claim is the measured accuracy. Please either (a) define a single explicit interpretation rule applied to both gold and generated queries, (b) allow multiple gold interpretations and count an answer as correct if it matches any, or (c) provide a sensitivity analysis of ambiguous cases.
- [VI-C and VII] The paper evaluates query correctness, not answer correctness, but repeatedly uses the phrase 'correct answers'. In Section VI-C, the authors note that for invalid route-stop pairs the chatbot's answer 'there are no trips' is correct from the user's point of view even though the query that led to it was wrong. Similarly, in Section VI-B, 10 syntax errors and 17 incorrect queries may still yield answers that are not clearly wrong to a user. The headline result should therefore be phrased as 'query correctness under a single gold-query interpretation' and the abstract and conclusion should be updated to avoid overstating user-facing answer quality.
minor comments (5)
- [VI-A] The paper states that 42 questions were generated and that additional conditions were appended to a subset, but it does not report the number of unique questions; the 146 total questions include repeated runs. Please clarify the distinction between unique tests and repeated runs, and discuss the potential dependence in the error counts.
- [VI-B] The false positive rates 83% and 75% are reported without a definition of the denominator; please state whether these are the fraction of the generated result set not in the gold set, the fraction of the gold set that is missing, or another quantity.
- [VI-C] The statement that the 6 correct cases 'all asked the same two questions' is unclear; please explain what 'the same two questions' means in the context of the 34 template-3 test cases.
- [IV-B] The paper describes GPT-4-Turbo as 'currently considered state-of-the-art'; this is difficult to verify and should be supported by a citation or removed.
- [References] Reference [5] is given as an arXiv preprint without a version number; please update with the published version if available.
Circularity Check
No significant circularity: the central evaluation is an empirical measurement against manually written gold SQL queries, not a derivation from fitted inputs.
full rationale
No circular step is present. The paper's core result is the measured accuracy of a chatbot on a fixed set of 146 questions. The reference standard is described in Section VI-A: 'a gold query was manually written and executed for each question in the test set to obtain reference data to compare the chatbot's responses to.' This gold query is authored independently of the chatbot's output, so the comparison is not self-justifying. The 53% figure is an observed frequency, not a derived quantity fitted to the data. Section V does note that some questions admit multiple valid interpretations ('whether to consider the trips done in a specific date range, on a specific working day or just consider all working days'), which is a genuine threat to the validity of a single gold query, but it is a measurement-design limitation, not circularity: the chatbot's answer could be better than or worse than the gold on a different defensible reading, and nothing in the comparison is equivalent by construction. The use of GPT-4o to generate test questions and author-written prompt examples around the same templates is self-referential in design, and reference [2] is by overlapping authors, but neither is load-bearing: correctness is adjudicated by externally written gold SQL, not by the model's own outputs or by the cited paper. Hence score 0.
Assumptions & free parameters
assumptions (3)
- domain assumption The manually written gold query is the unique correct interpretation of each test question.
- domain assumption The GPT-4o-generated question completions from three templates adequately simulate random human user behavior.
- domain assumption GTFS datasets from TPER (Bologna and Ferrara) and ATM (Milan) are representative of public transport data for the claimed scope.
Cite this review
Pith. "Pith review of Design and testing of an agent chatbot supporting decision making with public transport data." pith.science (2026). https://pith.science/paper/U6SIV2L3
@misc{pith2026250522698,
author = {Pith},
title = {Pith review of: Design and testing of an agent chatbot supporting decision making with public transport data},
year = {2026},
howpublished = {\url{https://pith.science/paper/U6SIV2L3}},
note = {Machine review of arXiv:2505.22698}
}
read the original abstract
Assessing the quality of public transportation services requires the analysis of large quantities of data on the scheduled and actual trips and documents listing the quality constraints each service needs to meet. Interrogating such datasets with SQL queries, organizing and visualizing the data can be quite complex for most users. This paper presents a chatbot offering a user-friendly tool to interact with these datasets and support decision making. It is based on an agent architecture, which expands the capabilities of the core Large Language Model (LLM) by allowing it to interact with a series of tools that can execute several tasks, like performing SQL queries, plotting data and creating maps from the coordinates of a trip and its stops. This paper also tackles one of the main open problems of such Generative AI projects: collecting data to measure the system's performance. Our chatbot has been extensively tested with a workflow that asks several questions and stores the generated query, the retrieved data and the natural language response for each of them. Such questions are drawn from a set of base examples which are then completed with actual data from the database. This procedure yields a dataset for the evaluation of the chatbot's performance, especially the consistency of its answers and the correctness of the generated queries.
Figures
Reference graph
Works this paper leans on
-
[2]
Mobility chatbot: supporting decision making in mobility data with chatbots,
L. Padoan, M. Cesetti, L. Brunello, M. Antonelli, B. Zamengo, and F. Silvestri, “Mobility chatbot: supporting decision making in mobility data with chatbots,” in2024 25th IEEE International Conference on Mobile Data Management (MDM), 2024, pp. 295–300
work page 2024
-
[1]
Large language model enhanced text- to-sql generation: A survey,
X. Zhu, Q. Li, L. Cui, and Y . Liu, “Large language model enhanced text- to-sql generation: A survey,” https://arxiv.org/abs/2410.06011, 2024
arXiv 2024
-
[3]
Artificial in- telligence for improving public transport: a mapping study,
A. Jevinger, C. Zhao, J. Persson, and P. Davidsson, “Artificial in- telligence for improving public transport: a mapping study,”Public Transport, vol. 16, pp. 1–60, 11 2023
work page 2023
-
[4]
UITP Union Internationale des Transports Publics, “Ai in public trans- port,” https://www.uitp.org/publications/ai-public-transport/, Mar. 2025
work page 2025
-
[5]
Mac-sql: A multi-agent collaborative framework for text-to-sql,
B. Wang, C. Ren, J. Yang, X. Liang, J. Bai, L. Chai, Z. Yan, Q.-W. Zhang, D. Yin, X. Sun, and Z. Li, “Mac-sql: A multi-agent collaborative framework for text-to-sql,” https://arxiv.org/abs/2312.11242, 2025
arXiv 2025
-
[6]
Answerability: A custom metric for evaluating chatbot performance,
P. Gupta, A. A. Rajasekar, A. Patel, M. Kulkarni, A. Sunell, K. Kim, K. Ganapathy, and A. Trivedi, “Answerability: A custom metric for evaluating chatbot performance,” inProceedings of the 2nd Workshop on Natural Language Generation, Evaluation, and Metrics (GEM). Abu Dhabi, United Arab Emirates (Hybrid): Association for Computational Linguistics, Dec. 20...
work page 2022
- [7]
-
[8]
Pubblicazione orari del trasporto pubblico lo- cale in formato gtfs,
ATM, “Pubblicazione orari del trasporto pubblico lo- cale in formato gtfs,” https://www.amat-mi.it/it/servizi/ pubblicazione-orari-trasporto-pubblico-locale-formato-gtfs/
Show all 14 references
-
[9]
General transit feed specification,
Mobility Data, “General transit feed specification,” https://gtfs.org/
-
[10]
Confini delle unit `a amministra- tive a fini statistici,
ISTAT, “Confini delle unit `a amministra- tive a fini statistici,” https://www.istat.it/notizia/ confini-delle-unita-amministrative-a-fini-statistici-al-1-gennaio-2018-2/
2018
-
[11]
Wiesinger, P
J. Wiesinger, P. Marlow, and V . Vuskovic, “Agents,” https://www.kaggle. com/whitepaper-agents, February 2025
2025
-
[12]
Langchain,
“Langchain,” https://python.langchain.com/docs/introduction/
-
[13]
New and improved embedding model,
OpenAI, “New and improved embedding model,” https://openai.com/ index/new-and-improved-embedding-model/, Dec. 2022
2022
-
[14]
How the choice of llm and prompt engineering affects chatbot effectiveness,
L. Pawlik, “How the choice of llm and prompt engineering affects chatbot effectiveness,”Electronics, vol. 14, p. 888, 02 2025
2025
Reviewed August 7, 2026 · model on record in the stance chip above.
Discussion (0). Sign in to comment.