TransitGPT: A Generative AI-based framework for interacting with GTFS data using Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Devunuri, Saipraneeth, Lehe, Lewis
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913603947331584
author Devunuri, Saipraneeth
Lehe, Lewis
author_facet Devunuri, Saipraneeth
Lehe, Lewis
contents This paper introduces a framework that leverages Large Language Models (LLMs) to answer natural language queries about General Transit Feed Specification (GTFS) data. The framework is implemented in a chatbot called TransitGPT with open-source code. TransitGPT works by guiding LLMs to generate Python code that extracts and manipulates GTFS data relevant to a query, which is then executed on a server where the GTFS feed is stored. It can accomplish a wide range of tasks, including data retrieval, calculations, and interactive visualizations, without requiring users to have extensive knowledge of GTFS or programming. The LLMs that produce the code are guided entirely by prompts, without fine-tuning or access to the actual GTFS feeds. We evaluate TransitGPT using GPT-4o and Claude-3.5-Sonnet LLMs on a benchmark dataset of 100 tasks, to demonstrate its effectiveness and versatility. The results show that TransitGPT can significantly enhance the accessibility and usability of transit data.
format Preprint
id arxiv_https___arxiv_org_abs_2412_06831
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle TransitGPT: A Generative AI-based framework for interacting with GTFS data using Large Language Models
Devunuri, Saipraneeth
Lehe, Lewis
Computation and Language
Artificial Intelligence
Applications
This paper introduces a framework that leverages Large Language Models (LLMs) to answer natural language queries about General Transit Feed Specification (GTFS) data. The framework is implemented in a chatbot called TransitGPT with open-source code. TransitGPT works by guiding LLMs to generate Python code that extracts and manipulates GTFS data relevant to a query, which is then executed on a server where the GTFS feed is stored. It can accomplish a wide range of tasks, including data retrieval, calculations, and interactive visualizations, without requiring users to have extensive knowledge of GTFS or programming. The LLMs that produce the code are guided entirely by prompts, without fine-tuning or access to the actual GTFS feeds. We evaluate TransitGPT using GPT-4o and Claude-3.5-Sonnet LLMs on a benchmark dataset of 100 tasks, to demonstrate its effectiveness and versatility. The results show that TransitGPT can significantly enhance the accessibility and usability of transit data.
title TransitGPT: A Generative AI-based framework for interacting with GTFS data using Large Language Models
topic Computation and Language
Artificial Intelligence
Applications
url https://arxiv.org/abs/2412.06831