AI-driven device driver generator

We present a web-based application that significantly simplifies and accelerates the development of Tango Controls device servers by integrating large language models (LLMs) into the code generation process. The tool allows users to define device attributes, commands, and properties through an intuitive graphical interface, and optionally upload device documentation in PDF format. Using retrieval-augmented generation, the system extracts relevant content from the documentation and generates Python code for Tango device servers, tailored to the specific device functionality. The backend leverages FastAPI and LangChain to interface with various LLMs such as GPT, Claude, and Gemini. Tests on devices like power supplies and teslameters show that the generated code often requires limited manual adjustments. While the application improves development efficiency and accuracy, it also highlights certain limitations, including occasional command mismatches and the need for better retrieval strategies. Future enhancements include automated test code generation, improved document parsing, support for additional programming languages, and integration of open-source models for broader applicability.

Publication Details

Journal
JACOW
Published
2025-12-05
DOI
https://doi.org/10.18429/jacow-icalepcs2025-wepd060
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

AI-driven device driver generator

JACOW
Software Testing and Debugging Techniques
article

AI-driven device driver generator

article en

Abstract

We present a web-based application that significantly simplifies and accelerates the development of Tango Controls device servers by integrating large language models (LLMs) into the code generation process. The tool allows users to define device attributes, commands, and properties through an intuitive graphical interface, and optionally upload device documentation in PDF format. Using retrieval-augmented generation, the system extracts relevant content from the documentation and generates Python code for Tango device servers, tailored to the specific device functionality. The backend leverages FastAPI and LangChain to interface with various LLMs such as GPT, Claude, and Gemini. Tests on devices like power supplies and teslameters show that the generated code often requires limited manual adjustments. While the application improves development efficiency and accuracy, it also highlights certain limitations, including occasional command mismatches and the need for better retrieval strategies. Future enhancements include automated test code generation, improved document parsing, support for additional programming languages, and integration of open-source models for broader applicability.

JACOW
Openalex Percentile: Top 37%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

AI-driven device driver generator · JACOW (2025) | TGRS Research Map | TGRS