{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,18]],"date-time":"2026-08-18T07:28:52Z","timestamp":1787038132178,"version":"build-2736575974"},"publisher-location":"Cham","reference-count":26,"publisher":"Springer Nature Switzerland","isbn-type":[{"value":"9783032071316","type":"print"},{"value":"9783032071323","type":"electronic"}],"license":[{"start":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T00:00:00Z","timestamp":1760140800000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T00:00:00Z","timestamp":1760140800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2026]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>While large language models (LLMs) have exhibited strong capabilities in translating code, particularly from C to Python, their performance noticeably declines when dealing with less common languages like LF. Prior research indicates that Retrieval-Augmented Generation (RAG) can enhance LLMs capabilities in code generation by integrating codebase retrieval. Despite its promise, RAG systems are constrained by LLMs capabilities to deal with less common languages. Agentic AI coding assistants offer a different approach by acting as AI co-developers, automating tedious tasks and allowing developers to focus on high-level design. This paper proposes a novel system that combines RAG with agentic AI assistants to improve the accuracy of converting LF programs with target C into LF code with target Python. We conduct a comparative evaluation of state-of-the-art proprietary and open-source code LLMs in this task, demonstrating that RAG can significantly narrow the performance gap between small and large language models. Furthermore, we integrate an agentic assistant within an AI-powered IDE to automate developer-assisted error correction and refactoring, streamlining the development workflow. In terms of syntax correctness and successful execution rates, experiments highlight the significant improvements achieved by the combined approach.<\/jats:p>","DOI":"10.1007\/978-3-032-07132-3_4","type":"book-chapter","created":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T05:27:30Z","timestamp":1760074050000},"page":"47-62","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["RAG and\u00a0Agentic Assistant: A Combined Approach"],"prefix":"10.1007","author":[{"given":"Moez","family":"Ben Hajhmida","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Edward A.","family":"Lee","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2025,10,11]]},"reference":[{"key":"4_CR1","unstructured":"Anthropic: The Claude 3 Model Family: Opus, Sonnet, Haiku. https:\/\/www-cdn.anthropic.com\/de8ba9b01c9ab7cbabf5c33b80b7bbc618857627\/Model_Card_Claude_3.pdf"},{"issue":"7","key":"4_CR2","doi-asserted-by":"publisher","first-page":"3675","DOI":"10.1109\/TSE.2023.3267446","volume":"49","author":"F Cassano","year":"2023","unstructured":"Cassano, F., et al.: MultiPL-E: a scalable and polyglot approach to benchmarking neural code generation. IEEE Trans. Softw. Eng. 49(7), 3675\u20133691 (2023). https:\/\/doi.org\/10.1109\/TSE.2023.3267446","journal-title":"IEEE Trans. Softw. Eng."},{"key":"4_CR3","doi-asserted-by":"publisher","unstructured":"Chan, A., et al.: Harms from increasingly agentic algorithmic systems. In: Proceedings of the 2023 ACM Conference on Fairness, Accountability, and Transparency, FAccT 2023, pp. 651\u2013666. Association for Computing Machinery, New York (2023). https:\/\/doi.org\/10.1145\/3593013.3594033","DOI":"10.1145\/3593013.3594033"},{"key":"4_CR4","unstructured":"Chen, M., et\u00a0al.: Evaluating large language models trained on code. ArXiv abs\/2107.03374 (2021)"},{"key":"4_CR5","unstructured":"GLM, T., et\u00a0al.: ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools (2024)"},{"key":"4_CR6","unstructured":"Guo, D., et al.: DeepSeek-coder: when the large language model meets programming - the rise of code intelligence. ArXiv abs\/2401.14196 (2024). https:\/\/arxiv.org\/abs\/2401.14196"},{"key":"4_CR7","unstructured":"Hong, S., et\u00a0al.: MetaGPT: meta programming for multi-agent collaborative framework. arXiv preprint arXiv:2308.00352 (2023). 3(4), 6"},{"key":"4_CR8","unstructured":"Huang, D., Zhang, J.M., Luck, M., Bu, Q., Qing, Y., Cui, H.: Agentcoder: multi-agent-based code generation with iterative testing and optimisation. arXiv preprint arXiv:2312.13010 (2023)"},{"key":"4_CR9","unstructured":"Hui, B., et al.: Qwen2.5-Coder Technical Report (2024)"},{"key":"4_CR10","unstructured":"Liu, S., Chen, Y., Xie, X., Siow, J., Liu, Y.: Retrieval-augmented generation for code summarization via hybrid GNN. arXiv preprint arXiv:2006.05405 (2020)"},{"key":"4_CR11","doi-asserted-by":"publisher","unstructured":"Lohstroh, M., Menard, C., Bateni, S., Lee, E.A.: Toward a Lingua Franca for deterministic concurrent systems. ACM Trans. Embed. Comput. Syst. 20(4) (2021). https:\/\/doi.org\/10.1145\/3448128","DOI":"10.1145\/3448128"},{"key":"4_CR12","unstructured":"Lozhkov, A., et\u00a0al.: StarCoder 2 and The Stack v2: the next generation. ArXiv abs\/2402.19173 (2024). https:\/\/arxiv.org\/pdf\/2402.19173"},{"key":"4_CR13","doi-asserted-by":"crossref","unstructured":"Lu, S., Duan, N., Han, H., Guo, D., Hwang, S.w., Svyatkovskiy, A.: ReACC: a retrieval-augmented code completion framework. arXiv preprint arXiv:2203.07722 (2022)","DOI":"10.18653\/v1\/2022.acl-long.431"},{"key":"4_CR14","doi-asserted-by":"publisher","unstructured":"Macedo, M., Tian, Y., Cogo, F., Adams, B.: Exploring the impact of the output format on the evaluation of large language models for code translation. In: Proceedings of the 2024 IEEE\/ACM First International Conference on AI Foundation Models and Software Engineering, FORGE 2024, pp. 57\u201368. Association for Computing Machinery, New York (2024). https:\/\/doi.org\/10.1145\/3650105.3652301","DOI":"10.1145\/3650105.3652301"},{"key":"4_CR15","unstructured":"Microsoft: promptbase (2023). https:\/\/github.com\/microsoft\/promptbase. Accessed 22 Apr 2025"},{"key":"4_CR16","doi-asserted-by":"publisher","unstructured":"Murali, V., et al.: AI-assisted code authoring at scale: fine-tuning, deploying, and mixed methods evaluation. Proc. ACM Softw. Eng. 1(FSE) (2024). https:\/\/doi.org\/10.1145\/3643774","DOI":"10.1145\/3643774"},{"key":"4_CR17","unstructured":"OpenAI, et\u00a0al.: GPT-4 Technical Report (2024). https:\/\/arxiv.org\/abs\/2303.08774"},{"key":"4_CR18","doi-asserted-by":"publisher","unstructured":"Pan, R., et al.: Lost in translation: a study of bugs introduced by large language models while translating code. In: Proceedings of the IEEE\/ACM 46th International Conference on Software Engineering, ICSE 2024, pp. 1\u201313. ACM (2024). https:\/\/doi.org\/10.1145\/3597503.3639226","DOI":"10.1145\/3597503.3639226"},{"key":"4_CR19","doi-asserted-by":"crossref","unstructured":"Parvez, M.R., Ahmad, W., Chakraborty, S., Ray, B., Chang, K.W.: Retrieval augmented code generation and summarization. In: Moens, M.F., Huang, X., Specia, L., Yih, S.W.t. (eds.) Findings of the Association for Computational Linguistics: EMNLP 2021, pp. 2719\u20132734. Association for Computational Linguistics, Punta Cana, Dominican Republic (2021)","DOI":"10.18653\/v1\/2021.findings-emnlp.232"},{"key":"4_CR20","unstructured":"Puri, R., et al.: CodeNet: a large-scale AI for code dataset for learning a diversity of coding tasks. In: Vanschoren, J., Yeung, S. (eds.) Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks 1, NeurIPS Datasets and Benchmarks 2021, December 2021, virtual (2021). https:\/\/datasets-benchmarks-proceedings.neurips.cc\/paper\/2021\/hash\/a5bfc9e07964f8dddeb95fc584cd965d-Abstract-round2.html"},{"key":"4_CR21","unstructured":"Rozi re, B., et al.: Code Llama: open foundation models for code. arXiv preprint arXiv:2308.12950 (2023)"},{"key":"4_CR22","unstructured":"Shavit, Y., et\u00a0al.: Practices for governing agentic AI systems. Research Paper, OpenAI (2023)"},{"key":"4_CR23","doi-asserted-by":"crossref","unstructured":"Zhang, F., et al.: RepoCoder: repository-level code completion through iterative retrieval and generation. arXiv preprint arXiv:2303.12570 (2023)","DOI":"10.18653\/v1\/2023.emnlp-main.151"},{"key":"4_CR24","unstructured":"Zhao, P., et al.: Retrieval-augmented generation for AI-generated content: a survey. arXiv preprint arXiv:2402.19473 (2024)"},{"key":"4_CR25","unstructured":"Zheng, Q., et al.: CodeGeeX: a pre-trained model for code generation with multilingual evaluations on HumanEval-X. ArXiv abs\/2303.17568 (2023). https:\/\/arxiv.org\/abs\/2303.17568"},{"key":"4_CR26","unstructured":"Zhou, S., Alon, U., Xu, F.F., Wang, Z., Jiang, Z., Neubig, G.: DocPrompting: generating code by retrieving the docs. arXiv preprint arXiv: 2207.05987 (2022)"}],"container-title":["Lecture Notes in Computer Science","Bridging the Gap Between AI and Reality"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-032-07132-3_4","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,18]],"date-time":"2026-08-18T07:17:54Z","timestamp":1787037474000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/978-3-032-07132-3_4"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,10,11]]},"ISBN":["9783032071316","9783032071323"],"references-count":26,"URL":"https:\/\/doi.org\/10.1007\/978-3-032-07132-3_4","relation":{},"ISSN":["0302-9743","1611-3349"],"issn-type":[{"value":"0302-9743","type":"print"},{"value":"1611-3349","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,10,11]]},"assertion":[{"value":"11 October 2025","order":1,"name":"first_online","label":"First Online","group":{"name":"ChapterHistory","label":"Chapter History"}},{"value":"AISoLA","order":1,"name":"conference_acronym","label":"Conference Acronym","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"International Conference on Bridging the Gap between AI and Reality","order":2,"name":"conference_name","label":"Conference Name","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Rhodes","order":3,"name":"conference_city","label":"Conference City","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Greece","order":4,"name":"conference_country","label":"Conference Country","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"2025","order":5,"name":"conference_year","label":"Conference Year","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"1 November 2025","order":7,"name":"conference_start_date","label":"Conference Start Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"5 November 2025","order":8,"name":"conference_end_date","label":"Conference End Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"3","order":9,"name":"conference_number","label":"Conference Number","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"aisola2025","order":10,"name":"conference_id","label":"Conference ID","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"https:\/\/2025-aisola.isola-conference.org\/","order":11,"name":"conference_url","label":"Conference URL","group":{"name":"ConferenceInfo","label":"Conference Information"}}]}}