GRENZE International Journal of Engineering and Technology
Vol. 11
(2025), Issue 2
Leveraging Ollama for a Parameter-Optimized RAG Chatbot: Adaptive Document Analysis and General Use Case
Authors
Gowrav Babu H S, Muddaveere Gowda, Sagar H S, Veeresh Kumar L G, Jayanna H S
Abstract
In an age where data privacy and security have become paramount, the growing reliance on cloud-based AI solutions raises significant concerns about the protection of sensitive information. This paper introduces a Retrieval-Augmented Generation (RAG)-based chatbot that addresses these concerns by leveraging Ollama, a platform that allows for the local execution of large language models (LLMs). The system assures that user data remains secure, under complete control, and completely mitigates any privacy risks with the inherent option of cloud-based alternatives by running on local infrastructure. The document analysis-based conversation AI chatbot supports dynamic interaction with uploaded PDF documents. The customizable parameters of configurable parameters include LLM hyperparameters, embedding model selection, and chunk size and allow users to customize and further optimize its performance. Semantic embeddings and a dynamic vector database enable accurate document retrieval, and Meta’s Llama-2 model enables context-aware response generation. Testing results show that the chatbot can retrieve documents with an accuracy of 92% and generate contextually relevant responses with a precision rate of 89%. It also processes queries with an average latency of 1.2 seconds on local infrastructure, which is faster and more secure than comparable cloud-based systems. In addition to task-specific tasks based on documents, this chatbot could work independently with the goal of general conversation; therefore, it could be applied widely in various systems. This paper focuses on its architecture, implementation, and performance, demonstrating potential as a safe, flexible, and efficient solution to document analysis and conversational AI.
Pages:
879 - 884