@inproceedings{HoOoiWestner, author = {Ho, Joe Ee and Ooi, Boon Yaik and Westner, Markus}, title = {Application Integration Framework for Large Language Models}, series = {2024 5th International Conference on Artificial Intelligence and Data Sciences (AiDAS), Bangkok, Thailand, 03-04 September 2024}, booktitle = {2024 5th International Conference on Artificial Intelligence and Data Sciences (AiDAS), Bangkok, Thailand, 03-04 September 2024}, publisher = {IEEE}, isbn = {979-8-3315-2855-3}, doi = {10.1109/AiDAS63860.2024.10730541}, pages = {1 -- 6}, abstract = {Large Language Models (LLMs) have unlocked new opportunities in processing non-structured information. However, integrating LLM into conventional applications poses challenges due to their non-deterministic nature. This paper introduces a framework designed to effectively integrate LLM into intermediate modules by ensuring more consistent and reliable outputs. The framework includes three key components: the Sieve, which captures and retries processing of incorrect outputs; the Circuit Breaker, which stops processing persistently incorrect outputs; and the Optimizer, which enhances processing efficiency by combining inputs into single prompts. Experimental results employing structured methodology demonstrate the framework's effectiveness, achieving significant improvements a 71.05\% reduction in processing time and an 82.97\% reduction in token usage while maintaining high accuracy. The proposed framework, agnostic to specific LLM implementations, aids the integration of LLMs into diverse applications, enhancing automation and efficiency in fields such as finance, healthcare, and education.}, language = {en} }