NLP System for Automation of Document Workflow in a Research and Development Organization—A Case Study
Source abstract
Abstract
Research and development (R&D) organizations face significant operational bottlenecks due to the manual processing of diverse, unstructured documents. This paper presents the design, implementation, and pilot evaluation of an on-premise, multi-agent natural language processing (NLP) system developed for the GIG National Research Institute (GIG-NRI). Built upon a LangGraph architecture, the system utilizes open-weight large language models (LLMs) to perform zero-shot document classification, dynamic routing, and specialized information extraction. We rigorously evaluated the classification agent across twelve different local LLMs under two distinct testing regimes: first, using a strictly defined dataset of known administrative and scientific document types, and second, introducing a subset of out-of-distribution (unclassified) data to test real-world robustness. Our results demonstrate that the 70-billion parameter model (cogito:70b) achieved a peak accuracy of 97.3% in the first regime and maintained a strong 94.3% accuracy when confronted with out-of-spec data. However, our analysis reveals a critical operational trade-off regarding computational efficiency. The 24-billion parameter (magistral:24b) and 32-billion parameter (qwen3:32b) models emerged as the next best in overall accuracy while requiring less than half the processing time of their 70B counterpart. Notably, magistral:24b proved superior for strictly defined document streams, whereas qwen3:32b demonstrated greater robustness when handling out-of-distribution inputs. Furthermore, we demonstrate the efficacy of heterogeneous model assignments for complex multi-stage tasks, such as Scientific Article summarization via hierarchical Map-Reduce.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Topic Modeling · Text and Document Classification Technologies · Advanced Graph Neural Networks
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Acoustics, Electronics and IT Solutions, GIG National Research Institute, 40-166 Katowice, Poland
IT-Team, GIG National Research Institute, 40-166 Katowice, Poland
Director’s Plenipotentiary for Cybersecurity and Digital Transformation, GIG National Research Institute, 40-166 Katowice, Poland
Funding
Ministry of Science and Higher Education, Poland
References (64)
Show source-provided references
1. A Study on the Implementation of Generative AI Services Using an Enterprise Data-Based LLM Application Architecture
2. Information Retrieval from Textual Data: Harnessing Large Language Models, Retrieval Augmented Generation and Prompt Engineering10.69554/QAFE6376 ↗
3. Yuksel, K., and Sawaf, H. (2024). A Multi-AI Agent System for Autonomous Optimization of Agentic AI Solutions via Iterative Refinement and LLM-Driven Feedback Loops. arXiv.10.18653/v1/2025.realm-1.4 ↗
4. Wang, Z., Cui, Y., Zhong, L., Zhang, Z., Yin, D., Lin, B.Y., and Shang, J. (2024). OfficeBench: Benchmarking Language Agents across Multiple Applications for Office Automation. arXiv.
5. Nazi, Z.A., and Peng, W. (2023). Large Language Models in Healthcare and Medical Domain: A Review. Informatics, 11.10.3390/informatics11030057 ↗
6. Exploring LLMs Applications in Law: A Literature Review on Current Legal NLP Approaches10.1109/ACCESS.2025.3533217 ↗
7. A Comparative Evaluation of the Effectiveness of Document Splitters for Large Language Models in Legal Contexts10.1016/j.eswa.2025.126711 ↗
8. Musumeci, E., Brienza, M., Suriani, V., Nardi, D., and Bloisi, D. (2024). LLM Based Multi-Agent Generation of Semi-Structured Documents from Semantic Templates in the Public Administration Domain. arXiv.10.1007/978-3-031-60615-1_7 ↗
9. Framework for LLM Applications in Manufacturing
10. Efficient Healthcare with Large Language Models: Optimizing Clinical Workflow and Enhancing Patient Care10.1093/jamia/ocad258 ↗
11. Attention Is Not All You Need: The Complicated Case of Ethically Using Large Language Models in Healthcare and Medicine10.1016/j.ebiom.2023.104512 ↗
12. The Ethics of ChatGPT in Medicine and Healthcare: A Systematic Review on Large Language Models (LLMs)10.1038/s41746-024-01157-x ↗
13. Large Language Models in Healthcare: A Bibliometric Analysis and Examination of Research Trends10.2147/JMDH.S502351 ↗
14. A Review of Applying Large Language Models in Healthcare10.1109/ACCESS.2024.3524588 ↗
15. The Breakthrough of Large Language Models Release for Medical Applications: 1-Year Timeline and Perspectives10.1007/s10916-024-02045-3 ↗
16. Optimizing Healthcare Efficiency with Local Large Language Models
17. Practical Applications of Large Language Models in Enterprise-Level Applications
18. Enterprise Data Security and Integration with LLMs10.15680/IJIRSET.2025.1401018 ↗
19. A Comprehensive Survey on Integrating Large Language Models with Knowledge-Based Methods10.1016/j.knosys.2025.113503 ↗
20. Mahr, F., Angeli, G., Sindel, T., Schmidt, K., and Franke, J. (2024, January 16–19). A Reference Architecture for Deploying Large Language Model Applications in Industrial Environments. Proceedings of the 2024 IEEE 30th International Symposium for Design and Technology in Electronic Packaging (SIITME), Sibiu, Romania.10.1109/SIITME63973.2024.10814877 ↗
21. Cappel, J., and Chasin, F. (2024). Bridging Enterprise Knowledge Management and Natural Language Processing—Integration Framework and a Prototype. Proceedings of the International Conference on Design Science Research in Information Systems and Technology, Springer.10.1007/978-3-031-61175-9_19 ↗
22. Bodensohn, J.-M., Brackmann, U., Vogel, L., Sanghi, A., and Binnig, C. (2025). Unveiling Challenges for LLMs in Enterprise Data Engineering. arXiv.10.14778/3773749.3773758 ↗
23. LLM-Based Edge Intelligence: A Comprehensive Survey on Architectures, Applications, Security and Trustworthiness10.1109/OJCOMS.2024.3456549 ↗
24. Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyond
25. Khaldy, M.A., and Gheraibia, Y. (2025, January 28–30). Evaluation and Mitigation of the Limitations of Large Language Models in Business Decision-Making. Proceedings of the 2025 1st International Conference on Computational Intelligence Approaches and Applications (ICCIAA), Amman, Jordan.10.1109/ICCIAA65327.2025.11013278 ↗
26. Holtzman, A., Buys, J., Du, L., Forbes, M., and Choi, Y. (2019). The Curious Case of Neural Text Degeneration. arXiv.
27. Survey of Hallucination in Natural Language Generation10.1145/3571730 ↗
28. Rurański, J., Nowak, K., Góras, M., Dworak, K., and Nurzyńska, K. (2025). How to Moderate LLM Based Chats from Hallucinations?. Proceedings of the 33rd International Conference on Information Systems Development (ISD2025), Faculty of Organizational Sciences, University of Belgrade.10.62036/ISD.2025.58 ↗
29. Yang, L., Dan, I., Xu, Y., Shuohang, W., Xu, R., and Chenguang, Z. (2023). Gpteval: Nlg Evaluation Using Gpt-4 with Better Human Alignment. arXiv.
30. A Survey on LLM-as-a-Judge
31. Shan, R., and Shan, T. (2024, January 27–28). Enterprise LLMOps: Advancing Large Language Models Operations Practice. Proceedings of the 2024 IEEE Cloud Summit, Washington, DC, USA.10.1109/Cloud-Summit61220.2024.00030 ↗
32. Marcondes, F.S., Gala, A., Magalhães, R., Perez de Britto, F., Durães, D., and Novais, P. (2025). Using Ollama. Natural Language Analytics with Generative Large-Language Models: A Practical Approach with Ollama and Open-Source LLMs, Springer Nature.10.1007/978-3-031-76631-2 ↗
33. Liu, F., Kang, Z., and Han, X. (2025). Optimizing RAG Techniques for Automotive Industry PDF Chatbots: A Case Study with Locally Deployed Ollama Models. Proceedings of the 2024 3rd International Conference on Artificial Intelligence and Intelligent Information Processing, Tianjin, China, 26–27 October 2025, Association for Computing Machinery.
34. Mandulapalli, S., Hernandez, E., Hall, W.J., Chakeri, A., and Jaimes, L. (2025). Development of Agentic Workflows with LangGraph for Software Development Life Cycle Automation. Proceedings of the North American Conference on Industrial Engineering and Operations Management-Computer Science Tracks, Orlando, FL, USA, 17–19 June 2025, Springer.10.46254/NA10.20250216 ↗
35. Wang, J., and Duan, Z. (2024). Agent Ai with Langgraph: A Modular Framework for Enhancing Machine Translation Using Large Language Models. arXiv.
36. Implementing Traffic Agent Based on LangGraph
37. Annam, S., Saxena, M., Kaushik, U., and Mittal, S. (2025). LangChain: Simplifying Development with Language Models. Textual Intelligence: Large Language Models and Their Real-World Applications, Wiley.10.1002/9781394287499.ch12 ↗
38. Mavroudis, V. (2026, April 14). LangChain v0.3. Available online: https://hal.science/hal-04817573/document.
39. LangChain & LangGraph in Production: Architectures for Multi-Agent LLM Systems
40. Ravathanallur Chackrvarti, S. (2026, April 16). Optimizing AI-Powered Workflows for Seamless Automation: An Integrated Framework Using LangGraph, Pydantic, and React. Available online: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5388103.10.2139/ssrn.5388103 ↗
41. Narayanan, P.K. (2024). Getting Started with Data Validation Using Pydantic and Pandera. Data Engineering for Machine Learning Pipelines: From Python Libraries to ML Pipelines and Cloud Platforms, Springer.10.1007/979-8-8688-0602-5 ↗
42. Bendale, A., and Boult, T. (2015). Towards Open World Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Available online: https://www.cv-foundation.org/openaccess/content_cvpr_2015/papers/Bendale_Towards_Open_World_2015_CVPR_paper.pdf.10.1109/CVPR.2015.7298799 ↗
43. Term-Weighting Approaches in Automatic Text Retrieval10.1016/0306-4573(88)90021-0 ↗
44. Support-Vector Networks10.1023/A:1022627411411 ↗
45. Joachims, T. (1998). Text Categorization with Support Vector Machines: Learning with Many Relevant Features. Proceedings of the 10th European Conference on Machine Learning (ECML 1998), Springer.10.1007/BFb0026683 ↗
46. Random Forests10.1023/A:1010933404324 ↗
47. Toward Open Set Recognition10.1109/TPAMI.2012.256 ↗
48. Yin, W., Hay, J., and Roth, D. (2019, January 3–7). Benchmarking Zero-Shot Text Classification: Datasets, Evaluation and Entailment Approach. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.10.18653/v1/D19-1404 ↗
49. Serbanescu, V.-A., and Dhali, M.A. (2025). Deep Learning for Effective Classification and Information Extraction of Financial Documents. Proceedings of the 14th International Conference on Pattern Recognition Applications and Methods—ICPRAM, SciTePress.10.5220/0013261000003905 ↗
50. Measuring Nominal Scale Agreement among Many Raters10.1037/h0031619 ↗
51. Landis, J.R., and Koch, G.G. (1977). The Measurement of Observer Agreement for Categorical Data. Biometrics, 159–174.10.2307/2529310 ↗
52. A Coefficient of Agreement for Nominal Scales10.1177/001316446002000104 ↗
53. Agent Design Pattern Catalogue: A Collection of Architectural Patterns for Foundation Model Based Agents10.1016/j.jss.2024.112278 ↗
54. Reflective Artificial Intelligence10.1007/s11023-024-09664-2 ↗
55. Zhang, Y., Wang, M., Li, Q., Tiwari, P., and Qin, J. (May, January 28). Pushing the Limit of LLM Capacity for Text Classification. Proceedings of the Companion Proceedings of the ACM on Web Conference, Sydney, Australia.
56. Socher, R., Perelygin, A., Wu, J., Chuang, J., Manning, C.D., Ng, A.Y., and Potts, C. (2013, January 18–21). Recursive Deep Models for Semantic Compositionality over a Sentiment Treebank. Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, Seattle, WA, USA.10.18653/v1/D13-1170 ↗
57. Zhang, X., Zhao, J., and LeCun, Y. (2015). Character-Level Convolutional Networks for Text Classification. Adv. Neural Inf. Process. Syst., 28, Available online: https://proceedings.neurips.cc/paper_files/paper/2015/file/250cf8b51c773f3f8dc8b4be867a9a02-Paper.pdf.
58. Pang, B., Lee, L., and Vaithyanathan, S. (2002). Thumbs up? Sentiment Classification Using Machine Learning Techniques. Proceedings of the ACL-02 Conference on Empirical Methods in Natural Language Processing—Volume 10, Association for Computational Linguistics.10.3115/1118693.1118704 ↗
59. Vajjala, S., and Shimangaud, S. (2025). Text Classification in the LLM Era–Where Do We Stand?. arXiv.
60. Harley, A.W., Ufkes, A., and Derpanis, K.G. (2015, January 23–26). Evaluation of Deep Convolutional Nets for Document Image Classification and Retrieval. Proceedings of the International Conference on Document Analysis and Recognition (ICDAR), Nancy, France.10.1109/ICDAR.2015.7333910 ↗
61. Larson, S., Lim, G., and Leach, K. (2023). On Evaluation of Document Classification Using RVL-CDIP. arXiv.10.18653/v1/2023.eacl-main.195 ↗
62. Landeghem, J.V., Biswas, S., Blaschko, M.B., and Moens, M. (2023, January 3–8). Beyond Document Page Classification: Design, Datasets, and Challenges. Proceedings of the 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), Waikoloa, HI, USA.
63. Xia, R., Mao, S., Yan, X., Zhou, H., Zhang, B., Peng, H., Pi, J., Fu, D., Wu, W., and Ye, H. (2024). DocGenome: An Open Large-Scale Scientific Document Benchmark for Training and Testing Multi-Modal Large Language Models. arXiv.
64. Park, H.H., Vyas, Y., and Shah, K. (2022). Efficient Classification of Long Documents Using Transformers. arXiv.10.18653/v1/2022.acl-short.79 ↗