Electrotechnical and Computer Engineering
Vol. 40 No. 12 (2025): Proceedings of the Faculty of Technical Sciences
COMPARATIVE ANALYSIS OF AGENTIC RAG APPROACHES IN THE CONTEXT OF BUILDING A CONVERSATIONAL ASSISTANT
Abstract
As part of this paper, we present research and the implementation of two versions of a conversational assistant. The focus was on exploring Retrieval-Augmented Generation (RAG), which uses external knowledge in addition to built-in knowledge to generate responses and interact with users. The implementation started with a simple version that combines retrieval and generation. Afterwards, a more advanced approach was developed using agents and specialized tools for query processing. The goal of the paper is to provide a detailed description of the system development process, compare the architectures in terms of complexity, scalability, performance, and answer relevance. Initially, system evaluation was performed manually, while later performance analysis was automated using the Ragas framework. Finally, the advantages and disadvantages of both approaches are highlighted, along with scenarios where each would be appropriate. The paper concludes with suggestions for improvements and directions for future research.
References
- [1]What are large language models (LLMs)? https://www.ibm.com/think/topics/large-language-models [датум приступа јун 2025]
- [2]Newhauser, Mary; (2024). Introduction to Retrieval Augmented Generation (RAG) https://weaviate.io/blog/introduction-to-rag [датум приступа јун 2025]
- [3]Vector Databases: Tutorial, Best Practices & Examples https://nexla.com/ai-infrastructure/vector-databases/ [датум приступа јун 2025]
- [4]Prompt Engineering Guide https://www.promptingguide.ai [датум приступа јун 2025]
- [5]What is agentic RAG? https://www.ibm.com/think/topics/agentic-rag [датум приступа јун 2025]
- [6]Tahir; (2024). What are AI Agents? https://medium.com/@tahirbalarabe2/what-are-ai-agents-f06ef775e78f [датум приступа јун 2025]
- [7]What are tools? https://huggingface.co/learn/agents-course/en/unit1/tools [датум приступа јун 2025]
- [8]Zilliz званична документација https://docs.zilliz.com/ [датум приступа јул 2025]
- [9]Званична документација Langchain-a https://python.langchain.com/docs/introduction/ [датум приступа јун 2025]
- [10]Званична документација Langgraph-a https://langchain-ai.github.io/langgraph/concepts/why-langgraph/ [датум приступа јун 2025]
- [11]Званична документација за Ragas радни оквир https://docs.ragas.io/en/stable/getstarted/ [датум приступа