Submitted:
08 May 2025
Posted:
09 May 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Automated completion of forms to minimize errors in certificate applications through directed users using structured digital forms.
- Complaint drafting by AI that assists citizens to present grievances succinctly, while ensuring completeness and proper formatting.
- Scheme inquiry chatbot that is able to give precise, document-based responses to questions regarding government schemes in Malayalam.
- Simplified application process which eliminates the need for multiple office visits by enabling online submissions and tracking.
- Multi-Level verification system which ensures transparency and accountability with Clerk and Admin approval workflows.
- User-Friendly interface that is designed for citizens, especially women and rural users, to easily access government services.
2. Literature Survey
3. Methodology
3.1. Retrieval-Augmented Generation (RAG) and LangChain Integration

4. Implementation
4.1. Government Scheme Inquiry Chatbot
4.2. AI Agent for Certificate Application and Certificate Generation
- Template Design: Predefined certificate layouts are stored as template files.
- Data Insertion: User data is injected into the relevant sections of the template using ReportLab’s Canvas and Paragraph modules.
- Storage & Retrieval: The generated PDF is stored securely, with controlled access to prevent unauthorized modifications.
4.3. AI Agent for Complaint Generation & Submission
4.4. System Architecture
5. Results and Discussion
5.1. Vector Database Testing
5.2. Large Language Models Testing and Validation
- [EN] What is PMAY?
- [EN] How can I apply for IAS scheme?
- [EN] What are the eligibility criteria to apply for PMAY?
- [EN] What are the different documents that are needed to apply for AUEGS?
- [ML]
5.3. Validation and Verification Testing
- Accuracy: Measures the overall effectiveness of the testing process.
- Precision: Represents the proportion of correctly predicted positive outcomes.
- Recall: Indicates the percentage of actual positives correctly identified by the test.
- F1 Score: A balanced metric that combines both precision and recall for a comprehensive assessment.
5.4. Discussion
6. Conclusion
References
- O. S. Al-Mushayt, "Automating E-Government Services With Artificial Intelligence," in IEEE Access, vol. 7, pp. 146821-146829, 2019. [CrossRef]
- Papageorgiou G, Sarlis V, Maragoudakis M, Tjortjis C, "Enhancing E-Government Services through State-of-the-Art, Modular, and Reproducible Architecture over Large Language Models," in Applied Sciences , 2024, 14(18):8259. [CrossRef]
- B. Kurian, A. Aafreen Fathima, T. Afra Fathima and R. Shahista Begum, "GovInfohub: A Dynamic Government scheme Chatbot for informed Engagement and Accessibility," 2024 International Conference on Advances in Computing, Communication and Applied Informatics (ACCAI), Chennai, India, 2024, pp. 1-6. [CrossRef]
- M. Alhalabi et al., "M-Government Smart Service using AI Chatbots: Evidence from the UAE," 2022 2nd International Mobile, Intelligent, and Ubiquitous Computing Conference (MIUCC), Cairo, Egypt, 2022, pp. 325-330. [CrossRef]
- C. H. Yun, A. P. Teoh and T. Y. Khaw, "Artificial Intelligence Integration in e-Government: Insights from the Korean Case," 2024 IEEE 3rd International Conference on Electrical Engineering, Big Data and Algorithms (EEBDA), Changchun, China, 2024, pp. 1159-1164. [CrossRef]
- S. Barnett, S. Kurniawan, S. Thudumu, Z. Brannelly and M. Abdelrazek, "Seven Failure Points When Engineering a Retrieval Augmented Generation System," 2024 IEEE/ACM 3rd International Conference on AI Engineering – Software Engineering for AI (CAIN), Lisbon, Portugal, 2024, pp. 194-199.
- P. Omrani, A. Hosseini, K. Hooshanfar, Z. Ebrahimian, R. Toosi and M. Ali Akhaee, "Hybrid Retrieval-Augmented Generation Approach for LLMs Query Response Enhancement," 2024 10th International Conference on Web Research (ICWR), Tehran, Iran, Islamic Republic of, 2024, pp. 22-26. [CrossRef]
- A. Šarčević, I. Tomičić, A. Merlin and M. Horvat, "Enhancing Programming Education with Open-Source Generative AI Chatbots," 2024 47th MIPRO ICT and Electronics Convention (MIPRO), Opatija, Croatia, 2024, pp. 2051-2056, doi: 10.1109/MIPRO60963.2024.10569736. [CrossRef]
- S. Vakayil, D. S. Juliet, A. J and S. Vakayil, "RAG-Based LLM Chatbot Using Llama-2," 2024 7th International Conference on Devices, Circuits and Systems (ICDCS), Coimbatore, India, 2024, pp. 1-5. [CrossRef]
- C. Hennebold, X. Mei, O. Mailahn, M. F. Huber and O. Mannuß, "Cooperation of Human and Active Learning based AI for Fast and Precise Complaint Management," 2022 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Prague, Czech Republic, 2022, pp. 282-287. [CrossRef]
- A. M. Nair, G. V, N. G. Jacob, M. V. K. Rao, and M. S. Nair, "A Survey On Automation of Local Government Services using Retrieval-Augmented Generation," Preprints, Dec. 2024. [Online]. Available: https://www.preprints.org/manuscript/202412.1644/v1. [CrossRef]






| Database | Storage Size Average | Store Speed Average (s) | Read Speed Average (s) |
|---|---|---|---|
| FAISS | 59 KB | 4.41 | 0.88 |
| ChromaDB | 652 KB | 4.01 | 0.46 |
| Model | Precision (1-5) |
|---|---|
| Mistral-8x7B-Instruct-V0.1 | 3 |
| Meta-Llama-3.3-70B-Versatile | 5 |
| Meta-Llama-3-8B-Instruct | 4 |
| Google Gemma-2B | 2 |
| Score Range | Accuracy Level |
|---|---|
| 0–10 | Low |
| 10–20 | Moderate |
| 20–30 | High |
| 30–40 | Very High |
| Participant List | Accuracy Score | Speed (wpm) |
|---|---|---|
| Participant 1 | 38% | 55 wpm |
| Participant 2 | 40% | 50 wpm |
| Participant 3 | 30% | 57 wpm |
| Participant 4 | 35% | 62 wpm |
| Participant 5 | 40% | 46 wpm |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).