Project

Data-Butler: Language comprehension without losing control

Introduction

Introduction

How many competition shots has an athlete taken this year? With Data-Butler, coaches can easily ask questions like this in everyday language. A language model understands the question, and verified program code calculates the corresponding number. This makes sports data accessible without technical expertise, and every answer remains reliable and transparent.

Background

Background

Competitive sports organizations constantly generate structured data: training loads, competition results down to individual shots, and daily metrics such as sleep or perceived exertion. This data would be valuable for training management, but accessing it requires navigating interfaces, rigid dashboards, and data exports. Anyone who wants to answer a simple question – such as how many official competition shots an athlete has taken this year – needs technical expertise or the help of others. As a result, data collected at great expense remains unused in day-to-day training.

The obvious solution would be to ask an AI chatbot the question and have it calculate the answer directly from the data. Language models understand everyday language surprisingly well. However, the numbers they calculate themselves cannot be verified: they sound plausible but may be incorrect, and there’s no way to tell from the answer. This is not sufficient as a basis for decisions in competitive sports. The «Data-Butler» project is therefore designed to combine both: understanding freely formulated questions and having the corresponding figures calculated by verified program code.

Project Objectives

Project Objectives

The «Data-Butler» is designed to allow coaches to query sports data in everyday language and rely on the figures provided. To achieve this, the system strictly separates the process of understanding the question from that of calculating the answer, while also protecting the athletes’ data.

Advantages of the Data-Butler:

Easy access to your own data

  • Questions instead of interfaces: no technical expertise required
  • Retrieve key metrics directly, without dashboards or exports
  • Multi-part conversations with follow-ups and clarifications are also possible

Reliable figures

  • All values are generated by verified program code, not by the language model
  • The calculation process is documented and remains traceable
  • The same query and the same data yield the same result

Honest handling of uncertainty

  • The system shows how it understood the question
  • If a question is unclear, the system asks for clarification instead of providing a guessed number
  • Missing information is flagged as a gap, not filled in

Protection of personal data

  • A central rule in the code controls how much data context a model call sees
  • Four tiered access levels, ranging from the query text alone to individual data rows
  • Individual data rows are only displayed after explicit approval by the user
Long-Term Goals

Long-Term Goals

Long-term goals include:

  • Implementation on the Force8 platform with approximately 9'500 users, including about 2'500 coaches
  • Expansion to additional sports and associations on the platform
  • Establishment as a trusted tool for data-driven training management in Swiss elite sports
Implementation

Implementation

Data-Butler is based on a strict separation of interpretation and execution: The language model interprets the question exactly once; deterministic program code handles everything else. To achieve this, the system combines:

  • A language model that translates the freely formulated question into a structured request—the “Request Contract”—including the person, metric, time period, and filters
  • Program code that handles source selection, data retrieval, linking, calculation, and validation
  • A “Privacy Gate” with four tiered access levels that regulates—within the code rather than via a prompt instruction—how much data context is shared with the external model provider
  • A verification logic that pauses when information is missing, a date is invalid, or a person is unknown, rather than making an educated guess
  • An audit trail that logs the request, data source, and calculation method for each response

Once the request is complete, the language model’s influence on the values ends: it does not generate, calculate, or modify any data values. This does not eliminate the AI’s uncertainty, but shifts it to a visible and verifiable location: the interpretation of the question, which the system discloses.

Results

Results

In extensive tests against the live production API of our partner Force8, Data-Butler consistently returned correct values using real team roster data from Swiss Shooting, which matched independently calculated target values. In contrast, when the language model was allowed to analyze the same raw data on its own, the results were unreliable: they looked plausible but almost never matched the target value.

Repeated queries also consistently yielded identical results. This demonstrates what matters most in the project: the verified program code provides the correct number, not the language model.

10 Joel Barandun - SOSA 2026
Additional Information

Additional Information

Participants

The project was carried out by the Institute for Data Analysis, Artificial Intelligence, Visualization, and Simulation (DAViS) as part of a bachelor’s thesis in collaboration with the industry partners Swiss Shooting and Force8.