Building a Reusable AI Connection Utility Class

Authors

  • Bapu Rao Srigadde Salesforce Developer at Thermo Fisher Scientific, USA. Author
  • Jayanth M Devaraju CPU Design Engineer at Qualcomm USA. Author

DOI:

https://doi.org/10.63282/3050-922X.IJERET-V5I2P119

Keywords:

Reusable Class, AI Integration, API Utility, Connection Framework, Modular Design, Scalability, Abstraction, AI SDK, Multi-Model Interface

Abstract

Developers are often confused by the multiple AI model usage situation, making the integration of these models quite tricky. Indeed, each API has its authentication flow, request structure, and response formatting, which are different from the others. Besides, to use these frameworks (OpenAI, Hugging Face, and Google Vertex AI) efficiently, one is obliged to do repetitive and inconsistent connection logic, which is time-consuming and makes the development more complicated. Thus, the objective of a reusable AI connection utility class is to lessen the systems' connections and interactions' complexities to a standard level. Consequently, the developers will not be bothered with the connection complexities; in fact, what will exist is a single modular gateway integrating all AI systems. Compliance with the coding conventions will be highly improved along with interoperability because of this shortcoming. In addition, the scalability of this framework will be improved too since new models or APIs can be easily inserted like plug-and-play. In fact, accountable practices are ensured through centralized handling of credentials as well as controlled access to configuration data. Initially, code duplication was noticeably reduced, and the integration cycles got rapidly executed, besides, there was an effortless interchangeability between AI models for experimentation and deployment. They can securely and efficiently orchestrate their distributed AI workloads if, in the future, they take this idea to multi-cloud or federated AI environments. So by embracing a single reusable architecture for connection handling, organizations stand the chance of streamlining AI adoption, quickening innovation, and making their codebases cleaner and more sustainable in the wide, diversified machine learning ecosystems.

References

[1] Prasad, Aarthi, and E. K. Park. "Reuse system: An artificial intelligence based approach." Journal of Systems and Software 27.3 (1994): 207-221.

[2] Graef, Sebastian. Designing and implementing usable, interoperable, and reusable services of AI planning capabilities. Diss. University of Stuttgart, 2020.

[3] Veiga, Tiago, et al. "Towards containerized, reuse-oriented AI deployment platforms for cognitive IoT applications." Future Generation Computer Systems 142 (2023): 4-13.

[4] Riggio, Roberto, et al. "Ai@ edge: A secure and reusable artificial intelligence platform for edge computing." 2021 Joint European Conference on Networks and Communications & 6G Summit (EuCNC/6G Summit). IEEE, 2021.

[5] Eriksson, Henrik, et al. "Task modeling with reusable problem-solving methods." Artificial Intelligence 79.2 (1995): 293-326.

[6] Langston, Craig, et al. "Strategic assessment of building adaptive reuse opportunities in Hong Kong." Building and environment 43.10 (2008): 1709-1718.

[7] Frakes, William B., and Thomas P. Pole. "An empirical study of representation methods for reusable software components." IEEE Transactions on Software Engineering 20.8 (2002): 617-630.

[8] Ostertag, Eduardo, et al. "Computing similarity in a reuse library system: An AI-based approach." ACM Transactions on Software Engineering and Methodology (TOSEM) 1.3 (1992): 205-228.

[9] Kuchaiev, Oleksii, et al. "Nemo: a toolkit for building ai applications using neural modules." arXiv preprint arXiv:1909.09577 (2019).

[10] Gruber, Thomas R. "The role of common ontology in achieving sharable, reusable knowledge bases." Kr 91 (1991): 601-602.

[11] Moor, Michael, et al. "Foundation models for generalist medical artificial intelligence." Nature 616.7956 (2023): 259-265.

[12] Annex, I. I. "AI watch European landscape on the use of artificial intelligence by the public sector." (2022).

[13] Fountaine, Tim, Brian McCarthy, and Tamim Saleh. "Building the AI-powered organization." Harvard business review 97.4 (2019): 62-73.

[14] Smith, Reid G., and Joshua Eckroth. "Building AI applications: Yesterday, today, and tomorrow." Ai Magazine 38.1 (2017): 6-22.

[15] Serrano, Will. "iBuilding: artificial intelligence in intelligent buildings." Neural Computing and Applications 34.2 (2022): 875-897.

Downloads

Published

2024-06-03

Issue

Section

Articles

How to Cite

1.
Srigadde BR, Devaraju JM. Building a Reusable AI Connection Utility Class. IJERET [Internet]. 2024 Jun. 3 [cited 2026 Jun. 24];5(2):188-200. Available from: https://ijeret.org/index.php/ijeret/article/view/604