AI-driven device driver generator

WEPD060
24 Sept 2025, 16:30
1h 30m
Palmer House Hilton Chicago

Palmer House Hilton Chicago

17 East Monroe Street Chicago, IL 60603, United States of America
Poster Presentation MC13: Artificial Intelligence & Machine Learning WEPD Posters

Speaker

Mr Lukasz Zytniak (S2Innovation Sp z o. o. [Ltd.])

Description

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.

Author

Mr Lukasz Zytniak (S2Innovation Sp z o. o. [Ltd.])

Co-authors

Kamil Fugiel (S2Innovation Sp z o. o. [Ltd.]) Krzysztof Klimczyk (S2Innovation Sp z o. o. [Ltd.]) Mr Szymon Kupiecki (S2Innovation Sp z o. o. [Ltd.]) Mr Tomasz Madej (S2Innovation Sp z o. o. [Ltd.])

Presentation materials

There are no materials yet.