Local Agentic RAG-Based Information SystemDevelopment for Intelligent Analysis of GitHubCode Repositories in Computer ScienceEducation
Zhengbing Hu, Markiian-Mykhailo Paprotskyy, Victoria Vysotska, Lyubomyr Chyrun, Yuriy O. Ushenko, Dmytro I. Uhryn · 2025 · 3 citationsRead the paper
This study presents the development and evaluation of a local agent-based Retrieval-Augmented Generation (Agentic RAG) system designed for the intelligent analysis of GitHub repositories in computer science education and IT practice.The novelty of this work lies not in inventing a new RAG algorithm, but in orchestrating multiple existing components (LangChain, Redis, SentenceTransformer, and LLMs) into a multi-stage agent pipeline with integrated relevance evaluation, specifically adapted to offline repository mining.The proposed pipeline consists of four sequential stages: (1) query reformulation by a dedicated LLM agent, (2) semantic retrieval using SentenceTransformer embeddings stored in Redis, (3) response generation by a second LLM, and (4) relevance scoring through a verification agent with retry logic.Relevance is assessed via cosine similarity and LLM-based scoring, allowing iterative refinement of answers.Experimental testing compared the system against two baselines: keyword search and a non-agentic singlestage RAG pipeline.Results showed an average MRR@10 of 0.72, compared to 0.48 for keyword search and 0.61 for non-agentic RAG, representing a 33% relative improvement in retrieval quality.Human evaluators (n=15, computer science students) rated generated explanations on a 5-point Likert scale; the proposed system achieved an average 4.3/5 Local Agentic RAG-Based Information System Development for Intelligent Analysis of GitHub Code Repositories in Computer Science Education 110 Volume 17 (2025), Issue 5for clarity and correctness, compared to 3.6/5 for the baseline.Precision@5 for code retrieval improved from 0.54 (keyword) and 0.67 (non-agentic RAG) to 0.76 in the proposed system.Average query latency in the local environment was 3.8 seconds, indicating acceptable performance for educational and small-team IT use cases.The system demonstrates high autonomy by operating fully on-premises with only optional API access to LLMs, ensuring privacy and independence from cloud providers.Ease of use was measured through a System Usability Scale (SUS) questionnaire, yielding a score of 78/100, reflecting positive user perception of the Streamlit interface and minimal setup requirements.Nevertheless, several limitations were observed: the high computational cost of running embeddings and LLMs locally, potential hallucinations in generated explanations (particularly for complex or unfamiliar code), and the inability of vector search to fully capture code syntax and control flow structures.Furthermore, while the Analytic Hierarchy Process (AHP) was applied to select the system architecture, future work should complement this with benchmark-driven evaluations for greater objectivity.The contribution of this study is threefold:(1) introducing a multi-agent orchestration logic tailored to educational code repositories; (2) empirically demonstrating measurable gains in retrieval quality and explanation usefulness over baselines; and (3) highlighting both opportunities and limitations of deploying autonomous RAG systems locally.The proposed technology can benefit IT companies seeking secure in-house tools for repository analysis, universities aiming to integrate intelligent assistants into programming courses, and research institutions requiring reproducible, privacy-preserving environments for code exploration.
What the full text shows
Working prototype- Improvement in retrieval quality (MRR@10) compared to keyword search — 33% relative improvement (0.72 vs 0.48) (Dataset of 200 natural-language queries from GitHub issues, StackOverflow, and educational assignments)
- Increase in code retrieval precision (Precision@5) compared to non-agentic RAG — 0.76 vs 0.67 (Dataset of 200 natural-language queries)
- Human-rated clarity and correctness of generated explanations — 4.3/5 vs 3.6/5 for non-agentic RAG (Evaluated by 15 computer science students on a 5-point Likert scale)
- Average query latency in local environment — 3.8 seconds (Local environment using OpenRouter API for LLMs)
- Setup
- Dataset of 200 queries in Python, Java, and C++; 15 human evaluators; architecture comprising Redis, LangChain, Streamlit, and LLMs via OpenRouter API.
- How
- Developed a multi-stage agentic RAG pipeline using LangChain for orchestration, Redis for vector storage, and SentenceTransformer (all-MiniLM-L6-v2) for embeddings. The system implements a four-stage loop: query reformulation, semantic retrieval of code-description pairs, response generation, and a relevance evaluator with retry logic.
- Limitations
- Increased latency compared to non-agentic RAG (3.8s vs 2.1s) · Subjectivity of human-rated quality metrics · Dependence on OpenRouter API for certain LLM tasks
Summarized by Gemma 4 from the open-access full text · 20 Nov 2026. Read it