Rethinking Library OPAC: From Siloed Retrieval to AI and ML-Driven Discovery Using FastAPI and MySQL
Date of this Version
2026
Document Type
Article
Citation
Tedd, L. A. (1994). OPACs through the Ages. Library Review, 43(4), 27–37. https://doi.org/10.1108/00242539410063579
Kapoor, K., & Goyal, O. P. (2007). Web‐based OPACs in Indian academic libraries: A functional comparison. Program, 41(3), 291–309. https://doi.org/10.1108/00330330710774165
Wells, D. (2007). What is a library OPAC? The Electronic Library, 25(4), 386–394. https://doi.org/10.1108/02640470710779790
Roy, N., & Gayan, M. A. (2025). Invisible records in the web opac of the national library of india: Ballard-based assessment of typographical errors. The Serials Librarian, 86(5–6), 287–299. https://doi.org/10.1080/0361526X.2025.2576842
Taipalus, T. (2024). Database management system performance comparisons: A systematic literature review. Journal of Systems and Software, 208, 111872. https://doi.org/10.1016/j.jss.2023.111872
Matallah, H., Belalem, G., & Bouamrane, K. (2021). Comparative study between the mysql relational database and the mongodb nosql database. International Journal of Software Science and Computational Intelligence (IJSSCI), 13(3), 38–63. https://doi.org/10.4018/IJSSCI.2021070104
Narayanan, P. K. (2024). Engineering machine learning and data rest apis using fastapi. In P. K. Narayanan, Data Engineering for Machine Learning Pipelines (pp. 323–359). Apress. https://doi.org/10.1007/979-8-8688-0602-5_10
Hazarika, H. J., & Konch, P. K. (2025). LibraryGPT: Bridging AI and academic libraries with tawk and machine learning integration. Library Hi Tech News. https://doi.org/10.1108/LHTN-05-2025-0085
Jyoti Hazarika, H. (2025). Mapping user interaction with cloud-hosted OPAC: A data-driven study from an Indian academic library. Alexandria: The Journal of National and International Library and Information Issues, 09557490251335962. https://doi.org/10.1177/09557490251335962
Bhattacharya, A. K. (2024). Innovations in library services: The integration of artificial intelligence and machine learning in modern libraries. Library of Progress-Library Science, Information Technology & Computer, 44(3), 4685. https://openurl.ebsco.com/contentitem/gcd:180917672?sid=ebsco:plink:crawler&id=ebsco:gcd:180917672
Huang, Y., Cox, A. M., & Cox, J. (2023). Artificial intelligence in academic library strategy in the united kingdom and the mainland of china. The Journal of Academic Librarianship, 49(6), 102772. https://doi.org/10.1016/j.acalib.2023.102772
Asemi, A., Ko, A., & Nowkarizi, M. (2021). Intelligent libraries: A review on expert systems, artificial intelligence, and robot. Library Hi Tech, 39(2), 412–434. https://doi.org/10.1108/LHT-02-2020-0038
Basak, R., Paul, P., Kar, S., Molla, I. H., & Chatterjee, P. (2024). The future of libraries with ai: Envisioning the evolving role of libraries in the ai era. In K. R. Senthilkumar (Ed.), Advances in Library and Information Science (pp. 34–57). IGI Global. https://doi.org/10.4018/979-8-3693-2782-1.ch003
Borgman, C. L. (1997). From acting locally to thinking globally: A brief history of library automation. The Library Quarterly, 67(3), 215–249. https://doi.org/10.1086/629950
Kani-Zabihi, E., Ghinea, G., & Chen, S. Y. (2008). User perceptions of online public library catalogues. International Journal of Information Management, 28(6), 492–502. https://doi.org/10.1016/j.ijinfomgt.2008.01.007
Lewandowski, D. (2010). Using search engine technology to improve library catalogs. In A. Woodsworth (Ed.), Advances in Librarianship (Vol. 32, pp. 35–54). Emerald Group Publishing Limited. https://doi.org/10.1108/S0065-2830(2010)0000032005
Gu, Jung-Eok, & Lee, Eung-Bong. (2006). A Study on the Practical Use and Service Implementation of the OPAC 2.0 Based Open API. Journal of the Korean Society for Library and Information Science, 40(2), 315–332. https://doi.org/10.4275/KSLIS.2006.40.2.315
Alaoui, S., Idrissi, Y. E. B. E., & Ajhoun, R. (2015). Building Rich User Profile Based on Intentional Perspective. Procedia Computer Science, 73, 342–349. https://doi.org/10.1016/j.procs.2015.12.002
Nahotko, M. (2021). Knowledge Organization Affordances in a Faceted Online Public Access Catalog (OPAC). Cataloging & Classification Quarterly, 60(1), 86–111. https://doi.org/10.1080/01639374.2021.2015734
Garza, A. (2009). From OPAC to CMS: Drupal as an extensible library platform. Library Hi Tech, 27(2), 252–267. https://doi.org/10.1108/07378830910968209
Wu, D., Liang, S., & Bi, R. (2018). Characterizing queries in cross-device OPAC search: A large-scale log study. Library Hi Tech, 36(3), 482–497. https://doi.org/10.1108/LHT-06-2017-0130
Clements, C. (2009). Implementing instant messaging in four university libraries. Library Hi Tech, 27(3), 393–402. https://doi.org/10.1108/07378830910988522
Mi, J., & Weng, C. (2008). Revitalizing the library opac: Interface, searching, and display challenges. Information Technology and Libraries, 27(1), 5–22. https://doi.org/10.6017/ital.v27i1.3259
Geetha, K., Rao, G. S., Kaur, C., & Kumar, K. K. (2022). Machine learning based library management system. 2022 6th International Conference on Electronics, Communication and Aerospace Technology, 1031–1034. https://doi.org/10.1109/iceca55336.2022.10009423
Liang, J. (2024). Library management database design and application. Applied and Computational Engineering, 38(1), 219–230. https://doi.org/10.54254/2755-2721/38/20230555
Sivan, D., Satheesh Kumar, K., Abdullah, A., Raj, V., Misnon, I. I., Ramakrishna, S., & Jose, R. (2024). Advances in materials informatics: a review. Journal of Materials Science, 59(7), 2602–2643. https://doi.org/10.1007/s10853-024-09379-w
Alam, Md. S., Abdullah-Al-Jubair, Md., Rahman, Md. A., Supti, T. I., Tabassum, R., Ara, T., & Weng, N. G. (2020). Electronic opinion analysis system for library(E-oasl). Proceedings of the International Conference on Computing Advancements, 1–6. https://doi.org/10.1145/3377049.3377066
Fareed, A., Hassan, S., Belhaouari, S. B., & Halim, Z. (2023). A collaborative filtering recommendation framework utilizing social networks. Machine Learning with Applications, 14, 100495. https://doi.org/10.1016/j.mlwa.2023.100495
Mani, K., & Shenoy, A. K. B. (2025). Machine learning models in web applications: A comprehensive review. ICT Express, 11(6), 1110–1119. https://doi.org/10.1016/j.icte.2025.09.001
Bansal, P., & Ouda, A. (2022). Study on integration of fastapi and machine learning for continuous authentication of behavioral biometrics. 2022 International Symposium on Networks, Computers and Communications (ISNCC), 1–6. https://doi.org/10.1109/ISNCC55209.2022.9851790
Shiva, D. (2025). Personalized book intelligent recommendation system. INTERNATIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT, 09(06), 1–9. https://doi.org/10.55041/IJSREM49744
Okoroma, F. N. (2024). Artificial intelligence and libraries: Import, risks and prospects. Journal of ICT Development, Applications and Research, 6(2), 30–40. https://doi.org/10.47524/jictdar.v6i2.31
Chen, J. (2023). Model algorithm research based on python fast api. Frontiers in Science and Engineering, 3(9), 7–10. https://doi.org/10.54691/fse.v3i9.5591
Mabotha, E., Mabunda, N. E., & Ali, A. (2024). Performance evaluation of a dynamic restful api using fastapi, docker and nginx. 2024 Global Energy Conference (GEC), 174–181. https://doi.org/10.1109/GEC61857.2024.10881712
Yamaguchi, S., Nagano, M., Ohira, S., Oshima, R., Oshima, J., Fujihashi, T., Saruwatari, S., & Watanabe, T. (2022). Web services for collaboration analysis with iot badges. IEEE Access, 10, 121318–121328. https://doi.org/10.1109/ACCESS.2022.3222562
Bednarz, B., & Miłosz, M. (2025). Benchmarking the performance of Python web frameworks. Journal of Computer Sciences Institute, 36, 336–341. https://doi.org/10.35784/jcsi.7738
Ahmad, N., & Zhang, C. (2025). Enhancing llms interactions for python: A smart api framework for extracting and utilizing semantic code information. 2025 5th International Conference on Artificial Intelligence, Big Data and Algorithms (CAIBDA), 385–388. https://doi.org/10.1109/CAIBDA65784.2025.11182836
Hu, F., Xue, W., Zhou, S., Wang, Y., Jiang, B., Huang, Q., & Zhang, H. (2025). Python’s evolution on Stack Overflow: An empirical analysis of topic trends. Journal of Computer Languages, 84, 101340. https://doi.org/10.1016/j.cola.2025.101340
Song, E., Park, Y., Ha, S., Cho, M., & Jung, K. (2024). Web-based python development environment and a metaverse platform. The Journal of Korean Association of Computer Education, 27(2), 89–98. https://doi.org/10.32431/kace.2024.27.2.008
Landry, B., Sood, A., & Purvis, E. (2026). Tracking ability bias in generative AI: A comparative analysis of ChatGPT 3.5, ChatGPT 4.0, Gemini 2.0, and Grok 3. AI and Ethics, 6(1), 96. https://doi.org/10.1007/s43681-025-00939-7
Webliogrphy
https://uvicorn.dev/ (Accessed on 11th January 2026)
https://www.sqlalchemy.org/ (Accessed on 11th January 2026)
https://www.mysql.com/ (Accessed on 11th January 2026)
https://packaging.python.org/en/latest/ (Accessed on 11th January 2026)
https://fastapi.tiangolo.com/ (Accessed on 11th January 2026)
https://dev.mysql.com/ (Accessed on 11th January 2026)
https://developer.api.oclc.org/fast-api (Accessed on 11th January 2026)
Abstract
The paper explores integration methods between MySQL and FastAPI to develop dynamic Online Public Access Catalog services including functionalities for modern libraries and information centers. It addresses evolving user expectations by replacing rigid keyword-based search models with adaptive, intelligent discovery experiences that prioritize search relevance. The goal involves transforming traditional library retrieval tools into contextual discovery platforms that effectively understand specific user intent and complex needs. The prototype was created on Ubuntu in a customized Python environment. It uses FastAPI to manage asynchronous API calls and MySQL to store bibliographic data. SQLAlchemy abstracts the database layer, and Pydantic validates data. The AI system includes an English/non-English multilingual chatbox for reliable academic workflow support. Search is transformed by the logic of algorithms from “String Match” to “Conceptual Discovery,” making it possible for predictive analysis. This system can support queries in English, Hindi, and Bengali. It will also enable the integration of the database (with an API) with the cloud archive. The method of this system to modernize the library, reduce cost, improve accessibility, and enhance users' engagement is very supportive to the librarians and staff of the Information Centre.